This is a discussion on Re: How to redirect outgoing mail from server1 to server2 within the mailing.postfix.users forums, part of the Mail Servers and Related category; On Thursday, May 27, 2004 at 20:09 CEST, didier <didier@rsvs.ulaval.ca> wrote: > > No, ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On Thursday, May 27, 2004 at 20:09 CEST,
didier <didier@rsvs.ulaval.ca> wrote: > > No, you add *both* lines. The whole point is to give Postfix two > > alternative hosts for the outbound mail. I now noticed that your > > requirement is to connect to port 26 on server2 OR port 25 on assp, > > but that cannot be done. >=20 > And do I do with my > IN MX 10 server2 DNS line (I let it here)? Yes. It it unrelated. > > Given the schematics you gave earlier, that does not make sense to me= .. > > Why? If I want that incoming mail that is not for server2 but for > server1 pass throught server2 to go to server1 I must say to server2 > that it relay these mails -> in server2 main.cf relayhost =3D server1. > No? relayhost is the host to which to relay ALL non-local mail. For incoming mail, you probably only want to pass your own domains to your internal server (server1). Use transport_maps for that. Consider the mail loop you get if you have relayhost =3D server1 on server2, and relayhost =3D server2 on server1. Using transport_maps to selectively relay mail from server2 to server1 solves this. --=20 Magnus B=E4ck magnus@dsek.lth.se |