I saw the neohapsis archive message thread with someone asking about
this question and Wietse telling him to rearrange his IPs on his interfaces
as the solutions. That is not acceptable here so I was wondering if there
is a way to tell smtpd which address to bind it's sockets to when sending
mail to other servers. Thanks,
vec
-
To unsubscribe, send mail to majo...@postfix.org with content
(not subject): unsubscribe postfix-users
In your master.cf, change the smtp-inet line from e.g.
smtp inet n - n - 250 smtpd
to
smtp inet n - n - 250 smtpd -o bind_address=my.ip.ad.dy
--
Dean C. Strik Eindhoven University of Technology
de...@stack.nl | de...@ipnet6.org | http://www.ipnet6.org/
"This isn't right. This isn't even wrong." -- Wolfgang Pauli
inet_interfaces = xxx.xxx.xxx.xxx <--- Listening IP Address
smtp_bind_address = xxx.xxx.xxx.xxx <--- Sending IP Address
Bill
to
---
[This e-mail was scanned for viruses by Pointshare's Virus Scanning Service]
vec
> Vector wrote:
> > Hello all,
> > Is there a way to tell postfix which IP address to use when initiating
> > outgoing smtp connections and sending email? My network interface has
> > several IP's and I can't chage the primary IP because of other applications
>
> In your master.cf, change the smtp-inet line from e.g.
>
> smtp inet n - n - 250 smtpd
>
> to
>
> smtp inet n - n - 250 smtpd -o bind_address=my.ip.ad.dy
>
This is wrong:
- Outgoing connections have nothing to do with "smtpd".
- There is no parameter called "bind_address" that is understood by
"smtpd" or any other Postfix daemon.
- The place to set these parameters is usually main.cf not master.cf
unless the parameter setting varies by transport.
The right answer has already been provided in another response.
--
Viktor.
You're absolutely right; I was mistaken here.
> - The place to set these parameters is usually main.cf not master.cf
> unless the parameter setting varies by transport.
True.
--
Dean C. Strik Eindhoven University of Technology
de...@stack.nl | de...@ipnet6.org | http://www.ipnet6.org/
"This isn't right. This isn't even wrong." -- Wolfgang Pauli