======================================= FreeBSD 14 dragonfly dma email ======================================= FreeBSD 14 base defaults to Dragonfly and NOT sendmail. If you upgrade to 14 it will switch your mta to Dragonfly. Here are various dragonfly configs to send email from your servers. ======================================= 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 ======================================= 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 ======================================= 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 ======================================= dragonfly /etc/mail/mailer.conf --------------------------------------- # # mailer.conf for use with dma(8) # # If sendmail is configured, an example of mailer.conf that uses sendmail # instead can be found in /usr/share/examples/sendmail. sendmail /usr/libexec/dma mailq /usr/libexec/dma newaliases /usr/libexec/dma ======================================= sendmail /etc/mail/mailer.conf --------------------------------------- # $FreeBSD$ # # Execute the "real" sendmail program, named /usr/libexec/sendmail/sendmail # # If dma(8) is installed, an example mailer.conf that uses dma(8) instead can # can be found in /usr/share/examples/dma. # sendmail /usr/libexec/sendmail/sendmail mailq /usr/libexec/sendmail/sendmail newaliases /usr/libexec/sendmail/sendmail hoststat /usr/libexec/sendmail/sendmail purgestat /usr/libexec/sendmail/sendmail ======================================= References --------------------------------------- https://man.freebsd.org/cgi/man.cgi?query=dma&sektion=8&manpath=FreeBSD+14.1-RELEASE+and+Ports ======================================= Done =======================================