Struggling to send mail with dma

I've been bashing my head against the wall all week trying to get basic mail sending to myself to work.

I am running 14.4 on my webserver, and want to get the periodic digests sent to my personal inbox . All the web searching I have done points to dma as the perfect option, but it's Just. Not. Working!

The first major hurdle I was running into was a "invalid recipient" error, this was caused by my server hostname being set to the same value as my web address and mail domain. That was resolved and now I am just getting absolutely stuck.

/etc/dma/dma.conf
Code:
SMARTHOST smtp.fastmail.com
PORT 587
AUTHPATH /etc/dma/auth.conf
SECURETRANSFER
STARTTLS
MASQUERADE freebsd@example.com
MAILNAME example.com

/etc/dma/auth.conf
Code:
# $DragonFly: src/etc/dma/auth.conf,v 1.1 2008/02/02 18:24:00 matthias Exp $
#
# SMTP authentication entries (currently AUTH LOGIN only)
# Format: user|my.smarthost.example.com:password

root@example.com|smtp.fastmail.com:passwordgoeshere

Output from tail -f /var/log/maillog
Code:
May 18 08:51:42 freebsd dma[4e466.403778a47000][6875]: trying remote delivery to in2-smtp.messagingengine.com [202.12.124.217] pref 20
May 18 08:52:05 freebsd dma[4e44e.58b298247000][6913]: connect to in1-smtp.messagingengine.com [103.168.172.220] failed: Operation timed out
May 18 08:52:05 freebsd dma[4e44e.58b298247000][6913]: trying remote delivery to in1-smtp.messagingengine.com [103.168.172.216] pref 10
May 18 08:52:12 freebsd dma[4e445.fb1a1847000][6851]: connect to in2-smtp.messagingengine.com [202.12.124.219] failed: Operation timed out
May 18 08:52:12 freebsd dma[4e445.fb1a1847000][6851]: trying remote delivery to in2-smtp.messagingengine.com [202.12.124.216] pref 20

I must be getting something clearly wrong here, but I just can't pinpoint *what* it might be. Please send help!
 
Code:
connect to in1-smtp.messagingengine.com [103.168.172.220] failed: Operation timed out
{...}
connect to in2-smtp.messagingengine.com [202.12.124.219] failed: Operation timed out
It cannot connect to your configured smarthost, the connection times out. Firewall blocking the outgoing traffic?
 
It cannot connect to your configured smarthost, the connection times out. Firewall blocking the outgoing traffic?
At the risk of being shamed... I checked how to do that with Claude a friend, and I don't believe the traffic is being blocked:

Code:
mfrank@freebsd:~ $ doas pfctl -sr | grep -E "587|smtp|out"
pass out all flags S/SA keep state
mfrank@freebsd:~ $ nc -zv smtp.fastmail.com 587
Connection to smtp.fastmail.com 587 port [tcp/submission] succeeded!

If there is a more concrete way to test, let me know.
 
Dont know about fastmail, but some other services like to have different passwords in deep of their infrastructure for web interface and other user's applications.
 
I gave up to use my ISP to send mail for periodic reports.

Several times a year, they change the security measures and you have to understand what it is and how to deal with it. Waste of time.

I now use an internal mail server (to receive periodic reports) that I can read on my phone.
 
Back
Top