Attachment Warning Filename Question
johan.boye at latecoere.fr
johan.boye at latecoere.fr
Thu May 31 10:24:19 IST 2007
> -----Message d'origine-----
> De : mailscanner-bounces at lists.mailscanner.info
> [mailto:mailscanner-bounces at lists.mailscanner.info] De la
> part de Denis Beauchemin
> Envoyé : mercredi 30 mai 2007 21:11
> À : MailScanner discussion
> Objet : Re: Attachment Warning Filename Question
>
> johan.boye at latecoere.fr a écrit :
> >>> # Then, I want to notify the recipient when a
> filename/type has been
> >>>
> > blocked :
> >
> >>> Warning Is Attachment = yes
> >>> Attachment Warning Filename =
> >>>
> > %report-dir%/stored.filename.message.txt
> >
> >>> But you told me to put that instead :
> >>> Attachment Warning Filename =
> %org-name%-Attachment-Warning.txt
> >>>
> >>>
> >> This filename doesn't exist anywhere on your server. This is the
> >> name the attachment will use in your emails. The contents of the
> >> message will come from:
> >> Deleted Bad Filename Message Report =
> >>
> > %report-dir%/deleted.filename.message.txt
> >
> > Ok, so now, i have this :
> > Warning Is Attachment = yes
> > Attachment Warning Filename = %org-name%-Attachment-Warning.txt
> > And
> > Stored Bad Content Message Report =
> > %report-dir%/stored.content.message.txt
> > Stored Bad Filename Message Report =
> > %report-dir%/stored.filename.message.txt
> > Stored Virus Message Report =
> > %report-dir%/stored.virus.message.txt
> >
> > But it still not notify any recipient...
> >
> > Did i mist something somewhere ?
> >
> >
>
> Strange... it's working fine here. I just sent myself a
> zero byte test.exe file (we block all EXE files) and I
> received the email with the stored.filename.message.txt text.
> I even received a second email sent to the sender because I
> have "Notify Senders = yes".
>
> The only option I can think of that could be causing this is:
> "Deliver Cleaned Messages = yes". Is yours set to "yes"?
That's the point ! I set "Deliver Cleaned Messages" to yes and it works. Thanks
> Denis
> PS: I didn't ask earlier but you are restarting/reloading MS
> after your changes to MailScanner.conf, right?
Right ;)
===============================
HERE IS THE SOLUTION FOR PEOPLE WHO WILL LOOK INTO THIS ML LATER :
Warning Is Attachment = yes <= Important
Attachment Warning Filename = %org-name%-Attachment-Warning.txt <= Just to format the name of the future attached file
The content of the attached file will be defined in a bunch of variables like this :
Stored Bad Content Message Report = %report-dir%/stored.content.message.txt
Stored Bad Filename Message Report = %report-dir%/stored.filename.message.txt
Stored Virus Message Report = %report-dir%/stored.virus.message.txt
Check your "%report-dir%" at the beginning of the MailScanner.conf to see the content of the files.
And : set "Deliver Cleaned Messages" to yes
Then, restart Mailscanner ;)
Thanks a LOT
See you
"Les informations contenues dans ce message électronique peuvent être de nature confidentielles et soumises à une obligation de secret. Elles sont destinées à l'usage exclusif du réel destinataire. Si vous n'êtes pas le réel destinataire, ou si vous recevez ce message par erreur, merci de le détruire immédiatement et de le notifier à son émetteur."
"The information contained in this e-mail may be privileged and confidential. It is intended for the exclusive use of the designated recipients named above. If you are not the intended recipient or if you receive this e-mail in error, please delete it and immediately notify the sender."
More information about the MailScanner
mailing list