Not a very generic solution, but will work for you specifc case. Add something like this in sendmail.mc:
MASQUERADE_DOMAIN(`bar.snafu.com')dnl
EXPOSED_USER(`foo')dnl

I remember that I saw something that can do what you've asked for (masqurading specific addresses under specific hostnames.) maybe it can be achived using a script. Can't remember.

Noam


Oleg Goldshmidt wrote:
Folks,

I have a server running sendmail and a few mailman mailing lists. The
server, originally named foo, now has a DNS alias bar, i.e. it answers
to both

foo.snafu.com

and

bar.snafu.com

I want the server to masquerade the mailing lists as either coming
from foo.snafu.com or bar.snafu.com, so that postings to mailing list
foo appear as

[EMAIL PROTECTED]

while postings to bar appear as

[EMAIL PROTECTED]

(and similarly for -bounce, -request, -owner, etc, of course). I am
tinkering with sendmail.mc and genericstable etc, but I still get
[EMAIL PROTECTED]. I disabled masquerading, to no avail...

local-host-names etc look OK to me, i.e. both foo and bar and the FQDN
are in local-host-names...

I am very familiar with the normal sources of information, such as
sendmail-doc and FAQ etc. I find the masquerading section less than
useful.

Has anyone here done this before? Can you post the relevant pieces of
sendmail.mc/genericstable/whatever?

I have not asked on sendmail mailing lists yet, I admit.

Please don't suggest switching to another MTA...

Thanks,

  

Reply via email to