Can't send mail.
"sendmail -v" reports:
Deferred: 451 4.3.0 Temporary system failure. Please try again later
date | sendmail -v $USER root... Connecting to [127.0.0.1] via relay... 220 wolvix.wolvix.org ESMTP Sendmail 8.13.8/8.13.8; Fri, 21 Dec 2007 14:17:34 -0500 >>> EHLO wolvix.wolvix.org 250-wolvix.wolvix.org Hello localhost [127.0.0.1], pleased to meet you 250 ENHANCEDSTATUSCODES >>> MAIL From:<root@wolvix.wolvix.org> 451 4.3.0 Temporary system failure. Please try again later. root... Deferred: 451 4.3.0 Temporary system failure. Please try again later. Closing connection to [127.0.0.1] >>> QUIT 221 2.0.0 wolvix.wolvix.org closing connection
Example 1. In /var/log/maillog
Dec 21 09:59:10 wolvix sm-mta[10303]: error: safesasl(/etc/sasl2/Sendmail.conf) failed: World writable directory Dec 21 09:59:10 wolvix sm-mta[10304]: starting daemon (8.13.8): SMTP+queueing@00:25:00 Dec 21 09:59:10 wolvix sm-msp-queue[10307]: starting daemon (8.13.8): queueing@00:25:00 Dec 21 10:03:28 wolvix sendmail[10330]: lBLF3S7q010330: from=root, size=29, class=0, nrcpts=1, msgid=<200712211503.lBLF3S7q010330@wolvix.wolvix.org>, relay=root@localhost Dec 21 10:03:28 wolvix sm-mta[10331]: lBLF3SJ0010331: SYSERR(root): hash map "access": unsafe map file /etc/mail/access.db: World writable directory Dec 21 10:03:28 wolvix sm-mta[10331]: ruleset=check_relay, arg1=localhost, arg2=127.0.0.1, relay=localhost [127.0.0.1], reject=451 4.3.0 Temporary system failure. Please try again later.
-rw-r----- 1 root root 12288 2006-02-01 15:11 /etc/mail/access.db drwxr-xr-x 2 root root 41 2007-12-19 10:58 /etc/mail/ drwxrwxrwx 97 root root 4096 2007-12-21 14:16 /etc/
Ok, so the "Temporary system failure" is due to "World writable directory". But /etc/mail/ is not world writable?!
The /etc/ is. Fix it and try again:
chmod 755 /etc/
$ date | sendmail -v $USER root... Connecting to [127.0.0.1] via relay... 220 wolvix.wolvix.org ESMTP Sendmail 8.13.8/8.13.8; Fri, 21 Dec 2007 14:27:12 -0500 >>> EHLO wolvix.wolvix.org 250-wolvix.wolvix.org Hello localhost [127.0.0.1], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-8BITMIME 250-SIZE 250-DSN 250-ETRN 250-AUTH DIGEST-MD5 CRAM-MD5 250-DELIVERBY 250 HELP >>> MAIL From:<root@wolvix.wolvix.org> SIZE=29 AUTH=root@wolvix.wolvix.org 250 2.1.0 <root@wolvix.wolvix.org>... Sender ok >>> RCPT To:<root@wolvix.wolvix.org> >>> DATA 250 2.1.5 <root@wolvix.wolvix.org>... Recipient ok 354 Enter mail, end with "." on a line by itself >>> . 250 2.0.0 lBLJRCWp006160 Message accepted for delivery root... Sent (lBLJRCWp006160 Message accepted for delivery) Closing connection to [127.0.0.1] >>> QUIT 221 2.0.0 wolvix.wolvix.org closing connection
Problem solved.
documented on: 2007.12.21