On 09.06.2018 2:39, flipchan wrote:
Hello ,
im having troubles configuring dkim to sign msgs with
opensmtpd, i can send emails with dkim it just loops it
and breaks
log:
Jun 8 20:36:21 mail smtpd[63656]: 1488dfc121f5364b smtp
event=connected address=myip host=myhost
Jun 8 20:36:22 mail smtpd[63656]: 1488dfc121f5364b smtp event=starttls
address=myip host=myhost ciphers="version=TLSv1.2,
cipher=ECDHE-RSA-AES256-GCM-SHA384, bits=256"
Jun 8 20:36:22 mail smtpd[63656]: 1488dfc121f5364b smtp
event=authentication user=testuser address=myip host=myhost result=ok
Jun 8 20:36:23 mail smtpd[63656]: 1488dfc121f5364b smtp event=message
address=myip host=myhost msgid=38888f9e from=<[email protected]>
to=<[email protected]> size=556 n
dest=1 proto=ESMTP
Jun 8 20:36:23 mail smtpd[63656]: 1488dfc4e9e0ccb5 mta
event=connecting address=smtp://127.0.0.1:10027 host=localhost
Jun 8 20:36:23 mail smtpd[63656]: 1488dfc4e9e0ccb5 mta event=connected
Jun 8 20:36:23 mail smtpd[63656]: 1488dfc54676e1ec smtp
event=connected address=127.0.0.1 host=localhost
Jun 8 20:36:23 mail dkimproxy.out[76617]: DKIM signing - signed;
message-id=<[email protected]>,
signer=<[email protected]>, from=<[email protected]>
Jun 8 20:36:23 mail smtpd[63656]: 1488dfc121f5364b smtp event=closed
address=myip host=myhost reason=quit
Jun 8 20:36:23 mail smtpd[63656]: 1488dfc54676e1ec smtp event=message
address=127.0.0.1 host=localhost msgid=3737cdb6
from=<[email protected]> to=<[email protected]> size=2536
ndest=1 proto=ESMTP
Jun 8 20:36:23 mail smtpd[63656]: 1488dfc4e9e0ccb5 mta event=delivery
evpid=38888f9efd1e5cb1 from=<[email protected]>
to=<[email protected]> rcpt=<-> source="127.0.0.1"
relay="127.0.0.1 (localhost)"
delay=1s result="Ok" stat="250 2.0.0: 3737cdb6 Message accepted for
delivery"
Jun 8 20:36:24 mail dkimproxy.out[76617]: DKIM signing - signed;
message-id=<[email protected]>,
signer=<[email protected]>, from=<[email protected]>
Jun 8 20:36:24 mail smtpd[63656]: 1488dfc54676e1ec smtp event=message
address=127.0.0.1 host=localhost msgid=47f3b370
from=<[email protected]> to=<[email protected]> size=4516
ndest=1 proto=ESMTP
Jun 8 20:36:24 mail smtpd[63656]: 1488dfc4e9e0ccb5 mta event=delivery
evpid=3737cdb6c6f4cceb from=<[email protected]>
to=<[email protected]> rcpt=<-> source="127.0.0.1"
relay="127.0.0.1 (localhost)"
delay=1s result="Ok" stat="250 2.0.0: 47f3b370 Message accepted for
delivery"
this must be a smtpd.conf error, here is my configuration:
# $OpenBSD: smtpd.conf,v 1.9 2016/05/03 18:43:45 jung Exp $
# This is the smtpd server system-wide configuration file.
# See smtpd.conf(5) for more information.
pki mail.mydomain.com certificate "/etc/ssl/mail.mydomain.com.crt"
pki mail.mydomain.com key "/etc/ssl/private/mail.mydomain.com.key"
queue compression
queue encryption key a2410ef405aa1d6e7592091f21092abe
table aliases file:/etc/mail/aliases
#listen on lo0
##listen on vio0 port 25 tls pki mail.mydomain.com
#listen on 0.0.0.0 port 25 tls pki mail.mydomain.com
listen on lo0
listen on lo0 port 10028 tag DKIM_OUT
#listen on lo0 port 10028 tag DKIM hostname mydomain.com
listen on vio0 port 25 hostname mydomain.com tls pki mail.mydomain.com
listen on vio0 port 587 hostname mydomain.com tls-require pki
mail.mydomain.com auth mask-source
max-message-size 50M
#
#DKIM
#listen on lo0 port 10028 tag DKIM
#accept tagged DKIM for any relay
#accept from local for any relay via smtp://127.0.0.1:10027
#accept tagged DKIM for any relay source externalip hostname mydomain.com
# Uncomment the following to accept external mail for domain "example.org"
#
accept from any for domain "mydomain.com" alias <aliases> deliver to mbox
accept for local alias <aliases> deliver to mbox
accept tagged DKIM for any relay
accept from local for any relay via smtp://127.0.0.1:10027
#accept tagged DKIM_OUT from any for any relay
#accept for any relay via smtp://127.0.0.1:10027
#listen on lo0 port 10028 tag DKIM
#accept tagged DKIM for any relay
#accept from local for any relay via smtp://127.0.0.1:10027
Can anyone see something i dont? what am i doing wrong?
You're tagging as DKIM_OUT, but matching as DKIM.
Possibly.
Good luck,
Reio
--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]