sendmail[25143]:SYSERR(root): savemail: cannot save rejected email anywhere

Incorrect entry in sendmail .forward file causes Savemail Panic

Symptoms
 Where syslog.conf contains the lines:

*.err;kern.debug;daemon.notice;mail.crit /var/adm/messages
mail.debug   ifdef(`LOGHOST', /var/log/syslog, @loghost)

 The following messages are appearing /var/adm/messages:

Sep 29 20:48:03 solarishost030 sendmail[25143]: [ID 801593 mail.alert] q8U0ONCL009518: Losing ./qfq8U0ONCL009518: savemail panic
Sep 29 20:48:03 solarishost030 sendmail[25143]: [ID 801593 mail.crit] q8U0ONCL009518: SYSERR(root): savemail: cannot save rejected email anywhere
 Also /var/log/syslog:

Sep 29 20:48:03 solarishost030 sendmail[25143]: [ID 801593 mail.info] q8U0ONCL009518: to=sp.unixadmin.some-ip.com, ctladdr=root (0/0), delay=00:23:40, mailer=local, pri=121866, dsn=5.1.1, stat=User unknown
Sep 29 20:48:03 solarishost030 last message repeated 1 time
Sep 29 20:48:03 solarishost030 sendmail[25143]: [ID 801593 mail.info] q8U0ONCL009518: q8U0SmP6025143: return to sender: User unknown
Sep 29 20:48:03 solarishost030 sendmail[25143]: [ID 801593 mail.info] q8U0SmP6025143: to=sp.unixadmin.some-ip.com, ctladdr=root (0/0), delay=00:00:00, mailer=local, pri=3536, dsn=5.1.1, stat=User unknown
Sep 29 20:48:03 solarishost030 sendmail[25143]: [ID 801593 mail.alert] q8U0ONCL009518: Losing ./qfq8U0ONCL009518: savemail panic
Sep 29 20:48:03 solarishost030 sendmail[25143]: [ID 801593 mail.crit] q8U0ONCL009518: SYSERR(root): savemail: cannot save rejected email anywhere

Changes
 A .forward file was created for the root user.

Cause
There was a typo in the .forward file for the root user.

Solution
1. Correct the entry in the file:

% cat /.forward
# sp.unixadmin.some-ip.com  #<== incorrect entry

sp.unixadmin@some-ip.com #<== entry had a "dot" and needed a "@" to create the proper "user@domain" entry sendmail requires
2. Check that the entry resolves using sendmail:

% /usr/lib/sendmail -bv root
sp.unixadmin@some-ip.com... deliverable: mailer relay, host smtp.global.some-ip.com, user sp.unixadmin@some-ip.com
3. Run the "newaliases" command to update the alias.db:

% newaliases

/etc/mail/aliases: 15 aliases, longest 53 bytes, 264 bytes total

Comments

Popular posts from this blog

Understanding How ZFS Calculates Used Space

Restart autosys agent

How To Verify Remote System Controller (RSC) is Configured and Current on Sun Fire[TM] 280R/V480/V490/V880/V890 servers