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
[email protected]
/etc/nullmailer/defaultdomain
is empty
sudo less /etc/nullmailer/remotes
mail.gmx.net smtp --port=465 --starttls [email protected] --pass=someSecret
I as well configured /etc/aliases ... no idea if that matters at all:
....
root: [email protected]
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[4727]: smtp: Failed:
Apr 20 22:20:58 desktop-pc nullmailer[4717]: Sending failed: Protocol error
So how to get things debugged now ? Or should I pick another mail provider to send my root-mails ?
Edit1:
Using port 587 with TLS leads to another error: ( Same when using port 465 with --ssl )
Apr 21 08:12:43 schwinn-desktop nullmailer[1319]: smtp: Failed: 550-Requested action not taken: mailbox unavailable#012550 Sender address is not allowed.
Apr 21 08:12:43 schwinn-desktop nullmailer[1285]: Sending failed: Permanent error in sending the message
Edit2:
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.