Peter Macko a écrit : > I have two mailservers behind a firewall and they are on the same subnet > e.g. > A: @test.sk 192.168.1.5 > B: @test.eu 192.168.1.6 > > MX records in DNS on internet are e.g. > A: @test.sk 194.1.1.5 > B: @test.eu 194.1.1.6 > > On the A server I have setup aliases file to forward mails to server B, > but it is not working. I guess, that when server A forwards mails to > server B, it reads MX record for server B from DNS and sees its internet > address 194.1.1.6. But they are behind the firewall, and they have local > addresses 192.168.1.x. > > How can I tell the server A not to use MX record from DNS when > forwarding emails to server B (@test.eu) and instead to use its local IP > address for the B server? > > I cannot just relay emails from the server A to B, becouse I have to > rewrite the users part of email address. > > As well, I tried to modify email address in aliases file to format: > u...@192.168.1.6 <mailto:u...@192.168.1.6> instead of u...@test.eu > <mailto:u...@test.eu>, but I have received error "bad recipient address > syntax". >
use a domain of your imagination: joe: u...@b.test.eu then either add an A record for test.eu to point to 192.1.1.6, or use transport_maps: test.eu relay:[192.1.1.6]