Sven Strickroth put forth on 9/25/2009 7:43 PM:
> Hi,
> 
> I've a server with multiple ip addresses (all dial-in). But only one
> static ip-address. So if the static ip line is down postfix prints out
> "warning: smtp_connect_addr: bind x.x.x.x: Cannot assign requested
> address" and uses the other (dynamic) ip for sending.
> 
> Is it possible to tell postfix not to send mails if the
> smtp_bind_address is not available?

http://www.postfix.org/postconf.5.html#smtp_bind_address

smtp_bind_address (default: empty)

    An optional numerical network address that the Postfix SMTP client
should bind to when making an IPv4 connection.

    This can be specified in the main.cf file for all SMTP clients, or
it can be specified in the master.cf file for a specific client, for
example:

        /etc/postfix/master.cf:
            smtp ... smtp -o smtp_bind_address=11.22.33.44

    Note 1: when inet_interfaces specifies no more than one IPv4
address, and that address is a non-loopback address, it is automatically
used as the smtp_bind_address. This supports virtual IP hosting, but can
be a problem on multi-homed firewalls. See the inet_interfaces
documentation for more detail.

    Note 2: address information may be enclosed inside [], but this form
is not required here.


Reply via email to