Skip site navigation (1)Skip section navigation (2)
Date:      9 Jul 2020 22:32:16 -0400
From:      "John Levine" <johnl@iecc.com>
To:        freebsd-questions@freebsd.org
Cc:        contact@evilham.com
Subject:   Re: Sending system mail to remote mail server using dma
Message-ID:  <20200710023216.C4B581C78C9B@ary.qy>
In-Reply-To: <afa76bcc-3be1-4e71-8de5-f88917ed1845@yggdrasil.evilham.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <afa76bcc-3be1-4e71-8de5-f88917ed1845@yggdrasil.evilham.com> you write:
>>> I'd like to setup my machines to send the local system mail to 
>>> the mail server (things like the weekly repots to root, cron 
>>> output, etc), which means setting up submission on these 
>>> machines. I don't even know where to start on this.

>I'd use dma, it's simple to automate and configure and is in base 
>(unlike ssmtp).

Definitely.  I've sent it up on all of my FreeBSD VPS to redirect the mail
to my submision server.  Works great, takes only a few minutes to set up.

>man 8 dma should get you started and there is also 
>/usr/share/examples/dma/mailer.conf which tells you how to setup 
>mailer.conf (see man 5 mailer.conf).

Right.  You edit /etc/dma/dma.conf to uncomment and edit these lines:

SMARTHOST mail.example.com

PORT 465
SECURETRANSFER

or

PORT 587
STARTTLS

NULLCLIENT
AUTHPATH /etc/dma/auth.conf

and in auth.conf put something like this:

remote}mail.example.com:swordfish

that logs in as "remote" with password "swordfish"

-- 
Regards,
John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail. https://jl.ly



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200710023216.C4B581C78C9B>