1 |
On Tuesday, 7 April 2020 11:01:45 BST Caveman Al Toraboran wrote: |
2 |
> On Friday, April 3, 2020 10:42 AM, Caveman Al Toraboran |
3 |
<toraboracaveman@××××××××××.com> wrote: |
4 |
> > nullmailer is now configured, and test with`echo "Subject: ..." | sendmail |
5 |
> > -v me@×××.com` works. but, smartd's test mail is not working, with this |
6 |
> > error:> |
7 |
> > Apr 03 10:15:09 blah smartd[219171]: Test of <mail> to me@×××.com produced |
8 |
unexpected output (65 bytes) to STDOUT/STDERR: |
9 |
> > Apr 03 10:15:09 blah smartd[219171]: mail: cannot send message: |
10 |
> > Process exited with a non-zero status Apr 03 10:15:09 blah |
11 |
> > smartd[219171]: Test of <mail> to me@×××.com: failed (32-bit/8-bit |
12 |
> > exit status: 9216/36)> |
13 |
> > tried to test`mail` in isolation: |
14 |
> > |
15 |
> > echo "test body" | mail -s "test subj" me@×××.com --debug-level=3 |
16 |
> > mail: sendmail binary: /usr/sbin/sendmail |
17 |
> > mail: source=system, name=me, passwd=x, uid=1000, gid=1000, gecos=, |
18 |
> > dir=/home/me, shell=/bin/fish, mailbox=.maildir, quota=0, change_uid=1 |
19 |
> > mail: source=system, name=me, passwd=x, uid=1000, gid=1000, gecos=, |
20 |
> > dir=/home/me, shell=/bin/fish, mailbox=.maildir, quota=0, change_uid=1 |
21 |
> > mail: mu_mailer_send_message(): using From: me@localhost |
22 |
> > mail: Sending headers... |
23 |
> > mail: Sending body... |
24 |
> > mail: /usr/sbin/sendmail exited with: 1 |
25 |
> > mail: progmailer error: Process exited with a non-zero status |
26 |
> > mail: cannot send message: Process exited with a non-zero status |
27 |
> > mail: source=system, name=me, passwd=x, uid=1000, gid=1000, gecos=, |
28 |
> > dir=/home/me, shell=/bin/fish, mailbox=.maildir, quota=0, change_uid=1 |
29 |
> > |
30 |
> > i've also monitored `watch -n .1 tree /var/spool/nullmailer/` and verified |
31 |
> > that the queue never gets filled with any message when i use the `mail` |
32 |
> > command (which, i think, is what `smartd` uses). but, the queues get |
33 |
> > filled when i used `sendmail` by the command in my 1st paragraph. |
34 |
> |
35 |
> extra info: i've just found that it only fails |
36 |
> when sender address is `@locahost`. if i manually |
37 |
> execute `mail` with `-aFrom:lol@safsdfsd` it will |
38 |
> work, even tho the `From:...` is total garbage. |
39 |
> |
40 |
> but somehow just can't work when |
41 |
> `From:lol@localhost`. something personal going on |
42 |
> with `mail` and `localhost`. |
43 |
> |
44 |
> any idea what's going on? and what did i do |
45 |
> wrong? hence what's the most elegant way to fix |
46 |
> this? |
47 |
|
48 |
I have not configured nullmailer to know its internals, but assuming you have |
49 |
not removed '127.0.0.1 localhost' from your /etc/hosts it should work. |
50 |
|
51 |
Otherwise, I found these pages which may be of use in troubleshooting it: |
52 |
|
53 |
http://troubleshooters.com/linux/nullmailer/ |
54 |
http://troubleshooters.com/linux/nullmailer/landmines.htm |