Am 17.07.2011 12:49, schrieb Thomas Zehbe: > Hello List, > > I have an installtion using bitdefender as a virus scanner using the > content_filter option. > bitdefender's smtp daemon listens on port 10025, in main.cf therefore this is > defined: > > content_filter = smtp:[127.0.0.1]:10025 > > In master.cf a second instance of smtpd is defined, listening on port 10026: > > 127.0.0.1:10026 inet n - n - 10 smtpd -o > content_filter= -o smtp_send_xforward_command=yes > > When smtp tries to send the mail to bitdefender for scanning, this happens: > > Jul 17 11:42:55 linuxgw postfix/smtp[20313]: < 127.0.0.1[127.0.0.1]: 220 > linuxgw.myown.net ESMTP Postfix > Jul 17 11:42:55 linuxgw postfix/smtp[20313]: warning: host > 127.0.0.1[127.0.0.1] greeted me with my own hostname linuxgw.myown.net > Jul 17 11:42:55 linuxgw postfix/smtp[20313]: > 127.0.0.1[127.0.0.1]: EHLO > linuxgw.myown.net > Jul 17 11:42:55 linuxgw postfix/smtp[20313]: < 127.0.0.1[127.0.0.1]: > 250-linuxgw.myown.net > Jul 17 11:42:55 linuxgw postfix/smtp[20313]: < 127.0.0.1[127.0.0.1]: > 250-PIPELINING > Jul 17 11:42:55 linuxgw postfix/smtp[20313]: < 127.0.0.1[127.0.0.1]: 250-SIZE > 502400000 > Jul 17 11:42:55 linuxgw postfix/smtp[20313]: < 127.0.0.1[127.0.0.1]: 250-VRFY > Jul 17 11:42:55 linuxgw postfix/smtp[20313]: < 127.0.0.1[127.0.0.1]: 250-ETRN > Jul 17 11:42:55 linuxgw postfix/smtp[20313]: < 127.0.0.1[127.0.0.1]: 250-XVERP > Jul 17 11:42:55 linuxgw postfix/smtp[20313]: < 127.0.0.1[127.0.0.1]: 250 > 8BITMIME > Jul 17 11:42:55 linuxgw postfix/smtp[20313]: warning: host > 127.0.0.1[127.0.0.1] replied to HELO/EHLO with my own hostname > linuxgw.myown.net > Jul 17 11:42:55 linuxgw postfix/smtp[20313]: connect to subsystem > private/defer > Jul 17 11:42:55 linuxgw postfix/smtp[20313]: send attr nrequest = 0 > Jul 17 11:42:55 linuxgw postfix/smtp[20313]: send attr flags = 0 > Jul 17 11:42:55 linuxgw postfix/smtp[20313]: send attr queue_id = 2859B35121 > Jul 17 11:42:55 linuxgw postfix/smtp[20313]: send attr original_recipient = > tz@localhost > Jul 17 11:42:55 linuxgw postfix/smtp[20313]: send attr recipient = > t...@localhost.myown.net > Jul 17 11:42:55 linuxgw postfix/smtp[20313]: send attr reason = mail for > 127.0.0.1:10025 loops back to myself > > main.cf contains > mydestination = $myhostname, localhost.$mydomain,$mydomain
FIRST: Do NOT send debug logs if not requested because they are mostly useless verbose and contains not more informations as the obly interesting "mail for 127.0.0.1:10025 loops back to myself" We are using "check_recipient_access" and a table with a filter for each domain and i am pĆ¼retty sure the "spamfilter" smtp instance does the trick master.cf: spamfilter unix - - n - 30 smtp -o disable_dns_lookups=yes -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes -o max_idle=1h -o max_use=1000 the domains having as example the value "FILTER spamfilter:[127.0.0.1]:10025" what means ypu can use different filters for different domains
signature.asc
Description: OpenPGP digital signature