1 |
On Friday, April 3, 2020 10:42 AM, Caveman Al Toraboran <toraboracaveman@××××××××××.com> wrote: |
2 |
|
3 |
> nullmailer is now configured, and test with`echo "Subject: ..." | sendmail -v me@×××.com` works. but, smartd's test mail is not working, with this error: |
4 |
> |
5 |
> Apr 03 10:15:09 blah smartd[219171]: Test of <mail> to me@×××.com produced unexpected output (65 bytes) to STDOUT/STDERR: |
6 |
> |
7 |
> Apr 03 10:15:09 blah smartd[219171]: mail: cannot send message: Process exited with a non-zero status |
8 |
> Apr 03 10:15:09 blah smartd[219171]: Test of <mail> to me@×××.com: failed (32-bit/8-bit exit status: 9216/36) |
9 |
> |
10 |
> |
11 |
> tried to test`mail` in isolation: |
12 |
> |
13 |
> echo "test body" | mail -s "test subj" me@×××.com --debug-level=3 |
14 |
> mail: sendmail binary: /usr/sbin/sendmail |
15 |
> 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 |
16 |
> 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 |
17 |
> mail: mu_mailer_send_message(): using From: me@localhost |
18 |
> mail: Sending headers... |
19 |
> mail: Sending body... |
20 |
> mail: /usr/sbin/sendmail exited with: 1 |
21 |
> mail: progmailer error: Process exited with a non-zero status |
22 |
> mail: cannot send message: Process exited with a non-zero status |
23 |
> 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 |
24 |
> |
25 |
> i've also monitored `watch -n .1 tree /var/spool/nullmailer/` and verified that |
26 |
> the queue never gets filled with any message when i use the `mail` command |
27 |
> (which, i think, is what `smartd` uses). but, the queues get filled when i |
28 |
> used `sendmail` by the command in my 1st paragraph. |
29 |
|
30 |
|
31 |
extra info: i've just found that it only fails |
32 |
when sender address is `@locahost`. if i manually |
33 |
execute `mail` with `-aFrom:lol@safsdfsd` it will |
34 |
work, even tho the `From:...` is total garbage. |
35 |
|
36 |
but somehow just can't work when |
37 |
`From:lol@localhost`. something personal going on |
38 |
with `mail` and `localhost`. |
39 |
|
40 |
any idea what's going on? and what did i do |
41 |
wrong? hence what's the most elegant way to fix |
42 |
this? |