2

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.

4
  • Check what mailbox msmtp is being told to send to, according to its logs. Commented Jan 13, 2020 at 12:44
  • Msmtp is not writing anything to any log when mdadm is invoked by the command: Commented Jan 13, 2020 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. Commented Jan 13, 2020 at 13:09
  • Also note attempting to send a message using sendmail fails, but again with no logs. Commented Jan 13, 2020 at 13:57

1 Answer 1

2
I believe I have fixed the problem.  For anyone else who runs across this:
  1. Add both the following lines into /etc/mdadm/mdadm.conf
MAILADDR <recipient>
MAILFROM <sender>
  1. 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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .