You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Carlo Manuali <ca...@unipg.it> on 2015/09/02 11:34:48 UTC
Postfix “RCPT from unknown Sender address rejected: Domain not found" error after SpamAssassin installation
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
Re: Postfix “RCPT from unknown Sender address rejected: Domain not found" error after SpamAssassin installation
Posted by "Kevin A. McGrail" <KM...@PCCC.com>.
On 9/2/2015 5:50 AM, Carlo Manuali wrote:
> 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
Re: Postfix “RCPT from unknown Sender address rejected: Domain not found" error after SpamAssassin installation
Posted by Carlo Manuali <ca...@unipg.it>.
Dear Harald,
you solved my problem.
Thank you very much,
—Carlo
> On 02 Sep 2015, at 12:12, Reindl Harald <h....@thelounge.net> wrote:
>
>
>
> Am 02.09.2015 um 12:08 schrieb Carlo Manuali:
>> 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 <ma...@unipg.it>: Sender address rejected: Domain not found; from=<ma...@unipg.it> to=<or...@domain.eu> proto=ESMTP helo=<smtp.unipg.it>
>
> 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
>
>>> On 02 Sep 2015, at 11:57, Reindl Harald <h....@thelounge.net> wrote:
>>>
>>> "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
>>>
>>> Am 02.09.2015 um 11:50 schrieb Carlo Manuali:
>>>> 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
>>>>
>>>>> On 02 Sep 2015, at 11:43, Kevin A. McGrail <KM...@PCCC.com> wrote:
>>>>>
>>>>> On 9/2/2015 5:34 AM, Carlo Manuali wrote:
>>>>>> 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: carlo.manuali@unipg.it
Web: http://www.unipg.it/carlo
Office: +39.075.5855213
______________________________________________________________________
Re: Postfix “RCPT from unknown Sender address rejected: Domain not found" error after SpamAssassin installation
Posted by Reindl Harald <h....@thelounge.net>.
Am 02.09.2015 um 12:08 schrieb Carlo Manuali:
> 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 <ma...@unipg.it>: Sender address rejected: Domain not found; from=<ma...@unipg.it> to=<or...@domain.eu> proto=ESMTP helo=<smtp.unipg.it>
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
>> On 02 Sep 2015, at 11:57, Reindl Harald <h....@thelounge.net> wrote:
>>
>> "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
>>
>> Am 02.09.2015 um 11:50 schrieb Carlo Manuali:
>>> 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
>>>
>>>> On 02 Sep 2015, at 11:43, Kevin A. McGrail <KM...@PCCC.com> wrote:
>>>>
>>>> On 9/2/2015 5:34 AM, Carlo Manuali wrote:
>>>>> 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
Re: Postfix “RCPT from unknown Sender address rejected: Domain not found" error after SpamAssassin installation
Posted by Carlo Manuali <ca...@unipg.it>.
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 <ma...@unipg.it>: Sender address rejected: Domain not found; from=<ma...@unipg.it> to=<or...@domain.eu> proto=ESMTP helo=<smtp.unipg.it>
Thanks
—Carlo
> On 02 Sep 2015, at 11:57, Reindl Harald <h....@thelounge.net> wrote:
>
> "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
>
> Am 02.09.2015 um 11:50 schrieb Carlo Manuali:
>> 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
>>
>>> On 02 Sep 2015, at 11:43, Kevin A. McGrail <KM...@PCCC.com> wrote:
>>>
>>> On 9/2/2015 5:34 AM, Carlo Manuali wrote:
>>>> 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: carlo.manuali@unipg.it
Web: http://www.unipg.it/carlo
Office: +39.075.5855213
______________________________________________________________________
Re: Postfix “RCPT from unknown Sender address rejected: Domain not found" error after SpamAssassin installation
Posted by Reindl Harald <h....@thelounge.net>.
"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
Am 02.09.2015 um 11:50 schrieb Carlo Manuali:
> 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
>
>> On 02 Sep 2015, at 11:43, Kevin A. McGrail <KM...@PCCC.com> wrote:
>>
>> On 9/2/2015 5:34 AM, Carlo Manuali wrote:
>>> 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
Re: Postfix “RCPT from unknown Sender address rejected: Domain not found" error after SpamAssassin installation
Posted by Carlo Manuali <ca...@unipg.it>.
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
> On 02 Sep 2015, at 11:43, Kevin A. McGrail <KM...@PCCC.com> wrote:
>
> On 9/2/2015 5:34 AM, Carlo Manuali wrote:
>> 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
Re: Postfix “RCPT from unknown Sender address rejected: Domain not found" error after SpamAssassin installation
Posted by "Kevin A. McGrail" <KM...@PCCC.com>.
On 9/2/2015 5:34 AM, Carlo Manuali wrote:
> 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