Quoting Charles Cazabon <qmail@xxxxxxxxxxxxxxxxxxxx>:
Ron Gage <ron@xxxxxxxxxxx> wrote:Quoting Charles Cazabon <qmail@xxxxxxxxxxxxxxxxxxxx>:
>>Any mail sent to ron@xxxxxxxxxxx gets delivered to ron@xxxxxxxxxxxx >> >>What am I doing wrong? >[...] >>locals: >>Messages for host-l1.mi-connect.com are delivered locally. >[...] >>virtualdomains: >>Virtual domain: test1.local:test1.local >>Virtual domain: test2.local:test2.local > >Nothing looks wrong here. There's a few possibilities, though. Send a >message to the test2.local domain and show us the complete qmail-send >logs for >that message (everything from the "new msg" line, the deliveries, etc, to >the >"end msg" line for that message).
Here is the log snippet..
Okay.
Sep 8 13:26:49 host-l1 qmail: 1126200409.504913 starting delivery 4: msg 65598 to local test1.local-ron@xxxxxxxxxxx
There's the problem. The envelope recipient address is being rewritten. I'm
betting it's a DNS problem on your end, and that "test2.local" is a CNAME for
test1.local. If that's the case, this domain-rewriting behaviour is
/required/. You cannot therefore use CNAMEs in mail envelope addresses this
way.
That was in essence the correct answer. Having the hosts defined on the same
line in /etc/hosts essentially makes the second host appear as a CNAME entry -
thus, the rewriting rules kicked in.
Splitting the host entries onto seperate lines made the domain delivery work correctly.
Your guidance is most appreciated! Thank you!
ok now I'm confused: qmail doesn't use /etc/hosts what's going on here?
brian -- Never be afraid to tell the world who you are. -- Anonymous 16:05:01 up 18 days, 8:44, 3 users, load average: 2.60, 2.01, 1.91