Gentoo Archives: gentoo-user

From: Adam Carter <adamcarter3@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] mail cannot send emails (trying to use it with smartd)
Date: Wed, 01 Apr 2020 11:09:10
Message-Id: CAC=wYCFsGzQTX1io0vsvRU+B=_42rdpubxz8DnAgqE2c8=PyJQ@mail.gmail.com
In Reply to: [gentoo-user] mail cannot send emails (trying to use it with smartd) by Caveman Al Toraboran
1 On Wed, Apr 1, 2020 at 2:51 PM Caveman Al Toraboran <
2 toraboracaveman@××××××××××.com> wrote:
3
4 > why can't `mail` send emails? below is some info.
5 >
6 > from journalctl:
7 >
8 > > Apr 01 03:55:17 blah smartd[11693]: mail: cannot send message: Process
9 > exited
10 > > with a non-zero status
11 >
12 > i did `equery belongs mail`, and i got:
13 >
14 > > dev-python/twisted-19.10.0
15 > (/usr/lib64/python3.6/site-packages/twisted/mail)
16 > > dev-python/twisted-19.10.0
17 > (/usr/lib64/python2.7/site-packages/twisted/mail)
18 > > net-mail/mailutils-3.9 (/usr/bin/mail)
19 > > net-mail/mailutils-3.9 (/bin/mail -> ../usr/bin/mail)
20 > > net-mail/mailutils-3.9 (/etc/mailutils.d/mail)
21 >
22 > then `whereis mail`:
23 >
24 > > mail: /usr/bin/mail /bin/mail /usr/share/man/man1/mail.1.bz2
25 >
26 > so i guess this means that i'm using the `mail` from mailutils.
27 >
28
29 I just had a look at a couple of systems. The workstation has mailutils
30 installed. Running 'mailq' (from mail-mta/nullmailer) shows there's a few
31 stuck mails. Looks like i need to configure /etc/nullmailer/remotes and
32 enable the nullmailer service if i want to get that working.
33
34 On my server /usr/bin/mail is from mail-client/mailx and mailq is from
35 postfix, and this works because its my internet connected email server.
36 <info@×××××.ua>