sendmail configuration
Kirk R. Wythers
kwythers at umn.edu
Tue Aug 5 13:34:36 PDT 2003
On Tue, 2003-08-05 at 20:14, Chuck Swiger wrote:
> Hi, Kirk--
>
> Kirk R. Wythers wrote:
> [ ... ]
> > 1. cp freebsd.mc neighborsunited.net.mc
> > 2. emacs neighborsunited.net.mc and added the lines:
> >
> > MASQUERADE_AS(`neighborsunited.net')dnl
> > FEATURE(masquerade_envelope)dnl
> > above the lines:
> > MAILER(local)
> > MAILER(smtp)
> > 3. make
> > 4. make install-cf CF=neighborsunited.net
> > 5. make restart
> >
> > what am I messing up here?
>
> Try using the following as your neighborsunited.net.mc file:
>
> VERSIONID(`$FreeBSD: testing $')
> OSTYPE(freebsd4)
> DOMAIN(generic)
>
> FEATURE(access_db, `hash -o -T<TMPF> /etc/mail/access')
> FEATURE(blacklist_recipients)
> FEATURE(local_lmtp)
> FEATURE(mailertable, `hash -o /etc/mail/mailertable')
> FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
> FEATURE(masquerade_envelope)dnl
> MASQUERADE_AS(`neighborsunited.net')dnl
>
> define(`confBIND_OPTS', `WorkAroundBrokenAAAA')
> define(`confNO_RCPT_ACTION', `add-to-undisclosed')
> define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
> MAILER(local)
> MAILER(smtp)
>
> ...and retry creating the .cf file by:
>
> make install-cf SENDMAIL_MC=neighborsunitied.net.mc
>
> ...and see whether that does any better.
I replaced neighborsunited.net.mc with what you suggested (I left the
reference to freebsd4, even though I'm running 5) but the ech command
gives the same result:
root at lorax:177 echo "3,0 postmaster at lorax.forestry.umn.edu" | sendmail
-bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> canonify input: postmaster @ lorax . forestry . umn . edu
Canonify2 input: postmaster < @ lorax . forestry . umn . edu >
Canonify2 returns: postmaster < @ x74-47 . forestry . umn . edu .
>
canonify returns: postmaster < @ x74-47 . forestry . umn . edu .
>
parse input: postmaster < @ x74-47 . forestry . umn . edu .
>
Parse0 input: postmaster < @ x74-47 . forestry . umn . edu .
>
Parse0 returns: postmaster < @ x74-47 . forestry . umn . edu .
>
ParseLocal input: postmaster < @ x74-47 . forestry . umn . edu .
>
ParseLocal returns: postmaster < @ x74-47 . forestry . umn . edu .
>
Parse1 input: postmaster < @ x74-47 . forestry . umn . edu .
>
Parse1 returns: $# local $: postmaster
parse returns: $# local $: postmaster
sendmail appears to still be sending to x74-47.forestry.umn.edu
--
Kirk R. Wythers Department of Forest Resources
Tel: 612.625.2261 University of Minnesota
Fax: 612.625.521 1530 Cleveland Ave. N
Email: kwythers at umn.edu Saint Paul, MN 55108 USA
More information about the freebsd-questions
mailing list