View Single Post
  #1   (View Single Post)  
Old 27th January 2016
sag sag is offline
New User
 
Join Date: Jan 2016
Posts: 4
Default smtpd relay doesn't use my configured port

Code:
uname -mrsv
OpenBSD 5.8 GENERIC.MP#1236 amd64
I don't actually want to relay through port 25, but this is just to show how my ISP blocks it:

Code:
telnet mail.messagingengine.com 25
Trying 66.111.4.51...
telnet: connect to address 66.111.4.51: Connection timed out
Trying 66.111.4.52...
telnet: connect to address 66.111.4.52: Connection timed out
Port 465 is fine:

Code:
telnet mail.messagingengine.com 465
Trying 66.111.4.51...
Connected to mail.messagingengine.com.
Escape character is '^]'.
Here is my configuration from /etc/mail/smtpd.conf

Code:
listen on lo0
table aliases db:/etc/mail/aliases.db
table secrets db:/etc/mail/secrets.db
accept for local alias <aliases> deliver to mbox
accept for any relay via smtps+auth://label@mail.messagingengine.com:465 auth <secrets>
Although I want to use port 465, it is instead using port 25 and the connections are timing out:

Code:
# smtpd -n
configuration OK
# smtpd -d
info: OpenSMTPD 5.4.4 starting
info: startup
smtp-out: Connecting to smtp+tls://66.111.4.73:25 (mx4.messagingengine.com) on session 9e123be67ad426f7...
smtp-out: Connecting to smtp+tls://66.111.4.75:25 (mx6.messagingengine.com) on session 9e123be88ba0d955...
smtp-out: Connecting to smtp+tls://66.111.4.74:25 (mx5.messagingengine.com) on session 9e123be71eec91c0...
smtp-out: Error on session 9e123be67ad426f7: Connection timeout
smtp-out: Disabling route [] <-> 66.111.4.73 (mx4.messagingengine.com) for 800s
smtp-out: Connecting to smtp+tls://66.111.4.70:25 (mx1.messagingengine.com) on session 9e123be9b7e5eb52...
smtp-out: Error on session 9e123be88ba0d955: Connection timeout
smtp-out: Disabling route [] <-> 66.111.4.75 (mx6.messagingengine.com) for 800s
smtp-out: Error on session 9e123be71eec91c0: Connection timeout
smtp-out: Disabling route [] <-> 66.111.4.74 (mx5.messagingengine.com) for 800s
smtp-out: Connecting to smtp+tls://66.111.4.72:25 (mx3.messagingengine.com) on session 9e123bea3a9916c4...
smtp-out: Connecting to smtp+tls://66.111.4.71:25 (mx2.messagingengine.com) on session 9e123beb88018fb6...
smtp-out: Error on session 9e123be9b7e5eb52: Connection timeout
smtp-out: Disabling route [] <-> 66.111.4.70 (mx1.messagingengine.com) for 800s
smtp-out: Error on session 9e123bea3a9916c4: Connection timeout
smtp-out: Disabling route [] <-> 66.111.4.72 (mx3.messagingengine.com) for 800s
smtp-out: Error on session 9e123beb88018fb6: Connection timeout
smtp-out: Disabling route [] <-> 66.111.4.71 (mx2.messagingengine.com) for 800s
smtp-out: Connecting to smtp+tls://185.68.180.20:25 (smx1.messagingengine.com) on session 9e123bec1ccc1ff7...
smtp-out: Connecting to smtp+tls://185.68.180.24:25 (smx2.messagingengine.com) on session 9e123bed3eb5fc9e...
How can I whisper sweet nothings into smtpd's ear to get it to stop relaying on port 25 and use port 465 instead?
Reply With Quote