• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 5102
  • Last Modified:

SYSERR(root): savemail: cannot save rejected email anywhere

Fresh install of CentOS 4 sendmail 8.13 ( I believe)  Sendmail process is running.  Sendmail is ONLY handling mail on this box.  NO RELAYS nor outside connections.  Only want sendmail running to receive log files etc.

Problem is this....not receiving any mail, when I try to send and email via command line the following are propogated in the /var/log/maillog.
----------------------------------------------
May 10 14:45:59 collie sendmail[32184]: k4AIjxua032184: from=root, size=42, class=0, nrcpts=1, msgid=<200605101845.k4AIjxua032184@collie.bitbybittech.local>, relay=root@localhost
May 10 14:45:59 collie sendmail[32185]: k4AIjxnv032185: tcpwrappers (localhost, 127.0.0.1) rejection
May 10 14:45:59 collie sendmail[32184]: k4AIjxua032184: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30042, relay=[127.0.0.1] [127.0.0.1], dsn=5.0.0, stat=Service unavailable
May 10 14:45:59 collie sendmail[32184]: k4AIjxua032184: k4AIjxub032184: DSN: Service unavailable
May 10 14:45:59 collie sendmail[32184]: k4AIjxub032184: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31066, relay=[127.0.0.1], dsn=5.0.0, stat=Service unavailable
May 10 14:45:59 collie sendmail[32184]: k4AIjxub032184: k4AIjxuc032184: return to sender: Service unavailable
May 10 14:45:59 collie sendmail[32184]: k4AIjxuc032184: to=postmaster, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=32090, relay=[127.0.0.1], dsn=5.0.0, stat=Service unavailable
May 10 14:45:59 collie sendmail[32184]: k4AIjxub032184: Losing ./qfk4AIjxub032184: savemail panic
May 10 14:45:59 collie sendmail[32184]: k4AIjxub032184: SYSERR(root): savemail: cannot save rejected email anywhere
--------------------------------------------------
Googling and the like point to a problem with the postmaster alias not being there, it is and I have run newaliases.

Sendmail rookie so any assistance would be appreciated.
0
lourite
Asked:
lourite
  • 2
  • 2
  • 2
1 Solution
 
NopiusCommented:
You should have running sendmail daemon if you wish to use 'sendmail' from command line. It's only a frontend to the daemon.

Don't use sendmail for handling local mail delivery, use mail or mail.local instead.
0
 
louriteAuthor Commented:
Sendmail daemon is running
32242 ?        Ss     0:00 sendmail: accepting connections
32250 ?        Ss     0:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue

And i am using mail to send local emails:
root@collie:~ $ mail root
Subject: test
testing 123
.
Cc:

Is this what you were suggesting.
0
 
PsiCopCommented:
Note that the aliases table is only consulted AFTER sendmail has determined that the E-Mail is to be delivered locally. If sendmail's routing tables (e.g. mailertable, virtusertable) tell it that the E-Mail is to be relayed to another host for final delivery, then the aliases table is NOT consulted.
0
Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

 
louriteAuthor Commented:
Both of those tables are blank.  Could this be the problem?
If so what should these tables contain.
0
 
NopiusCommented:
tcpwrappers (localhost, 127.0.0.1) rejection
That's a problem. Your sendmail is using tcpwrappers, and tcpwrappers are configured incorrectly (to reject smtp from localhost). Check your /etc/hosts.allow and /etc/hosts.deny files, also read the manual:
man hosts.allow
0
 
PsiCopCommented:
Nopius is probably correct, your tcpwrappers configuration ismore likely the culprit. If mailertable and virtusertable are blank, then they're not telling sendmail anything, and so are not the reason why sendmail might think an E-Mail is not headed for a local mailbox.
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now