Re: multiple smtp servers?


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:

Whenever a mail goes out to one of these domains, it is relayed via my ISP (; 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/, reload the config (or restart postfix), and you should be all set.

Hope that helped. Best regards,


Attachment: pgpduHE1iykqi.pgp
Description: PGP signature

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