Re: [exim] No bounce for spam.

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Ruediger Hahn
Dátum:  
Címzett: Exim-users
Tárgy: Re: [exim] No bounce for spam.
Hello,

I think I am having exactly the same problem:

1. Exim receives an email from a remote server
2. Exim delivers the email to Amavisd-new for spam/virus checking
3. Amavisd-new sends the email back to Exim, for spam mails with headers
like X-Spam-Level: X-Spam-Flag: etc.
4. Exim finally delivers the email to Cyrus IMAP Daemon, so that a user
is able to check its content (I do this with "plus-addressing").

5. Now the problem: If the mailbox does not exist, the email is bounced
back to Exim.

6. Exim now again sends the email to Amavisd-new, but it seems, that
Amavis doesn't recognize it as spam any more because of the "A message
that you sent could not be delivered to one ore more of its
recipients...blablabla" content and by the fact it is coming from
internal network.
7. Amavisd-new sends the email back to Exim
8. Exim at the end sends a backscatter email

My problem is now, that I don't want to have bounce mails for emails
which are definitely spam, for example with a spam score above 9.

What doesn't work for me is setting the "sa_dsn_cutoff_level" within
Amavisd-new. I am not really sure what this setting is good for.

So I thought I could do this within Exim at 8., but I couldn't find a
solution for this until now. It would be something like

I. find out if it is a bounce mail created from localhost
II. If so, find out the spam level in the header of the original email
created at 3.
III. If spam level is above a certain value, discard the email, else
deliver it.

Thank you in advance for any help.

Ruediger