Thanks a lot Wietse,

for Postfix

and also for this very helpful reaction and good advice. It has
worked, though not immediately.

I had first also to put smtp_host_lookup  on 'native, dns' (I did the
same for lmtp_host_lookup, not sure that was needed).

Everything started to go really well after I had also edited
/etc/nsswitc.conf, by putting everything on 'files'.

kind regards (en vriendelijke groet),

Adri van Loopik.



2013/1/18 Wietse Venema <wie...@porcupine.org>
>
> 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

Reply via email to