Discussion:
Postfix “RCPT from unknown Sender address rejected: Domain not found" error after SpamAssassin installation
(too old to reply)
Carlo Manuali
2015-09-02 09:34:48 UTC
Permalink
Dear all,

I have a production server which to deliver mails (btw with SSL) uses:

mailbox_command = /usr/bin/procmail -a "$EXTENSION" DEFAULT=$HOME/Maildir/ MAILDIR=$HOME/Maildir

After installing SpamAssassin (v3.3 on redhat, for which local testing is ok) I changed:

#smtp inet n - n - - smtpd
smtp inet n - - - - smtpd -o content_filter=spamassassin
spamassassin unix - n n - - pipe user=spamd argv=/usr/bin/spamc -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}

Now, when I try to use the server to send real mails (from outside to local addresses) I receive messages like this:

NOQUEUE: reject: RCPT from unknown Sender address rejected: Domain not found

It seems that postfix conf is ignored, procmail included?
Have you any suggestion?

Thank you very much for your support.

--Carlo
Kevin A. McGrail
2015-09-02 09:43:39 UTC
Permalink
Post by Carlo Manuali
NOQUEUE: reject: RCPT from unknown Sender address rejected: Domain not found
Are you sure the sender domain is legit and doesn't have a misspelling?

Is DNS on the box working? I would conjecture this is much earlier in
the discussion phase with postfix and spamassassin isn't even involved
in this issue.

regards,
KAM
Carlo Manuali
2015-09-02 09:50:14 UTC
Permalink
Hi,

I tried different senders and I always receive the same error. More of this, if I change back:

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

to

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

all comes back to working well.

So, I suppose a SpamAssassin related problem. Can I provide other useful information?

Thank you,
—Carlo
Post by Kevin A. McGrail
Post by Carlo Manuali
NOQUEUE: reject: RCPT from unknown Sender address rejected: Domain not found
Are you sure the sender domain is legit and doesn't have a misspelling?
Is DNS on the box working? I would conjecture this is much earlier in the discussion phase with postfix and spamassassin isn't even involved in this issue.
regards,
KAM
Reindl Harald
2015-09-02 09:57:38 UTC
Permalink
"NOQUEUE: reject: RCPT from unknown Sender address rejected: Domain not
found" is clearly Postfix and "reject_unknown_sender_domain" while you
should post *all* loglines for that transaction and not just one
stripped line
Post by Carlo Manuali
Hi,
#smtp inet n - n - - smtpd
smtp inet n - - - - smtpd -o content_filter=spamassassin
to
smtp inet n - n - - smtpd
#smtp inet n - - - - smtpd -o content_filter=spamassassin
all comes back to working well.
So, I suppose a SpamAssassin related problem. Can I provide other useful information?
Thank you,
—Carlo
Post by Kevin A. McGrail
Post by Carlo Manuali
NOQUEUE: reject: RCPT from unknown Sender address rejected: Domain not found
Are you sure the sender domain is legit and doesn't have a misspelling?
Is DNS on the box working? I would conjecture this is much earlier in the discussion phase with postfix and spamassassin isn't even involved in this issue.
regards,
KAM
Kevin A. McGrail
2015-09-02 09:59:25 UTC
Permalink
Post by Carlo Manuali
So, I suppose a SpamAssassin related problem. Can I provide other useful information?
Or a configuration issue with postfix. Nothing jumps out to me as
obvious and you are on the same track I would be removing the content
filter and adding back.

Might want to look at
https://wiki.apache.org/spamassassin/IntegratedSpamdInPostfix and there
is plenty of crossover with SA and postfix so won't be surprised if
someone else can pinpoint the issue.

regards,
KAM
Carlo Manuali
2015-09-02 10:08:08 UTC
Permalink
I use “reject_unknown_sender_domain” as one of smtpd_recipient_restrictions. What I do not understand is why only when use -o content_filter=spamassassin this turn in the mentioned error; the transaction log (in the following line @domain.eu is the SMTP server domain) is very simple:

postfix/smtpd[19810]: NOQUEUE: reject: RCPT from unknown[XXX.XXX.XXX.XXX]: 450 4.1.8 <***@unipg.it>: Sender address rejected: Domain not found; from=<***@unipg.it> to=<***@domain.eu> proto=ESMTP helo=<smtp.unipg.it>

