sendmail & masquerading problem
am 25.10.2005 15:52:11 von Luca Ferrari
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
fluca1978@infinito.it
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: sendmail & masquerading problem
am 25.10.2005 16:25:34 von Carl Lawton
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
At 14:52 25/10/2005, you wrote:
>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
>fluca1978@infinito.it
>-
>To unsubscribe from this list: send the line "unsubscribe linux-admin" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: sendmail & masquerading problem
am 25.10.2005 19:34:31 von Glynn Clements
Luca Ferrari wrote:
> 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).
--
Glynn Clements
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html