If set up my messages mailcommand to be identical to the command line which works
mailcommand = "/usr/bin/bsmtp -f validemail -s BareosTest myemail
mail = myemail = all,!skipped,!saved,!audit
no email is sent.
So what am I missing? I'm on Centos 7.
I assume I could run mail/mailx which also works fine on my system. Is there any reason to stick with bsmtp over mail? I know bsmtp is a very simple client but given it works from the command line it should work from Bareos.
The docs also say Bareos consolidates emails and sends those for a job as one email so I assume that is Bareos itself and not bsmtp.
What
Thanks.
Thanks.
I tried all the permutations and combinations of things with bmstp and mail. The -h localhost did not work for me. I was trying to communicate with an email address on user.xxx.com domain. I dug through the mail logs on my local machine. Since my server, the localhost localserver.corp.xx.net, was unknown to the mail server for user.xxx.com it got rejected. I set a whitelist for my IP assigned by my ISP on the mail server at xxx.com and things started working.
If I had a local mail server that would also work but at this point I'm not ready to set one up now. Maybe later.
Is there a place to put this in a postfix configuration file so I don't need the credentials on the command line?
account backupadmin {
set smtp-use-starttls
set ssl-verify=ignore
set smtp-auth=login
set folder=imaps://us...@mydomain.com:port/INBOX
set from=fromaddr
set smtp-auth-user=theuser
set smtp-auth-password=thepasword
set nss-config=/etc/ssl/certs/ca-bundle.crt
}
I use
mailcommand = "mailx -A backupadmin -s \"The subject\" recipients"
It works great so far.