Hi ;)
Could someone tell me what I'm doing wrong ?
The documentation about the filtering in courier is... well...
not very clear about some points:
- how can I set up a mail filter that drops or modifies mails
that have MS-virus-like attachments (vbs, exe, ...) - we had some
examples on the mailing-list but it's not included in the
examples nor in the documentation of Courier, and it's definately
one of the most frequent uses of filtering (IMHO)
- where can I put a maildrop filter configuration file so that
it is used by courier for *all* accounts ? (not ~/.mailfilter)
/etc/courier/maildroprc ?
I've set up such a filter from an example seen on this list:
if ( /^[:space:]+filename=.*\.vbs\"$/:b || \
/^[:space:]+filename=.*\.exe\"$/:b || \
/^[:space:]+filename=.*\.com\"$/:b || \
/^[:space:]+filename=.*\.pif\"$/:b || \
/^[:space:]+filename=.*\.scr\"$/:b || \
/^[:space:]+filename=.*\.bat\"$/:b )
{
xfilter "/usr/local/courier/bin/reformail -A'X-Antispam: Possible Virus'"
/^Subject: !.*/
xfilter "/usr/local/courier/bin/reformail -I'Subject: [CAUTION: POSSIBLE
VIRUS] $MATCH2'"
}
I've tried to use several locations, but none of them work:
(with /etc/courier being a symlink to /usr/local/courier/etc)
/etc/courier/maildroprc
~user/.mailfilter
Here's some additional configuration info on the mail server:
/etc/courier/enablefiltering:
esmtp
/etc/courier/maildrop:
/usr/local/courier/bin/maildrop
/etc/courier/maildropfilter:
/usr/local/courier/bin/maildrop
Did I forgot something ?
Thanks for your help...
Oh, BTW, there's another really frequently asked question which is not in
the documentation (I think so): is there any way to avoid having the "LOGIN"
and "LOGOUT" imapd messages in the logs ? Maybe without having to recompile
Courier ?
--
-o) Pascal Bleser ATOS Origin/Aachen(DE) |
/\\ <[EMAIL PROTECTED]> |
_\_v <[EMAIL PROTECTED]> |
---------------------------------------------|
Jesus saves,Buddha makes incremental backups :
---------------------------------------------'
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users