Hi.  I'm getting this error on a fresh install of OpenBSD 6.6 with the built-in 
OpenSMTPD.

I'm following Gilles' excellent 'setting up a mail server' guide, but have hit 
a wall that I don't seem to be able to fix.  Any assitance will be greatly 
appreciated.

Here's my config (domain name changed to EXAMPLE):

#       $OpenBSD: smtpd.conf,v 1.11 2018/06/04 21:10:58 jmc Exp $

# This is the smtpd server system-wide configuration file.
# See smtpd.conf(5) for more information.

table aliases file:/etc/mail/aliases

# To accept external mail, replace with: listen on all
#
listen on all

action "local_mail" mbox alias <aliases>
action "outbound" relay helo mail.EXAMPLE.ca

# Uncomment the following to accept external mail for domain "example.org"
match from any for domain "mail.EXAMPLE.ca" action "local_mail"
match for local action "local_mail"
match for any action "outbound"

pki mail.EXAMPLE.ca cert "/etc/ssl/mail.EXAMPLE.fullchain.pem"
pki mail.EXAMPLE.ca key "/etc/ssl/private/mail.EXAMPLE.key"

filter check_dyndns phase connect match rdns regex { '.*\.dyn\..*', 
'.*\.dsl\..*' } \
    disconnect "550 you look like a spammer"

filter check_rdns phase connect match !rdns \
    disconnect "550 you look like a spammer"

filter check_fcrdns phase connect match !fcrdns \
    disconnect "550 you look like a spammer"

filter senderscore \
    proc-exec "filter-senderscore -blockBelow 10 -junkBelow 70 -slowFactor 5000"

filter rspamd proc-exec "filter-rspamd"

#table aliases file:/etc/mail/aliases

listen on all tls pki mail.EXAMPLE.ca \
    filter { check_dyndns, check_rdns, check_fcrdns, senderscore, rspamd }

listen on all port submission tls-require pki mail.EXAMPLE.ca auth filter rspamd

action "local_mail" maildir junk alias <aliases>

match from any for domain "mail.EXAMPLE.ca" action "local_mail"
match for local action "local_mail"

match from any auth for any action "outbound"
match for any action "outbound"

The only major changes I've made was moving the 'helo mail.EXAMPLE.ca' from the 
lower 'action' definition to the one above (it was duplicated and giving me 
problems) and commenting out the second 'table' and 'action' parameter as it 
was complaining it was a duplicate.

Here's the debug output:

mail# smtpd -f /etc/smtpd.conf -d -v                                            
                                                                                
                                                                
debug: init ssl-tree
info: loading pki information for mail.EXAMPLE.ca
debug: init ca-tree
debug: init ssl-tree
info: loading pki keys for mail.EXAMPLE.ca
debug: using "fs" queue backend
debug: using "ramqueue" scheduler backend
debug: using "ram" stat backend
info: OpenSMTPD 6.6.0 starting
debug: init ssl-tree
debug: init ssl-tree
info: loading pki information for mail.EXAMPLE.ca
debug: init ca-tree
debug: init ssl-tree
info: loading pki keys for mail.EXAMPLE.ca
debug: using "fs" queue backend
debug: using "ramqueue" scheduler backend
debug: using "ram" stat backend
debug: init ssl-tree
info: loading pki information for mail.EXAMPLE.ca
debug: init ca-tree
debug: init ssl-tree
info: loading pki keys for mail.EXAMPLE.ca
debug: using "fs" queue backend
debug: using "ramqueue" scheduler backend
debug: using "ram" stat backend
setup_peer: lookup -> control[87452] fd=4
setup_peer: lookup -> pony express[64675] fd=5
setup_peer: lookup -> queue[71335] fd=6
debug: init ssl-tree
info: loading pki information for mail.EXAMPLE.ca
debug: init ca-tree
debug: init ssl-tree
info: loading pki keys for mail.EXAMPLE.ca
debug: using "fs" queue backend
debug: using "ramqueue" scheduler backend
debug: using "ram" stat backend
setup_peer: pony express -> control[87452] fd=4
setup_peer: pony express -> klondike[46655] fd=5
setup_peer: pony express -> lookup[45363] fd=6
setup_peer: pony express -> queue[71335] fd=7
debug: init ssl-tree
info: loading pki information for mail.EXAMPLE.ca
setup_peer: klondike -> control[87452] fd=4
info: loading pki information for mail.EXAMPLE.ca
debug: init ca-tree
setup_peer: klondike -> pony express[64675] fd=5
debug: init ssl-tree
setup_done: ca[46655] done
debug: init ca-tree
info: loading pki keys for mail.EXAMPLE.ca
setup_proc: klondike done
debug: init ssl-tree
info: loading pki keys for mail.EXAMPLE.ca
debug: using "fs" queue backend
debug: using "ramqueue" scheduler backend
debug: using "fs" queue backend
debug: using "ram" stat backend
debug: using "ramqueue" scheduler backend
setup_peer: queue -> control[87452] fd=4
debug: using "ram" stat backend
setup_peer: queue -> pony express[64675] fd=5
setup_peer: queue -> lookup[45363] fd=6
setup_peer: scheduler -> control[87452] fd=4
setup_peer: queue -> scheduler[26366] fd=7
setup_peer: scheduler -> queue[71335] fd=5
debug: init ssl-tree
info: loading pki information for mail.EXAMPLE.ca
debug: init ca-tree
debug: init ssl-tree
info: loading pki keys for mail.EXAMPLE.ca
debug: using "fs" queue backend
debug: using "ramqueue" scheduler backend
debug: using "ram" stat backend
setup_peer: control -> klondike[46655] fd=4
setup_peer: control -> lookup[45363] fd=5
setup_peer: control -> pony express[64675] fd=6
setup_peer: control -> queue[71335] fd=7
setup_peer: control -> scheduler[26366] fd=8
setup_done: control[87452] done
setup_proc: lookup done
setup_done: lka[45363] done
setup_proc: pony express done
pony express: smtpd: bind: Address already in use
setup_done: pony[64675] done
setup_proc: queue done
setup_done: queue[71335] done
setup_proc: control done
setup_done: scheduler[26366] done
smtpd: setup done
setup_proc: scheduler done
debug: bounce warning after 4h
debug: parent -> pony: pipe closed
smtpd: process pony socket closed
mail# debug: ca -> parent: pipe closed
debug: lka -> parent: pipe closed
debug: lookup agent exiting
debug: control -> parent: pipe closed
debug: control agent exiting
debug: ca agent exiting
debug: queue -> parent: pipe closed
debug: scheduler -> control: pipe closed
debug: queue agent exiting
debug: scheduler agent exiting


Reply via email to