sendmail & masquerading problem
Hi,
I've got a mail server running sendmail 8. I'd like to masquerade machines behind the mail server, thus e-mail does not appear to be sent from machine.mydomain.com but only from mydomain.com. I've tried the masquerade directive as follows, but it does not work. Any suggestions?
dnl MASQUERADE_AS(`mydomain.com')dnl
dnl FEATURE(masquerade_envelope)dnl
dnl FEATURE(masquerade_entire_domain)dnl
Signature · 2 lines
Luca Ferrari [email protected]
Luca,
I take it you are running your .mc config file though m4 to create a new .cf etc...
How is it showing up as not being masq'ed ?
Have you tried MASQUERADE_DOMAIN against a particular host that is not getting automatically masq'ed ?
Regards
Carl
Quoted 15 lines · you
Hi,
I've got a mail server running sendmail 8. I'd like to masquerade machines behind the mail server, thus e-mail does not appear to be sent from machine.mydomain.com but only from mydomain.com. I've tried the masquerade directive as follows, but it does not work. Any suggestions?dnl MASQUERADE_AS(`mydomain.com')dnl
dnl FEATURE(masquerade_envelope)dnl
dnl FEATURE(masquerade_entire_domain)dnl--
Luca Ferrari
[email protected]
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 8 lines · Luca Ferrari
I've got a mail server running sendmail 8. I'd like to masquerade machines behind the mail server, thus e-mail does not appear to be sent from machine.mydomain.com but only from mydomain.com. I've tried the masquerade directive as follows, but it does not work. Any suggestions?
dnl MASQUERADE_AS(`mydomain.com')dnl
dnl FEATURE(masquerade_envelope)dnl
dnl FEATURE(masquerade_entire_domain)dnl
"dnl" deletes everything up to the end of the line. If you place it at the beginning of a line, the line will be ignored (similar to "commenting out" a line in a shell script by placing a "#" at the start of a line).
Apart from that, you have to tell it which domains to masquerade via MASQUERADE_DOMAIN or MASQUERADE_DOMAIN_FILE. Otherwise it will only masquerade domains in class w (i.e. any aliases for mail server itself).
Signature · 1 line
Glynn Clements <[email protected]>