Cannot send to local accounts
am 03.10.2007 22:54:22 von john.jctHello,
I am having an issue on RedHat ES4 where I have the sendmail 8.13.1
daemon stopped, as I only intend on sending mail from this computer
and never receiving any. I have changed the submit.cf MTAHost line to
reflect the appropriate external mail server.
All mail bound for an external mail account sends fine. The problem
occurs when I try to send mail internally. Say for example I use the
following command:
[root@host] echo hello | mail john
When I execute this command, the mail does not send to the john
account, and ./clientmqueue shows the mail message in the queue. Now
the interesting part is that: mailq -Ac results in
/var/spool/clientmqueue is empty
Total requests: 0
Here is the maillog entry for when I try to send a message to a local
account:
Oct 3 15:24:22
size=18, class=0, nrcpts=1,
msgid=<200710032024.l93KOMuZ013716@server.domain.com>,
relay=root@localhost
Oct 3 15:24:22
ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay,
pri=30018, relay=[IP.ADDRESS] [IP.ADDRESS], dsn=5.7.1, stat=User
unknown
Oct 3 15:24:22
l93KOMua013716: DSN: User unknown
Oct 3 15:24:23
delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=31042,
relay=[IP.ADDRESS] [IP.ADDRESS], dsn=5.7.1, stat=User unknown
Oct 3 15:24:23
l93KOMub013716: return to sender: User unknown
Oct 3 15:24:23
to=postmaster, delay=00:00:00, xdelay=00:00:00, mailer=relay,
pri=32066, relay=[IP.ADDRESS] [IP.ADDRESS], dsn=5.7.1, stat=User
unknown
Oct 3 15:24:23
qfl93KOMua013716: savemail panic
Oct 3 15:24:23
SYSERR(root): savemail: cannot save rejected email anywhere
For the sake of privacy I replaced all sensitive data in the log with
the general term.
>From the log, it looks like sendmail is trying to resolve
john@server.domain.com from the MTAHost instead of resolving that name
locally first. Of course john@server.domain.com is not going to
resolve anywhere except locally on this server, because john is a
local account of this server. Is there a way to get it to try to
resolve locally before it forwards it to IP.ADDRESS?
What I ultimately want to do is to route all local root mail messages
to an external email address, but because mail that is sent to a local
account stays in ./clientmqueue, sendmail will never read the alias to
send it to the external address.
Does anyone know a way to leave the deamon disabled, but allow sending
of email to both local and external addresses? Is this even possible?
Thank you for your help.
--John