On Sat, Sep 26, 2009 at 02:43:35AM +0200, Sven Strickroth wrote:
> Is it possible to tell postfix not to send mails if the
> smtp_bind_address is not available?
Not without source code changes:
src/smtp/smtp_connect.c:smtp_connect_addr()
...
if (bind(sock, res0->ai_addr, res0->ai_addrlen) < 0)
msg_warn("%s: bind %s: %m", myname, bind_addr);
so failure to bind the requested address is logged, but is not fatal.
Why does the address get de-configured? You should be able to bind
it provided the interface is administratively up, even if it is not
working.
--
Viktor.
Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.
To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:[email protected]?body=unsubscribe%20postfix-users>
If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.