Thanks
—Carlo
"NOQUEUE: reject: RCPT from unknown Sender address rejected: Domain not found" is clearly Postfix and "reject_unknown_sender_domain" while you should post *all* loglines for that transaction and not just one stripped line
Post by Carlo Manuali
Hi,
#smtp inet n - n - - smtpd
smtp inet n - - - - smtpd -o content_filter=spamassassin
to
smtp inet n - n - - smtpd
#smtp inet n - - - - smtpd -o content_filter=spamassassin
all comes back to working well.
So, I suppose a SpamAssassin related problem. Can I provide other useful information?
Thank you,
—Carlo
Post by Kevin A. McGrail
Post by Carlo Manuali
NOQUEUE: reject: RCPT from unknown Sender address rejected: Domain not found
Are you sure the sender domain is legit and doesn't have a misspelling?
Is DNS on the box working? I would conjecture this is much earlier in the discussion phase with postfix and spamassassin isn't even involved in this issue.
regards,
KAM
______________________________________________________________________

Dr. Carlo Manuali
Responsabile Servizi Informatici / IT Services Manager
Department of Chemistry, Biology and Biotechnology - University of Perugia (IT)
Mail: ***@unipg.it
Web: http://www.unipg.it/carlo
Office: +39.075.5855213
______________________________________________________________________
Reindl Harald
2015-09-02 10:12:21 UTC
Permalink
column 5 in master.cf ist chroot

you enabled that by "-" instead "n" and so no surprise that postfix is
not able to resolve - just don't do that!

running postfix with chroot enabled is the root cause of most problems
over many years - including the wrong debian defaults while not take
care of a sane and working chroot
"NOQUEUE: reject: RCPT from unknown Sender address rejected: Domain not found" is clearly Postfix and "reject_unknown_sender_domain" while you should post *all* loglines for that transaction and not just one stripped line
Post by Carlo Manuali
Hi,
#smtp inet n - n - - smtpd
smtp inet n - - - - smtpd -o content_filter=spamassassin
to
smtp inet n - n - - smtpd
#smtp inet n - - - - smtpd -o content_filter=spamassassin
all comes back to working well.
So, I suppose a SpamAssassin related problem. Can I provide other useful information?
Thank you,
—Carlo
Post by Kevin A. McGrail
Post by Carlo Manuali
NOQUEUE: reject: RCPT from unknown Sender address rejected: Domain not found
Are you sure the sender domain is legit and doesn't have a misspelling?
Is DNS on the box working? I would conjecture this is much earlier in the discussion phase with postfix and spamassassin isn't even involved in this issue.
regards,
KAM
Carlo Manuali
2015-09-02 10:20:00 UTC
Permalink
Dear Harald,
you solved my problem.
Thank you very much,
—Carlo
Post by Reindl Harald
column 5 in master.cf ist chroot
you enabled that by "-" instead "n" and so no surprise that postfix is not able to resolve - just don't do that!
running postfix with chroot enabled is the root cause of most problems over many years - including the wrong debian defaults while not take care of a sane and working chroot
"NOQUEUE: reject: RCPT from unknown Sender address rejected: Domain not found" is clearly Postfix and "reject_unknown_sender_domain" while you should post *all* loglines for that transaction and not just one stripped line
Post by Carlo Manuali
Hi,
#smtp inet n - n - - smtpd
smtp inet n - - - - smtpd -o content_filter=spamassassin
to
smtp inet n - n - - smtpd
#smtp inet n - - - - smtpd -o content_filter=spamassassin
all comes back to working well.
So, I suppose a SpamAssassin related problem. Can I provide other useful information?
Thank you,
—Carlo
Post by Kevin A. McGrail
Post by Carlo Manuali
NOQUEUE: reject: RCPT from unknown Sender address rejected: Domain not found
Are you sure the sender domain is legit and doesn't have a misspelling?
Is DNS on the box working? I would conjecture this is much earlier in the discussion phase with postfix and spamassassin isn't even involved in this issue.
regards,
KAM
______________________________________________________________________

Dr. Carlo Manuali
Responsabile Servizi Informatici / IT Services Manager
Department of Chemistry, Biology and Biotechnology - University of Perugia (IT)
Mail: ***@unipg.it
Web: http://www.unipg.it/carlo
Office: +39.075.5855213
______________________________________________________________________
Loading...