On Tuesday, 7 April 2020 11:01:45 BST Caveman Al Toraboran wrote: > On Friday, April 3, 2020 10:42 AM, Caveman Al Toraboran <toraboracave...@protonmail.com> wrote: > > nullmailer is now configured, and test with`echo "Subject: ..." | sendmail > > -v m...@dom.com` works. but, smartd's test mail is not working, with this > > error:> > > Apr 03 10:15:09 blah smartd[219171]: Test of <mail> to m...@dom.com > > produced unexpected output (65 bytes) to STDOUT/STDERR: > > Apr 03 10:15:09 blah smartd[219171]: mail: cannot send message: > > Process exited with a non-zero status Apr 03 10:15:09 blah > > smartd[219171]: Test of <mail> to m...@dom.com: failed (32-bit/8-bit > > exit status: 9216/36)> > > tried to test`mail` in isolation: > > > > echo "test body" | mail -s "test subj" m...@dom.com --debug-level=3 > > mail: sendmail binary: /usr/sbin/sendmail > > mail: source=system, name=me, passwd=x, uid=1000, gid=1000, gecos=, > > dir=/home/me, shell=/bin/fish, mailbox=.maildir, quota=0, change_uid=1 > > mail: source=system, name=me, passwd=x, uid=1000, gid=1000, gecos=, > > dir=/home/me, shell=/bin/fish, mailbox=.maildir, quota=0, change_uid=1 > > mail: mu_mailer_send_message(): using From: me@localhost > > mail: Sending headers... > > mail: Sending body... > > mail: /usr/sbin/sendmail exited with: 1 > > mail: progmailer error: Process exited with a non-zero status > > mail: cannot send message: Process exited with a non-zero status > > mail: source=system, name=me, passwd=x, uid=1000, gid=1000, gecos=, > > dir=/home/me, shell=/bin/fish, mailbox=.maildir, quota=0, change_uid=1 > > > > i've also monitored `watch -n .1 tree /var/spool/nullmailer/` and verified > > that the queue never gets filled with any message when i use the `mail` > > command (which, i think, is what `smartd` uses). but, the queues get > > filled when i used `sendmail` by the command in my 1st paragraph. > > extra info: i've just found that it only fails > when sender address is `@locahost`. if i manually > execute `mail` with `-aFrom:lol@safsdfsd` it will > work, even tho the `From:...` is total garbage. > > but somehow just can't work when > `From:lol@localhost`. something personal going on > with `mail` and `localhost`. > > any idea what's going on? and what did i do > wrong? hence what's the most elegant way to fix > this?
I have not configured nullmailer to know its internals, but assuming you have not removed '127.0.0.1 localhost' from your /etc/hosts it should work. Otherwise, I found these pages which may be of use in troubleshooting it: http://troubleshooters.com/linux/nullmailer/ http://troubleshooters.com/linux/nullmailer/landmines.htm
signature.asc
Description: This is a digitally signed message part.