Adri van Loopik: > use a relayhost. This works perfectly, the Linux box can send mail > indirectly - via the smtp server provided by my ISP - to internet > addresses. > > But when relayhost is defined, mail to other hosts on my LAN does not go > through.
relayhost, as documented, sends mail that isn't for the machine itself to the relayhost. However you can override relayhost, as documented, with transport_maps. So one example is: /etc/postfix/main.cf: transport_maps hash:/etc/postfix/transport relayhost = [smtp.isp.nl] /etc/postfix/transport .localdomain smtp: (instead of localdomain specify your local domain name). http://www.postfix.org/postconf.5.html#relayhost http://www.postfix.org/postconf.5.html#transport_maps http://www.postfix.org/transport.5.html Wietse