|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: Choice of SMTP relays
From: Adrian von Bidder (avbidder
fortytwo.ch)
Date: Tue Jun 14 2005 - 03:31:52 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tuesday 14 June 2005 10.11, Frédéric Massot wrote:
> I seek a transport table which could resemble :
>
> eth1 smtp:smtp.wanadoo.fr
> eth2 smtp:smtp.free.fr
Not beautiful, but you could do
iptables -t nat -A OUTPUT -p tcp --dport smtp -o eth1 \
-j DNAT --to-destination smtp.wanadoo.fr
iptables -t nat -A OUTPUT -p tcp --dport smtp -o eth2 \
-j DNAT --to-destination smtp.free.fr
With all the fancy routing and netfilter features of the recent 2.6 kernels
(OWNER match etc.) you could probably narrow down the rules to only affect
postfix' connections.
I doubt there is a postfix-internal solution for this problem.
cheers
-- vbi
--
"Why can't we ever attempt to solve a problem in this country without having
a 'War' on it?" -- Rich Thomson, talk.politics.misc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: get my key from http://fortytwo.ch/gpg/92082481
iKcEABECAGcFAkKulfhgGmh0dHA6Ly9mb3J0eXR3by5jaC9sZWdhbC9ncGcvZW1h
aWwuMjAwMjA4MjI/dmVyc2lvbj0xLjUmbWQ1c3VtPTVkZmY4NjhkMTE4NDMyNzYw
NzFiMjVlYjcwMDZkYTNlAAoJECqqZti935l6wfsAn1Qf/DBRGme7hp0frywAnBo7
oqG4AJwJGdLJ+/ZIGRTFO5ZWZogEvEPbGA==
=ujtF
-----END PGP SIGNATURE-----
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]