Am 14.04.2011 01:16, schrieb Hagop "Jack" Bilemjian: > Hi > > I have a problem with Spamassassin and Postfix. Everything seems to > work except when the email being delivered is being delivered to several > users as in a newsletter or a price list. Somehow, these emails > disappear even thought they're not marked as spam, all of the limits are > set high AND all spam is to be redirected to user spam. The redirection > to spam works. Here are the pertinent files/settings. > > SpamAssassin version 3.2.5 > running on Perl version 5.8.8 > > Name : spamassassin > Arch : x86_64 > Version : 3.2.5 > Release : 1.el5 > > Name : postfix > Arch : x86_64 > > > Epoch : 2 > Version : 2.3.3 > Release : 2.1.el5_2 > > Log of email sent: > ------------------ > Apr 13 05:07:44 mikey postfix/qmgr[1530]: C63A019314C0: > from=<jck...@gmail.com <mailto:jck...@gmail.com>>, size=468944, nrcpt=3 > (queue active) > > > Apr 13 05:07:44 mikey spamd[13677]: spamd: connection from localhost > [127.0.0.1] at port 38431 > Apr 13 05:07:44 mikey spamd[13677]: spamd: setuid to bobh succeeded > Apr 13 05:07:44 mikey spamd[13677]: spamd: processing message > <BANLkTi=453eoegzscq9y91yk_u9iuvx...@mail.gmail.com > <mailto:453eoegzscq9y91yk_u9iuvx...@mail.gmail.com>> for bobh:501 > > > Apr 13 05:07:44 mikey spamd[13677]: spamd: clean message (-0.6/8.0) for > bobh:501 in 0.4 seconds, 462897 bytes. > Apr 13 05:07:44 mikey spamd[13677]: spamd: result: . 0 - > AWL,HTML_MESSAGE,RCVD_IN_DNSWL_LOW > scantime=0.4,size=462897,user=bobh,uid=501,required_score=8.0,rhost=localhost,raddr=127.0.0.1,rport=38431,mid=<BANLkTi=453eoegzscq9y91yk_u9iuvx...@mail.gmail.com > <mailto:453eoegzscq9y91yk_u9iuvx...@mail.gmail.com>>,autolearn=ham > > > Apr 13 05:07:44 mikey postfix/pipe[15570]: C63A019314C0: to=<b...@mikey.com > <mailto:b...@mikey.com>>, relay=spamassassin, delay=3.8, delays=3.4/0/0/0.44, > dsn=2.0.0, status=sent (delivered via spamassassin service) > > > Apr 13 05:07:44 mikey postfix/pipe[15570]: C63A019314C0: to=<d...@mikey.com > <mailto:d...@mikey.com>>, relay=spamassassin, delay=3.8, delays=3.4/0/0/0.44, > dsn=2.0.0, status=sent (delivered via spamassassin service) > > > Apr 13 05:07:44 mikey postfix/pipe[15570]: C63A019314C0: to=<pe...@mikey.com > <mailto:pe...@mikey.com>>, relay=spamassassin, delay=3.8, > delays=3.4/0/0/0.44, dsn=2.0.0, status=sent (delivered via spamassassin > service) > > > Apr 13 05:07:44 mikey postfix/qmgr[1530]: C63A019314C0: removed > Apr 13 05:07:44 mikey spamd[1466]: prefork: child states: II > > > /etc/mail/spamassassin/local.cf <http://local.cf>: > -------------------------------- > > > header RULE_PROPOSAL Subject =~ /Mikey Proposal/ > score RULE_PROPOSAL -99 > describe RULE_PROPOSAL Allows relays of proposals > > whitelist_from "*@mikey.com <http://mikey.com>" > whitelist_from "jck...@gmail.com <mailto:jck...@gmail.com>" > > > whitelist_from "c...@custom.com <mailto:c...@custom.com>" > > trusted_networks 192.168.100/24 # all in 192.168.*.* > required_hits 8.0 > report_safe 1 > use_bayes 1 > > > bayes_auto_learn 1 > bayes_path /home/spamd/bayes > bayes_file_mode 0777 > skip_rbl_checks 0 > use_razor2 0 > use_pyzor 0 > > > /etc/mail/spamassassin/spamc.conf: > > > ---------------------------------- > # max message size for scanning = 1,000,000 (1M) > -s 1000000 > > # timeout 1200 seconds > -t 1200 > > # retry time to spamd > --retry-sleep=10 > > > > /etc/postfix/master.cf <http://master.cf>: > > > ----------------------- > > smtp inet n - n - - smtpd -o > content_filter=spamassassin > > spamassassin unix - n n - - pipe user=nobody > argv=/usr/bin/spamc -u ${user} -e /usr/sbin/sendmail.postfix -oi -f ${sender} > ${recipient} > > > > > > /etc/postfix/main.cf <http://main.cf>: > --------------------- > eader_checks = regexp:/etc/postfix/header_checks > > > > > /etc/postfix/header_checks: > --------------------------- > > > /^X-Spam-Flag: YES/ REDIRECT s...@mikey.com <mailto:s...@mikey.com> > > > > Thanks in advance for your help. > -- > > Jack >
your setup postfix with spamassassin is not optimal ( after all it should work, didnt checked your parameters ), better use i.e spamass-milter i dont believe this mailto working /^X-Spam-Flag: YES/ REDIRECT s...@mikey.com <mailto:s...@mikey.com> i recommend to read again examples with your kind of setup -- Best Regards MfG Robert Schetterer Germany/Munich/Bavaria