======================================= FreeBSD 14 dragonfly dma email ======================================= FreeBSD 14 base defaults to Dragonfly and NOT sendmail. Here are various dragonfly configs to send email from your servers. ======================================= To send local email to real addresses (ie system messages for root) --------------------------------------- # edit /etc/mail/aliases root: myaccount@mydomain.com oeng: myaccount@mydomain.com ....................................... newaliases ======================================= To send through a properly configured sendmail server on port 25 --------------------------------------- # NOTE: In Canada, BELL blocks port 25 for all their DHCP Business/Home customers so this will fail # edit /etc/dma/dma.conf SMARTHOST smtp.mydomain.com MASQUERADE guido.mydomain.com ======================================= To login and send through an outgoing smtp server on port 587 --------------------------------------- # edit /etc/dma/dma.conf SMARTHOST smtp.gmail.com PORT 587 SECURETRANSFER STARTTLS AUTHPATH /etc/dma/auth.conf MASQUERADE guido.mydomain.com # edit /etc/dma/auth.conf myaccount@gmail.com|smtp.gmail.com:mypassword ======================================= To login and send through an outgoing smtp server on port 465 --------------------------------------- # edit /etc/dma/dma.conf SMARTHOST smtp.gmail.com PORT 465 SECURETRANSFER AUTHPATH /etc/dma/auth.conf MASQUERADE guido.mydomain.com # edit /etc/dma/auth.conf myaccount@gmail.com|smtp.gmail.com:mypassword ======================================= Send email --------------------------------------- echo hello world | mailx -s test1 myaccount@mydomain.com echo hello world | mailx -s test2 myfriend@somewhere.com echo hello world | mailx -s test3 root ======================================= References --------------------------------------- https://man.freebsd.org/cgi/man.cgi?query=dma&sektion=8&manpath=FreeBSD+14.1-RELEASE+and+Ports ======================================= Done =======================================