Why local smtp connection is rejected ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Why local smtp connection is rejected ?

Daniel Caillibaud-5
I have a pb with some mails (with unknown domains) injected into postfix locally by fetchmail.

postfix reject smtp transaction when sender domain name is not found, which is wanted exepted when it's a fetched mail.

I don't want fetchmail send directly to delivery agent because I want spamassassin doing its job.

Error msg is
Oct 24 17:15:03 v0 postfix/smtpd[1495]: NOQUEUE: reject: RCPT from localhost.localdomain[127.0.0.1]: 450 4.1.8
<[hidden email]>: Sender address rejected: Domain not found; from=<[hidden email]> to=<[hidden email]>
proto=ESMTP helo=<v0.edulibre.org>

I have in main.cf

mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128

smtpd_recipient_restrictions = permit_mynetworks,
  permit_sasl_authenticated,
  reject_unauth_destination,
  reject_unknown_recipient_domain,
  reject_non_fqdn_recipient,
 warn_if_reject reject_unverified_recipient

I understood that restrictions should stop when permit_mynetworks occurs, but it's not the case so I misunderstood
something, I just don't find what...

Thanks

--
Daniel
Reply | Threaded
Open this post in threaded view
|

Re: Why local smtp connection is rejected ?

Michael Tokarev
Daniel Caillibaud wrote:

> I have a pb with some mails (with unknown domains) injected into postfix locally by fetchmail.
>
> postfix reject smtp transaction when sender domain name is not found, which is wanted exepted when it's a fetched mail.
>
> I don't want fetchmail send directly to delivery agent because I want spamassassin doing its job.
>
> Error msg is
> Oct 24 17:15:03 v0 postfix/smtpd[1495]: NOQUEUE: reject: RCPT from localhost.localdomain[127.0.0.1]: 450 4.1.8
> <[hidden email]>: Sender address rejected: Domain not found; from=<[hidden email]> to=<[hidden email]>
> proto=ESMTP helo=<v0.edulibre.org>
>
> I have in main.cf
>
> mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
>
> smtpd_recipient_restrictions = permit_mynetworks,
>   permit_sasl_authenticated,
>   reject_unauth_destination,
>   reject_unknown_recipient_domain,
>   reject_non_fqdn_recipient,
>  warn_if_reject reject_unverified_recipient
>
> I understood that restrictions should stop when permit_mynetworks occurs, but it's not the case so I misunderstood
> something, I just don't find what...

How about following the fine instructions presented to you when
you joined this list?  In particular, it says about posting
`postconf -n' output.

/mjt
Reply | Threaded
Open this post in threaded view
|

Re: Why local smtp connection is rejected ?

Noel Jones-2
In reply to this post by Daniel Caillibaud-5
On 10/24/2009 10:26 AM, Daniel Caillibaud wrote:

> I have a pb with some mails (with unknown domains) injected into postfix locally by fetchmail.
>
> postfix reject smtp transaction when sender domain name is not found, which is wanted exepted when it's a fetched mail.
>
> I don't want fetchmail send directly to delivery agent because I want spamassassin doing its job.
>
> Error msg is
> Oct 24 17:15:03 v0 postfix/smtpd[1495]: NOQUEUE: reject: RCPT from localhost.localdomain[127.0.0.1]: 450 4.1.8
> <[hidden email]>: Sender address rejected: Domain not found; from=<[hidden email]>  to=<[hidden email]>
> proto=ESMTP helo=<v0.edulibre.org>
>
> I have in main.cf
>
> mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
>
> smtpd_recipient_restrictions = permit_mynetworks,
>    permit_sasl_authenticated,
>    reject_unauth_destination,
>    reject_unknown_recipient_domain,
>    reject_non_fqdn_recipient,
>   warn_if_reject reject_unverified_recipient
>
> I understood that restrictions should stop when permit_mynetworks occurs, but it's not the case so I misunderstood
> something, I just don't find what...
>

You probably need to add permit_mynetworks to the other
smtpd_*_restrictions sections you have defined.

If you need more help, show "postconf -n" output as requested
in the list welcome message.

   -- Noel Jones
Reply | Threaded
Open this post in threaded view
|

Re: Why local smtp connection is rejected ?

Daniel Caillibaud-5
Le 24/10/09 à 10:41, Noel Jones <[hidden email]> a écrit :

> You probably need to add permit_mynetworks to the other
> smtpd_*_restrictions sections you have defined.

Thanks, it was smtpd_sender_restrictions

> If you need more help, show "postconf -n" output as requested
> in the list welcome message.

Sorry, I subscribed a year ago and forgot this, it's my first post (I'm using this list as a knowledge base), I won't forget.

--
Daniel