sendmail aliases not worked as expected
mgmcomm at hotmail.com
mgmcomm at hotmail.com
Sun Jan 11 21:42:03 PST 2004
>From: "Micheal Patterson" <micheal at tsgincorporated.com>
>To: "mgmcomm @hotmail.com" <mgmcomm at hotmail.com>,<questions at freebsd.org>
>Subject: Re: sendmail aliases not worked as expected
>Date: Sun, 11 Jan 2004 12:06:48 -0600
>----- Original Message -----
>From: "mgmcomm @hotmail.com" <mgmcomm at hotmail.com>
>To: <questions at freebsd.org>
>Sent: Sunday, January 11, 2004 9:50 AM
>Subject: sendmail aliases not worked as expected
> > I am having trouble getting /etc/mail/aliases to properly forward system
> > messages such as cron or periodic events. Actually this problem affects
> > even mail input using the mail command or any other method. Although
> > cron/periodic is what I require the most.
> > When a cron or periodic task creates an email to say root...it gets
> > to root at host.domain.com instead of root at domain.com. Which results in an
> > error message
> > Jan 7 03:03:01 butters sm-mta: i07331me001498: SYSERR(root):
> > butters.kibserv.org. config error: mail loops back to me (MX problem?)
> > A bounce message is generated and sends cleanly to
>postmaster at kibserv.org.
> > The original message is removed from the queue...apparently this error
> > fatal to the original message.
> > my alias file contains the following
> > root: root at kibserv.org
> > seti: root at kibserv.org
> > kib: mgmcomm at hotmail.com
> > virtualuser: mgmcomm at hotmail.com
> > and many other entries...most are the defaults in the original file
> > and almost all eventually point to root anyhow. And yes I have run
> > newaliases and received successful and positive response.
> > 10:17am butters:/etc/mail # newaliases
> > /etc/mail/aliases: 38 aliases, longest 22 bytes, 504 bytes total
> > This problem seemed to start about the time I upgrades from 4.7 to 5.2.
> > Presently I am loosely tracking current...usually up to a month behind
> > a 1 week run on a test box. I plan to track 5-stable as soon as I see
> > since I am too deep into 5.x features to go back to 4.x now. Current is
> > really all I bargained for :)
> > 10:25am butters:/etc/mail # uname -a
> > FreeBSD butters 5.2-CURRENT FreeBSD 5.2-CURRENT #3: Tue Dec 16 19:32:35
> > 2003 root at butters:/usr/obj/usr/src/sys/CUSTOM i386
> > in my rc.conf file I thought maybe my sendmail options were wrong.
> > historically I have used:
> > sendmail_enable="YES"
> > but after reading the defaults and the rc.sendmail file I find that this
> > option is exclusive of two other sendmail options
> > sendmail_submit_enable and sendmail_outbound_enable
> > So I tried each in turn with no change in result. But since I can't
> > much documentation on these other than what I can make from the
> > I might still just be using the wrong rc.conf the wrong way.
> > It seems to me that sendmail is completely ignoring the
> > file
> > Even when I try to send mail to kib (a real user) or the virtualuser the
> > mail always tries to go to user at host.domain.com...which eventually
> > and gets attached to a message to the postmaster. I suppose the aliases
> > not completely ignored because no mail ever gets to the local user mail
> > accounts.
> > Also note that the kibserv.org is an old domain no longer
> > we still use it for testing purposes. To prove this is not a dns
> > issue here is a few digs. Our local dns server has all the correct
> > 10:29am butters:/etc/mail # dig kibserv.org mx
>If the system is sending mail to itself for processing, as most mx's do,
>need to have the full host name in the local-host-names file. Otherwise, it
>doesn't know it's the controlling mx and will reject the mail.
Actually the only one doing the job properly is the mail host itself which
is using qmail/vpopmail. All local root messages get translated
properly...sent to local ip address as per the mx record and then available
for picking up via pop3/webmail.
I am half tempted to drop sendmail on all hosts and see if qmail will
forward to the mail host properly. From what I can tell no mail for root or
any other local user ever leave that localhost....but the bounce mesages to
the postmaster seem to work just fine.
Only the mail host shoud accept incoming mail. mail on each individual host
is not checked and needs to all go to one pop3 account on the mail host.
The new MSN 8: advanced junk mail protection and 2 months FREE*
More information about the freebsd-questions