mega schrieb:
> Pete wrote:
> > Hi all,
> >
> > we're using Version 8.11.6p2 on AIX 5.3.
> >
> > The subject says what's the problem: When I send an e-mail via
> > /usr/bin/mail from an AIX-Partition to our internal mail relay, this
> > mail arrives with a sender address user@host.mydomain.de. We would like
> > to have user@mydomain.de, i.e. the hostname should not appear in the
> > sender address.
> >
> > I'v tried compiling different settings in
> > /usr/samples/tcpip/sendmail/cf/aixsample.cf (MASQUERADE_AS, etc....)
> > with no success. Sendmail seems to be tooo complicated for me :-(
>
> :-(
>
> OK try
>
> http://www.sendmail.org/m4/masquerading_relaying.html
>
> As you don't show us the relevant .mc file that is all we can do for now.
>
Hi Erich,
thanks, I was already poking around in the sendmail manuals.
IBM ships the file /usr/samples/tcpip/sendmail/cf/aixsample.mc with
AIX:
.....
# Sample AIX file
divert(0)dnl
OSTYPE(aixsample)dnl
FEATURE(genericstable)dnl
FEATURE(mailertable)dnl
FEATURE(virtusertable)dnl
FEATURE(domaintable)dnl
FEATURE(allmasquerade)dnl
FEATURE(promiscuous_relay)dnl
FEATURE(accept_unresolvable_domains)dnl
FEATURE(accept_unqualified_senders)dnl
FEATURE(no_default_msa)
DOMAIN(generic)dnl
define(`confSMTP_LOGIN_MSG', `$j Sendmail $b')
MAILER(local)dnl
MAILER(smtp)dnl
MAILER(uucp)
In the README they specify an exact order how to put things together
but MASQUERADE_AS or the other decalarations are not mentioned.
Which declaration(s) do I have to add and where?
Thanks
Pete