Sending Email notifications using postfix
Posted: Wed Jun 23, 2021 8:57 pm
Hello all,
My current configuration is just a basic ZoneMinder install. I was using Gmail to send my emails but this really isn't a long term solutions for my use case. I'm wondering how I would configure my server to use the postfix server that I have installed on the same server to send my emails out?
My Current configuration is
Ubuntu server 18.04
ZoneMinder 1.34.26
ssmtp.conf:
root=name.name@gmail.com
mailhub=smtp.gmail.com:587
hostname=localhost
RewriteDomain=gmail.com
UseSTARTTLS=YES
UseTLS=YES
AuthUser=name.name@gmail.com
AuthPass=goodpassword
revaliases:
root:name.name@gmail.com:smtp.gmail.com:587
www-data:name.name@gmail.com:smtp.gmail.com:587
postfix:
fresh install (no changes)
My current configuration is just a basic ZoneMinder install. I was using Gmail to send my emails but this really isn't a long term solutions for my use case. I'm wondering how I would configure my server to use the postfix server that I have installed on the same server to send my emails out?
My Current configuration is
Ubuntu server 18.04
ZoneMinder 1.34.26
ssmtp.conf:
root=name.name@gmail.com
mailhub=smtp.gmail.com:587
hostname=localhost
RewriteDomain=gmail.com
UseSTARTTLS=YES
UseTLS=YES
AuthUser=name.name@gmail.com
AuthPass=goodpassword
revaliases:
root:name.name@gmail.com:smtp.gmail.com:587
www-data:name.name@gmail.com:smtp.gmail.com:587
postfix:
fresh install (no changes)