Last time I used postfix, and it was a mess until everything was configured to send my root-mail to my gmx-address .. however in the end it worked.
This time I wanted to prevent that mess by using
nullmailer .. however
nullmailer as well provides some trouble.
Here my settings:
sudo less /etc/nullmailer/adminaddr myMailAddress@gmx.de
/etc/nullmailer/defaultdomain is empty
sudo less /etc/nullmailer/remotes mail.gmx.net smtp --port=465 --starttls --user=myMailProxy@gmx.de --pass=someSecret
I as well configured /etc/aliases ... no idea if that matters at all:
.... root: myMailAddress@gmx.de
After configuration and restarting the service:
sudo service nullmailer restart
I tried to send a testmail:
mail -s "whatever" root < /dev/null
But it failed ... I can read the following error in /var/log/mail.err:
Apr 20 22:20:58 desktop-pc nullmailer: smtp: Failed: Apr 20 22:20:58 desktop-pc nullmailer: Sending failed: Protocol error
So how to get things debugged now ? Or should I pick another mail provider to send my root-mails ?
Using port 587 with TLS leads to another error: ( Same when using port 465 with --ssl )
Apr 21 08:12:43 schwinn-desktop nullmailer: smtp: Failed: 550-Requested action not taken: mailbox unavailable#012550 Sender address is not allowed. Apr 21 08:12:43 schwinn-desktop nullmailer: Sending failed: Permanent error in sending the message
Finnaly, thanks to emk2203, I use dma(dragonfly mail transfer agent) instead of nullmailer, which I was able to bring to work in less than 5min.