You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by "Hagop \"Jack\" Bilemjian" <jc...@gmail.com> on 2011/04/14 01:16:07 UTC

Spamassassin w/Postfix mail disappears when cc'd

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=<jc...@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
<BA...@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=<BA...@mail.gmail.com>,autolearn=ham

Apr 13 05:07:44 mikey postfix/pipe[15570]: C63A019314C0:
to=<bo...@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=<do...@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>, 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:
--------------------------------

header   RULE_PROPOSAL Subject =~ /Mikey Proposal/
score    RULE_PROPOSAL -99
describe RULE_PROPOSAL Allows relays of proposals

whitelist_from "*@mikey.com"
whitelist_from "jck000@gmail.com"

whitelist_from "cost@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:

-----------------------

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:
---------------------
eader_checks = regexp:/etc/postfix/header_checks




/etc/postfix/header_checks:
---------------------------

/^X-Spam-Flag: YES/ REDIRECT spam@mikey.com



Thanks in advance for your help.
-- 

Jack

Re: Spamassassin w/Postfix mail disappears when cc'd

Posted by Robert Schetterer <ro...@schetterer.org>.
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=<jck000@gmail.com <ma...@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_U9iuvXP9Q@mail.gmail.com <ma...@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_U9iuvXP9Q@mail.gmail.com <ma...@mail.gmail.com>>,autolearn=ham
> 
> 
> Apr 13 05:07:44 mikey postfix/pipe[15570]: C63A019314C0: to=<bobh@mikey.com <ma...@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=<donn@mikey.com <ma...@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=<peteg@mikey.com <ma...@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 "jck000@gmail.com <ma...@gmail.com>"
> 
> 
> whitelist_from "cost@custom.com <ma...@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 spam@mikey.com <ma...@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 spam@mikey.com <ma...@mikey.com>

i recommend to read again examples with your kind of setup

-- 
Best Regards

MfG Robert Schetterer

Germany/Munich/Bavaria