Sendmail - Solaris 10 - Masquerade

Hi folks,

We moved 2 webservers from Linux to Solaris 10 2 weeks ago and we have a
little problem with sendmail. We try to put DM and CM into sendmail.cf
so the server itself sends email using the internet domains instead of
the machine itself.

I mean server1.domain.com send email outside using [at] domain.com instead
of [at] server1.domain.com! We do this with no problem under Linux but for
unknown reason, I can't do that under Solaris 10!

Anyone can help us resolving this issue!?

Thanks


--
Sébastien Roy
Administrateur de Systèmes Senior / Senior System Administrator
PointPub Media Communications Inc. - St-Eustache, Canada
Sebastien Roy [ Do, 13 September 2007 15:10 ] [ ID #1819904 ]

Re: Sendmail - Solaris 10 - Masquerade

On Sep 13, 6:10 am, Sebastien Roy <Sebastien.... [at] pMedia.CA> wrote:
> Hi folks,
> We moved 2 webservers from Linux to Solaris 10 2 weeks ago and we have a
> little problem with sendmail. We try to put DM and CM into sendmail.cf
> so the server itself sends email using the internet domains instead of
> the machine itself.

Just dont do that. Add the features in the m4 file then run make.
What I mean is you should not hand edit .cf files.

> I mean server1.domain.com send email outside using [at] domain.com instead
> of [at] server1.domain.com! We do this with no problem under Linux but for
> unknown reason, I can't do that under Solaris 10!
> Anyone can help us resolving this issue!?

Post your .mc file w/o comments.
I mean after reading up on MASQUERADING in
/etc/mail/cf/README and trying a few things
(should it turn out things dont do what you want..)

I use
MASQUERADE_AS
FEATURE(`always_add_domain')dnl
FEATURE(`masquerade_entire_domain')dnl
FEATURE(`masquerade_envelope')dnl

amongst others due to my particular setup

cd /etc/mail/cf/cf
Copy sendmail.mc to some applicable name other than 'local.mc'
e.g.: test.mc, edit, and then "make test.cf"
You'll need /usr/ccs/bin in your PATH

You can use -C with sendmail to test
Read the man page on sendmail

All this has been beaten to death in the past - you might try
searching the archives for more hints
gerryt [ Do, 13 September 2007 17:28 ] [ ID #1819907 ]

Re: Sendmail - Solaris 10 - Masquerade

My MC file is like this:


divert(0)dnl
VERSIONID(` [at] (#)sendmail.mc 1.11 (Sun) 06/21/04')
OSTYPE(`solaris8')dnl
DOMAIN(`solaris-generic')dnl
define(`confFALLBACK_SMARTHOST', `mailhost$?m.$m$.')dnl
MASQUERADE_AS
FEATURE(`always_add_domain')dnl
FEATURE(`masquerade_entire_domain')dnl
FEATURE(`masquerade_envelope')dnl
MAILER(`local')dnl
MAILER(`smtp')dnl

LOCAL_NET_CONFIG
R$* < [at] $* .$m. > $* $#esmtp $ [at] $2.$m $: $1 < [at] $2.$m. > $3


Thanks!


gerryt wrote:
> On Sep 13, 6:10 am, Sebastien Roy <Sebastien.... [at] pMedia.CA> wrote:
>> Hi folks,
>> We moved 2 webservers from Linux to Solaris 10 2 weeks ago and we have a
>> little problem with sendmail. We try to put DM and CM into sendmail.cf
>> so the server itself sends email using the internet domains instead of
>> the machine itself.
>
> Just dont do that. Add the features in the m4 file then run make.
> What I mean is you should not hand edit .cf files.
>
>> I mean server1.domain.com send email outside using [at] domain.com instead
>> of [at] server1.domain.com! We do this with no problem under Linux but for
>> unknown reason, I can't do that under Solaris 10!
>> Anyone can help us resolving this issue!?
>
> Post your .mc file w/o comments.
> I mean after reading up on MASQUERADING in
> /etc/mail/cf/README and trying a few things
> (should it turn out things dont do what you want..)
>
> I use
> MASQUERADE_AS
> FEATURE(`always_add_domain')dnl
> FEATURE(`masquerade_entire_domain')dnl
> FEATURE(`masquerade_envelope')dnl
>
> amongst others due to my particular setup
>
> cd /etc/mail/cf/cf
> Copy sendmail.mc to some applicable name other than 'local.mc'
> e.g.: test.mc, edit, and then "make test.cf"
> You'll need /usr/ccs/bin in your PATH
>
> You can use -C with sendmail to test
> Read the man page on sendmail
>
> All this has been beaten to death in the past - you might try
> searching the archives for more hints
>
Sebastien Roy [ Do, 13 September 2007 17:58 ] [ ID #1819908 ]

Re: Sendmail - Solaris 10 - Masquerade

On Sep 13, 8:58 am, Sebastien Roy <Sebastien.... [at] pMedia.CA> top posts:
> My MC file is like this:
>
> divert(0)dnl
> VERSIONID(` [at] (#)sendmail.mc 1.11 (Sun) 06/21/04')
> OSTYPE(`solaris8')dnl
> DOMAIN(`solaris-generic')dnl
> define(`confFALLBACK_SMARTHOST', `mailhost$?m.$m$.')dnl
> MASQUERADE_AS
> FEATURE(`always_add_domain')dnl
> FEATURE(`masquerade_entire_domain')dnl
> FEATURE(`masquerade_envelope')dnl
> MAILER(`local')dnl
> MAILER(`smtp')dnl
>
> LOCAL_NET_CONFIG
> R$* < [at] $* .$m. > $* $#esmtp $ [at] $2.$m $: $1 < [at] $2.$m. > $3
>
> Thanks!

Please do not top post -
The above is incomplete like my example - you have to masquerade as
something..
Again the documentation in the README file is enough to go on I think:
you should have something like:
MASQUERADE_AS(`example.net')dnl
As I said earlier you may need to add more still.
So I guess the question is:
Are things working like you want??

> gerryt wrote:
> > On Sep 13, 6:10 am, Sebastien Roy <Sebastien.... [at] pMedia.CA> wrote:
> >> Hi folks,
> >> We moved 2 webservers from Linux to Solaris 10 2 weeks ago and we have a
> >> little problem with sendmail. We try to put DM and CM into sendmail.cf
> >> so the server itself sends email using the internet domains instead of
> >> the machine itself.
>
> > Just dont do that. Add the features in the m4 file then run make.
> > What I mean is you should not hand edit .cf files.
>
> >> I mean server1.domain.com send email outside using [at] domain.com instead
> >> of [at] server1.domain.com! We do this with no problem under Linux but for
> >> unknown reason, I can't do that under Solaris 10!
> >> Anyone can help us resolving this issue!?
>
> > Post your .mc file w/o comments.
> > I mean after reading up on MASQUERADING in
> > /etc/mail/cf/README and trying a few things
> > (should it turn out things dont do what you want..)
>
> > I use
> > MASQUERADE_AS
> > FEATURE(`always_add_domain')dnl
> > FEATURE(`masquerade_entire_domain')dnl
> > FEATURE(`masquerade_envelope')dnl
>
> > amongst others due to my particular setup
>
> > cd /etc/mail/cf/cf
> > Copy sendmail.mc to some applicable name other than 'local.mc'
> > e.g.: test.mc, edit, and then "make test.cf"
> > You'll need /usr/ccs/bin in your PATH
>
> > You can use -C with sendmail to test
> > Read the man page on sendmail
>
> > All this has been beaten to death in the past - you might try
> > searching the archives for more hints
gerryt [ Do, 13 September 2007 23:36 ] [ ID #1819923 ]
Miscellaneous » comp.mail.sendmail » Sendmail - Solaris 10 - Masquerade

Vorheriges Thema: sendmail in Solaris 10
Nächstes Thema: redirect based on sender address?