1 |
On Saturday 16 October 2004 18:00, James Hiscock wrote: |
2 |
> > I could maybe achieve this using iptables on backupMX that |
3 |
> > detects tcp:backupMX:25 to connect to tcp:mainMX:25 and redirects this |
4 |
> > traffic to tcp:mainMX:1234. |
5 |
> |
6 |
> Using IPTables would probably be overkill -- especially since postfix |
7 |
> handles this quite nicely. Take at a look at /etc/postfix/transport -- |
8 |
> it should help (or 'man transport')... |
9 |
> |
10 |
> Basically, what you'd want to do is have an entry in backupMX's |
11 |
> /etc/postfix/transport that would say something like: |
12 |
> |
13 |
> * smtp:[mainMX]:1234 |
14 |
> |
15 |
> ...which would forward all mail coming into backupMX on port 25 to |
16 |
> mainMX on port 1234, using SMTP. The [] around mainMX suppresses MX |
17 |
> lookups, so you won't get stuck in a mail loop. |
18 |
|
19 |
Yeah, that's exactly what I was looking for, thx alot :D |
20 |
|
21 |
> You'd also need to setup mainMX to listen on port 1234. To do so, edit |
22 |
> /etc/postfix/master.cf, and duplicate the "smtp" line, like so: |
23 |
[snip] |
24 |
> ========================================================================== |
25 |
> smtp inet n - n - - smtpd |
26 |
> 1234 inet n - n - - smtpd |
27 |
|
28 |
mainMX is already configured to listen on port 1234 using iptables; well, I |
29 |
guess your way is a bit nicer, thanks. |
30 |
|
31 |
Regards, |
32 |
Christian Parpart. |
33 |
|
34 |
-- |
35 |
08:02:19 up 53 days, 19:41, 0 users, load average: 0.12, 0.18, 0.17 |