Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

tcpdumping the spamassassin return (port 10026) shows that the MAILER-DAEMON and debian-spamd is present:

MAIL FROM:<debian-spamd@relay.company.com> SIZE=663
250 2.1.0 Ok
RCPT TO:<MAILER-DAEMON@relay.company.com>
250 2.1.5 Ok
354 End data with <CR><LF>.<CR><LF>
Received: by relay.company.com (Postfix, from userid 109)
    id 0A9B519404C; Tue, 24 Sep 2013 10:43:09 +0200 (CEST)
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on relay.company.com
X-Spam-Status: No, score=0.2 required=5.0 tests=ALL_TRUSTED,FREEMAIL_FROM,
    MISSING_HEADERS autolearn=no version=3.3.2
Received: from localhost (localhost [])
    by relay.company.com (Postfix) with SMTP id 51BE8194049
    for <email@company.com>; Tue, 24 Sep 2013 10:42:58 +0200 (CEST)
subject: test 6
Message-Id: <20130924084303.51BE8194049@relay.company.com>
Date: Tue, 24 Sep 2013 10:42:58 +0200 (CEST)
From: email@gmail.com

clamsmtp with content filter that passes to spamassassin:

Sep 24 10:01:38 relay clamsmtpd: 10285C: from=debian-spamd@relay.company.com, to=email@gmail.com, to=email@company.com, to=MAILER-DAEMON@relay.company.com, status=CLEAN

clamsmtp without the spamassassin content filter:

Sep 24 10:37:19 relay clamsmtpd: 1028FC: from=email@gmail.com, to=email@company.com, status=CLEAN

The postfix config (if commenting out '-o content_filter=spamassassin' and problem goes away)

smtp      inet  n       -       -       -       -       smtpd
  -o content_filter=spamassassin

spamassassin unix -     n       n       -       -       pipe
  user=debian-spamd argv=/usr/bin/spamc -f -e /usr/sbin/sendmail \
scan unix - - n - 16 smtp
    -o smtp_send_xforward_command=yes inet n - n - 16 smtpd
    -o content_filter=
    -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
    -o smtpd_helo_restrictions=
    -o smtpd_client_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o mynetworks_style=host
    -o smtpd_authorized_xforward_hosts=
share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.