force postifx to look up again for mail exchangers

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

force postifx to look up again for mail exchangers

PeterDaem


Hi!

i have many emails in the deferred queue that cannot be sent because the destination resolved IP is no longer available.

is there anyway to force Postfix to look up again the list of mail exchangers addresses for the destination host/domain and try to send them again???

Thanks!

Pedreter.

Reply | Threaded
Open this post in threaded view
|

Re: force postifx to look up again for mail exchangers

Wietse Venema
Pedro David Marco:
> is there anyway to force Postfix to look up again the list of mail
> exchangers addresses for the destination host/domain and try to
> send them again???

The Postfix SMTP client **always** looks up the current list of MX
hosts and IP addresses. If it gets the wrong information, you need
to update your system configuration.

Maybe you have stale information in /var/spool/postfix/etc/resolv.conf.

        Wietse
Reply | Threaded
Open this post in threaded view
|

Re: force postifx to look up again for mail exchangers

PeterDaem
In reply to this post by PeterDaem
Thanks Wietse...

does this also happen with connections saved in scache?

Pedreter.

--------------------------------------------
On Tue, 6/21/16, Wietse Venema <[hidden email]> wrote:

 Subject: Re: force postifx to look up again for mail exchangers
 To: "Postfix users" <[hidden email]>
 Date: Tuesday, June 21, 2016, 9:10 PM
 
 Pedro David Marco:
 >
 is there anyway to force Postfix to look up again the list
 of mail
 > exchangers addresses for the
 destination host/domain and try to
 > send
 them again???
 
 The
 Postfix SMTP client **always** looks up the current list of
 MX
 hosts and IP addresses. If it gets the
 wrong information, you need
 to update your
 system configuration.
 
 Maybe
 you have stale information in
 /var/spool/postfix/etc/resolv.conf.
 
     Wietse
Reply | Threaded
Open this post in threaded view
|

Re: force postifx to look up again for mail exchangers

Wietse Venema
Wietse:
>  The Postfix SMTP client **always** looks up the current list of
>  MX hosts and IP addresses. If it gets the wrong information, you
>  need to update your system configuration.

Pedro David Marco:
> Thanks Wietse...
> does this also happen with connections saved in scache?

By default, a connection is not reused after 300 seconds
(smtp_connection_reuse_time_limit = 300s), or after it hasn't been
reused for 2 seconds..

SMTP connections are cached by name and by IP address.  When the
IP address becomes invalid, all connections with that IP address
break. When the Postfix SMTP client wants to reuse a connection it
sends an RSET command, which fails with a broken connection, after
which the Postfix SMTP client makes a new connection.

        Wietse