I'm running CentOS with postfix 2.3.3, amavisd-new, and spamassassin 3.3.

History: My postfix mail server for domainA is also the secondary mail server for domainB. A ton of email destined for domainB runs through the secondary mail server, all spam using the secondary . (This is actually a good thing, since domainA is a MSFT server I don't own that doesn't do as good a job at filtering, so I can prefilter it).
Mail that comes into the mail server for domainA filters through 
amavisd and spamassassin, gets the subject changed and the 
spamassassin scoring added to the headers, and delivered locally, all good.
However, mail that shows up at my mail server for domainB that gets 
relayed over to the primary mail server for domainB (aka spam) 
doesn't get the subject line changed, nor does it get the 
spamassassin scoring added to the headers.
Having the subject line get changed would be very useful. I'm fairly 
certain this isn't directly a postfix issue, but would appreciate a 
pointer on where in my postfix config to look to see why it's not working.
Attached are postfix logs from my QA environment, where 
int.example.com is DomainA, and example.com is DomainB, with the mail 
server qa_mail.int.example.com
These results are from specifying
RCPT TO: us...@example.com
RCPT TO: us...@int.example.com

Sep 13 14:26:15 qa_mail postfix/smtpd[15232]: connect from BN8F3B1.int.example.com[10.20.31.17] Sep 13 14:26:39 qa_mail postfix/smtpd[15232]: 150DEEFEFD: client=BN8F3B1.int.example.com[10.20.31.17] Sep 13 14:26:39 qa_mail postfix/cleanup[15239]: 150DEEFEFD: message-id=<20100913182639.150deef...@qa_mail.int.example.com> Sep 13 14:26:39 qa_mail postfix/qmgr[15181]: 150DEEFEFD: from=<us...@external.example.com>, size=494, nrcpt=2 (queue active) Sep 13 14:26:39 qa_mail postfix/smtp[15240]: initializing the client-side TLS engine Sep 13 14:26:39 qa_mail postfix/smtpd[15232]: disconnect from BN8F3B1.int.example.com[10.20.31.17] Sep 13 14:26:39 qa_mail amavis[15227]: (15227-01) ESMTP::10024 /var/amavis/tmp/amavis-20100913T142639-15227: <us...@external.example.com> -> <us...@int.example.com>,<us...@example.com> SIZE=494 Received: from qa_mail.int.example.com ([127.0.0.1]) by localhost (qa_mail.int.example.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP; Mon, 13 Sep 2010 14:26:39 -0400 (EDT) Sep 13 14:26:39 qa_mail amavis[15227]: (15227-01) Checking: ZfUSvurEIs8R ORIGINATING [10.20.31.17] <us...@external.example.com> -> <us...@int.example.com>,<us...@example.com> Sep 13 14:26:44 qa_mail postfix/smtpd[15246]: connect from qa_mail.int.example.com[127.0.0.1] Sep 13 14:26:44 qa_mail postfix/smtpd[15246]: CCE8AEFF76: client=qa_mail.int.example.com[127.0.0.1] Sep 13 14:26:44 qa_mail postfix/cleanup[15239]: CCE8AEFF76: message-id=<20100913182639.150deef...@qa_mail.int.example.com> Sep 13 14:26:44 qa_mail postfix/qmgr[15181]: CCE8AEFF76: from=<us...@external.example.com>, size=1237, nrcpt=1 (queue active) Sep 13 14:26:44 qa_mail amavis[15227]: (15227-01) FWD via SMTP: <us...@external.example.com> -> <user1+s...@int.example.com>,BODY=7BIT 250 2.0.0 Ok, id=15227-01, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as CCE8AEFF76 Sep 13 14:26:44 qa_mail postfix/smtpd[15246]: D6DF1EFF98: client=qa_mail.int.example.com[127.0.0.1] Sep 13 14:26:44 qa_mail postfix/cleanup[15249]: D6DF1EFF98: message-id=<20100913182639.150deef...@qa_mail.int.example.com> Sep 13 14:26:44 qa_mail postfix/qmgr[15181]: D6DF1EFF98: from=<us...@external.example.com>, size=970, nrcpt=1 (queue active) Sep 13 14:26:44 qa_mail amavis[15227]: (15227-01) FWD via SMTP: <us...@external.example.com> -> <us...@example.com>,BODY=7BIT 250 2.0.0 Ok, id=15227-01, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as D6DF1EFF98 Sep 13 14:26:44 qa_mail amavis[15227]: (15227-01) Passed SPAMMY, ORIGINATING LOCAL [10.20.31.17] [10.20.31.17] <us...@external.example.com> -> <us...@int.example.com>,<us...@example.com>, Message-ID: <20100913182639.150deef...@qa_mail.int.example.com>, mail_id: ZfUSvurEIs8R, Hits: 7.96, size: 494, queued_as: CCE8AEFF76/D6DF1EFF98, 5750 ms Sep 13 14:26:44 qa_mail postfix/smtp[15250]: initializing the client-side TLS engine Sep 13 14:26:44 qa_mail postfix/smtp[15240]: 150DEEFEFD: to=<us...@int.example.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=6, delays=0.12/0.05/0.01/5.8, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=15227-01, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as CCE8AEFF76) Sep 13 14:26:44 qa_mail postfix/smtp[15240]: 150DEEFEFD: to=<us...@example.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=6, delays=0.12/0.05/0.01/5.8, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=15227-01, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as CCE8AEFF76)
Sep 13 14:26:44 qa_mail postfix/qmgr[15181]: 150DEEFEFD: removed
Sep 13 14:26:44 qa_mail dovecot: deliver(us...@int.example.com): msgid=<20100913182639.150deef...@qa_mail.int.example.com>: saved mail to Spam Sep 13 14:26:44 qa_mail postfix/pipe[15247]: CCE8AEFF76: to=<user1+s...@int.example.com>, relay=dovecot, delay=0.14, delays=0.01/0.01/0/0.11, dsn=2.0.0, status=sent (delivered via dovecot service)
Sep 13 14:26:44 qa_mail postfix/qmgr[15181]: CCE8AEFF76: removed
Sep 13 14:26:45 qa_mail postfix/smtp[15250]: D6DF1EFF98: to=<us...@example.com>, relay=smtp.int.example.com[10.10.20.150]:25, delay=0.14, delays=0.02/0.07/0/0.04, dsn=2.6.0, status=sent (250 2.6.0 <20100913182639.150deef...@qa_mail.int.example.com> Queued mail for delivery)
Sep 13 14:26:45 qa_mail postfix/qmgr[15181]: D6DF1EFF98: removed

master.cf:
amavisd-new unix  -     -        n        -     2        smtp
        -o smtp_data_done_timeout=1200s
        -o disable_dns_lookups=yes
127.0.0.1:10025  inet   n  -     n        -     -       smtpd
        -o content_filter=
        -o local_recipient_maps=
        -o relay_recipient_maps=
        -o smtpd_restriction_classes=
        -o smtpd_client_restrictions=
        -o smtpd_helo_restrictions=
        -o smtpd_sender_restrictions=permit_mynetworks,reject
        -o mynetworks=127.0.0.0/8
        -o strict_rfc821_envelopes=yes
-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
        -o smtpd_recipient_restrictions=permit_mynetworks,reject
        -o smtpd_data_restrictions=




Rick Steeves
http://www.sinister.net

In reality nothing is more damaging to the adventurous spirit within a man than a secure future - Alexander Supertramp


Reply via email to