linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sendmail & masquerading problem
@ 2005-10-25 13:52 Luca Ferrari
  2005-10-25 14:25 ` Carl
  2005-10-25 17:34 ` Glynn Clements
  0 siblings, 2 replies; 3+ messages in thread
From: Luca Ferrari @ 2005-10-25 13:52 UTC (permalink / raw)
  To: linux-admin

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: sendmail & masquerading problem
  2005-10-25 13:52 sendmail & masquerading problem Luca Ferrari
@ 2005-10-25 14:25 ` Carl
  2005-10-25 17:34 ` Glynn Clements
  1 sibling, 0 replies; 3+ messages in thread
From: Carl @ 2005-10-25 14:25 UTC (permalink / raw)
  To: Luca Ferrari, linux-admin

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
>



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: sendmail & masquerading problem
  2005-10-25 13:52 sendmail & masquerading problem Luca Ferrari
  2005-10-25 14:25 ` Carl
@ 2005-10-25 17:34 ` Glynn Clements
  1 sibling, 0 replies; 3+ messages in thread
From: Glynn Clements @ 2005-10-25 17:34 UTC (permalink / raw)
  To: Luca Ferrari; +Cc: linux-admin


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 <glynn@gclements.plus.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-10-25 17:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-25 13:52 sendmail & masquerading problem Luca Ferrari
2005-10-25 14:25 ` Carl
2005-10-25 17:34 ` Glynn Clements

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).