Sandy Drobic wrote:

inet_interfaces = $myhostname

That parameter sets the ips for LISTENING to SMTP connections.

Correct, and according to the docs at http://www.postfix.org/postconf.5.html, when a single IP address is specified, that single IP address is used as the source IP address.

Use smtp_bind_address in master.cf:
http://www.postfix.org/postconf.5.html#smtp_bind_address

Please be aware that a content_filter on localhost might be unreachable if you don't use a separate transport for that purpose.

In this particular configuration, the IPs to bind to are specified explicitly within master.cf. The clamsmtpd transport did briefly have a problem connecting back to postfix, but that was because clamsmtpd was told to bind to a port on the source IP address only (where postfix wasn't listening for inbound virus scanned mail). When clamsmtpd was told to deliver virus scanning mail to 127.0.0.1:10026 instead of 10026, the filter worked again.

You would probably have received much more helpful answers if you had asked about a soure ip address instead of the source port.

Looking back, I did ask about a source IP address...?

Regards,
Graham
--

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to