Re: [exim] Fake ACCEPT (ahem)

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Marc Perkel
Ημερομηνία:  
Προς: Marcin Krol
Υ/ο: exim users
Αντικείμενο: Re: [exim] Fake ACCEPT (ahem)


Marcin Krol wrote:
> Hello,
>
> OK, so as some of you may know, clamav now features filtering out
> phishing and/or spam as well.
>
> The problem is this generates rather unreadable reject messages:
>
>     SMTP error from remote mail server after end of data:
>     host mail.da4.promo.pl [83.149.102.11]: 550 Wirus (virus):
>     Email.Loan.Gen090.Sanesecurity.07061800

>
> So from POV of SMTP client it all gets classified as virus (not nice), plus the message has to be short, because Outlook Express breaks on 5xx error with multiple lines - Outlook acts precisely as if the message were accepted for delivery, so obviously the user is totally mislead.
>
> I would like to send this message to /dev/null. But I can't do "accept" in ACL, because message will be locally delivered. I can't do "deny" either, because it will generate 5xx every time it is found.
>
> Is there a way to fake accept of this message, i.e. say 2xx to client
> side, but silently discard the message on server side (optionally with
> logging)?
>
>


You could set an ACL variable and then test for the variavle in a filter
and do a "seen finish"

set acl_c_discard = yes


in the filter

if $acl_c_discard > ""
then
seen finish
endif