Hi,
I have tried OpenSMTPd for a while on a OpenBSD system. Without any special
setting, it's working great! Thanks R&D!
Recently I changed my settings because:
1. I want to change default listen port from 25 to other
2. I want to have an external spam/virus filter before all emails come
to my system
So I update the OpenSMTPd setting like (P.S example.com is NOT a real
domain):
---------------------------------------------------------------------------------------------------------------
listen on bnx0 port 52525 hostname smtp.example.com
listen on 10.0.1.1 port 25 hostname smtp.example.com
listen on 10.0.2.1 port 25 hostname smtp.example.com
listen on 10.0.3.1 port 25 hostname smtp.example.com
listen on 127.0.0.1 port 25 hostname smtp.example.com
bounce-warn 1h
expire 12h
max-message-size 100M
#table aliases db:/etc/mail/aliases.db
table domains {example.com, "*.mailhop.org"}
table users {root => user}
table secrets db:/etc/mail/secrets.db
accept from local for local deliver to mbox
#accept from 216.146.32.0/255.255.254.0 for domain "example.com" alias
<aliases> deliver to mbox
accept from 216.146.32.0/255.255.254.0 for domain <domains> virtual <users>
deliver to mbox
accept from local for any relay via
tls+auth://[email protected]:587auth <secrets>
---------------------------------------------------------------------------------------------------------------
Local users are fine to send/receive emails. Local users are also fine to
send email out through Google's email relay.
However, all incoming emails from outside network will always be rejected
with the following error message:
Oct 15 14:49:22 demo smtpd[17082]: smtp-in: New session 000000014ca4cdbf
from host mxout-050-ewr.mailhop.org [216.146.33.50]
Oct 15 14:49:22 demo smtpd[4412]: warn: inet_net_pton: Message too long
Oct 15 14:49:22 demo smtpd[17082]: smtp-in: Failed command on session
000000014ca4cdbf: "RCPT TO:<[email protected]>" => 550 Invalid recipient
Oct 15 14:49:22 demo smtpd[17082]: smtp-in: Closing session 000000014ca4cdbf
Note, all valid incoming emails will be redirected to Dyn's email gateway
first then go to my email server.
And I have limited the emails from Dyn's geteway only.
Does anyone know why and how to fix it? Without using that Dyn's email
gateway service, everything is running OK.
I am using OpenBSD v5.3 wit OpenSMTPd 5.3. Should I upgrade it to 5.3.3 to
resolve it?
Thanks,
Jason