Running Postfix 2.5.5 on Linux. The system is multihomed, connected to several private networks, and to the Internet with a dynamic DNS hostname.

I'm using Amavisd-new with SpamAssassin and a bunch of other things to filter email. Currently all email is filtered by Amavis. But I want to only filter messages coming from the outside. I read this document...

http://www.postfix.org/FILTER_README.html#remote_only

...and it makes sense, except there's a problem: my public IP is dynamic.

Is there a way to bind the listener to an interface using the interface name (eth5:smtp) instead of the IP (1.2.3.4:smtp)?

If that's not possible, I guess I could create a fixed-address virtual interface on the server, bind the listener to it, and then make a "wormhole" with iptables between the dynamic outside interface and the fixed virtual interface. But that's pretty convoluted. I prefer to keep things simple, hence this inquiry.

--
Florin Andrei

http://florin.myip.org/

Reply via email to