I recently upgraded one of my systems to Debian Buster, and now I cannot get mdadm to send out its email messages. Previously I had ssmtp configured, and it worked just great, but it is no longer maintained. I tried, but was unable to get exim4 working, so I chose to install msmtp and msmtp-mta. I can readily send an email from the system using the msmtp command, but when mdadm attempts to send a message, sendmail complains the server is rejecting it because the mailbox is not found.
Asked
Active
Viewed 849 times
2
-
Check what mailbox msmtp is being told to send to, according to its logs. – u1686_grawity Jan 13 '20 at 12:44
-
Msmtp is not writing anything to any log when mdadm is invoked by the command: – Leslie Rhorer Jan 13 '20 at 13:02
-
mdadm --monitor --scan --test -1 The text "sendmail: cannot send message: Malformed email address" is sent to stderr when the command is invoked. – Leslie Rhorer Jan 13 '20 at 13:09
-
Also note attempting to send a message using sendmail fails, but again with no logs. – Leslie Rhorer Jan 13 '20 at 13:57
1 Answers
2
I believe I have fixed the problem. For anyone else who runs across this:
- Add both the following lines into /etc/mdadm/mdadm.conf
MAILADDR <recipient>
MAILFROM <sender>
- Create a symlink in /usr/sbin
cd /usr/sbin
ln -s ../bin/msmtp sendmail
Installing msmtp-mta is supposed to handle #2, but for whatever reason did not do so.
Leslie Rhorer
- 41
- 3