Hi all, I am trying to set up a set of postfix instances to simulate two SMTP servers talking to each other. I figured a simple approach was to use loopback addresses and local user accounts.
Setup: 1. Master postfix instance following the null-client setup on the website (local system name will be null.baz). 2. Instance postfix-foo on mail.foo.x.y (not the real domain, but it is a fourth-level DNS). 3. Instance postfix-bar on mail.bar.x.y (same 2nd-level TLD). mail.foo.x.y listens on 127.0.0.2, mail.bar.x.y listens on 127.0.0.4, and a DNS server (maradns) sits on 127.0.0.3. Querying MX for foo.x.y or bar.x.y returns the equivalent mail.* for the query, so my DNS setup SHOULD be sound. On the local system, I created two user accounts, jack & jill. User jack is at jack@foo.x.y and jill is at jill@bar.x.y. Now, I su to user jack, and use 'mutt' to compose a message to jill@bar.x.y. User jack's From address is set to jack@foo.x.y in /home/jack/.muttrc. Problem: When I send the message, the null-client instance detects that jack is a local user and thus rewrites the From address to be j...@null.baz. Then it goes and claims that bar.x.y loops back to itself and bounces the message. I've checked the DNS queries using tcpdump, and the correct MX is returned, and I've painstakingly gone through my configs and everything seems to match up. I suspect the problem is the fact that my test users are local accounts, and the null-client instance is trying to rewrite addresses and then forward on, and then it gets confused. Can I work around this or disable rewriting entirely? Do I need to use some fancy aliasing trick, or is there a special way to set the myhostname/mydomain directives in main.cf to stop the looping? I've tried chrooted and non-chrooted instances and still the same problem. telnet to both 127.0.0.2 and 127.0.0.4 report correct instance names, and all three loopback addresses are netmask 255.255.255.255 on their own interface (lo:2 through lo:4). By all accounts this SHOULD work, but it's the null client instance that is getting in the way I think. But I cannot find any other guidance on making it just a dummy instance -- mydomain, myhostname, etc, HAVE to be set in it for any of the instances to come online. Thoughts? -- Joshua Kinard Gentoo/MIPS ku...@gentoo.org 4096R/D25D95E3 2011-03-28 "The past tempts us, the present confuses us, the future frightens us. And our lives slip away, moment by moment, lost in that vast, terrible in-between." --Emperor Turhan, Centauri Republic