Le 10/05/2011 12:23, Voytek Eymont a écrit : > I have Postfix 2.3.3 on a Centos behind NAT on home ADSL, ISP blocks > outbound 25, this is just for occasional casual use, I set it up to ISP > SMTP with > 'relayhost = [mail.bigpond.com]' > > I also have a Postfix server on internet > > what's the best way to relay from home ADSL NAT server through my own > Postfix server (rather than ISP) ? > > home external IP is dynamic, how to specify LAN IP (192.168.1.x) in conf > > (longer term I aim to install current release Postfix and sasl/smtp auth, > but this is just for interim use till it's upgraded) > >
use port 587 (submission) instead of 25 but you don't want anybody to use your server as a realy. so you need some way to authenticate your client. since the IP is dynamic, your (simple) choices are - SASL - TLS with a client certificate or you could use your (public) IP and have a script to update your postfix config whenevr this IP changes. of course, you can use a tunnel/vpn. ssh could do the job.