Re: multiple smtp servers?



Hi,

On 2005.04.06 14:26, Michael A. Peters wrote:
If not, is there any hackery/tricery with postfix to have it pretend it is a mail client and log onto the various smtp servers to send the message dependent upon the from address?

you can do this in Postfix by defining transport maps. In my set-up, I have put these lines into /etc/postfix/transport:
	arcor.de smtp:smtp.tiscali.de
	t-online.de smtp:smtp.tiscali.de
	web.de smtp:smtp.tiscali.de

Whenever a mail goes out to one of these domains, it is relayed via my ISP (smtp.tiscali.de); all other mail is sent directly from my server.

After editing /etc/postfix/transport, you have to convert it into the internal table format by running
	postmap /etc/postfix/transport

Then tell postfix about this table by adding
	transport_maps = hash:/etc/postfix/transport
to /etc/postfix/main.cf, reload the config (or restart postfix), and you should be all set.

Hope that helped. Best regards,

Andreas

Attachment: pgpduHE1iykqi.pgp
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]