Euroka wrote:
Hi all,
I have a postfix with a couple of virtual hosts and a /etc/postfix/virtual
file with my users
.
some users prefer that mail from my postfix server mail.domain1.com gets
forwarded to an exchange server at mail.domain2.com
Now all users have a .procmailrc file in their home directory that moves al
tagged spam to /dev/null But users who also forward mail to domain2 still
get the full load of spam traffic to domain2.
How can I remove all incoming spam directely instead of first processing it
via procmail, so domain2 doesn't get all the spam traffic that arrived first
at domain2?
Biggest problem atm is that I see that all the spam traffic that gets
forwarded create too many connections and so things get into a loop...
Mar 18 14:52:14 SOKA2 postfix/smtp[23477]: 30B79A401A:
to=<[EMAIL PROTECTED]
<http://mail.studioo.be/src/compose.php?send_to=greet.dequidt%40arteveldehs.be>>,
orig_to=<[EMAIL PROTECTED]
<http://mail.studioo.be/src/compose.php?send_to=greet.dequidt%40sovoarte.be>>,
relay=mail2.domain2.be[193.181.138.107], delay=0, status=deferred
(host mail2.domain2.be[193.181.138.107] said: 452 Too many recipients
received this hour (in reply to RCPT TO command))
one approach would be to use header_checks in the "after the filter"
postfix (you need a specific cleanup service)
/^X-Spam-Flag: Yes/ HOLD
This applies to _all_ mail.
Using amavisd-new is a better approach.
This is a question for the postfix-users list, so followups there please.