[clug] DNS + CNAMES + sendmail...
Andrew Janke
a.janke at gmail.com
Wed Aug 5 07:13:47 MDT 2009
Hi all,
For reasons that are somewhat long I have inherited a situation like this...
bob.blix.com.au is a CNAME pointing to mary.blix.com.au
the MX record for bob.blix.com.au is mary.blix.com.au
mary.blix.com.au is a real machine with a real (outward facing and
resolvable) IP
bob.blix.com.au resolves and works fine as a web server.
Then comes my favourite friend sendmail...
I can use MASQUERADE_DOMAIN to make outgoing mail (From
user at mary.blix.com.au) appear to come from user at bob.blix.com.au but
incoming mail is somewhat more difficult as I think sendmail is
resolving bob.blix.com.au to mary.blix.com.au meaning the To: field
contains user at mary.blix.com.au which is the "wrong thing" [1].
So first question:
1. Should I just give up, dump the CNAME and change mary.blix.com.au
to bob.blix.com.au and go through a (sizeable) amount of pain making
everything work..
If no.
2. How can I make sendmail rewrite the To: field to what I want?
(username at bob.blix.com.au)
Thanks
--
Andrew Janke
(a.janke at gmail.com || http://a.janke.googlepages.com/)
Canberra->Australia +61 (402) 700 883
[1] Where of course wrong thing is defined as not what I want
More information about the linux
mailing list