version=pmwiki-2.2.130 ordered=1 urlencoded=1 agent=Mozilla/5.0 (X11; OpenBSD amd64; rv:76.0) Gecko/20100101 Firefox/76.0 author=jrmu charset=UTF-8 csum= ctime=1597744591 host=38.81.163.143 name=Openbsd.Opensmtpd-relay rev=1 targets= text=Inside the sender's /etc/mail/smtpd.conf:%0a%0a[@%0atable aliases file:/etc/mail/aliases%0atable secrets file:/etc/mail/secrets%0a%0alisten on lo0%0a%0aaction "local_mail" mbox alias %3caliases>%0aaction "outbound" relay host smtp+tls://support@ircnow.org:587 \%0aauth %3csecrets>%0a%0amatch for local action "local_mail"%0amatch for any action "outbound"%0a@]%0a%0aInside /etc/mail/secrets:%0a[@%0asupport support@ircnow.org:PASSWORD%0a@]%0a%0a**Note**: You must include the full domain in the username (it may even be necessary to restart opensmtpd) or else you may get an 535 Authentication failed error.%0a%0aInside the mail relay's /etc/mail/smtpd.conf:%0a%0a[@%0apki mail.ircnow.org cert "/etc/ssl/ircnow.org.fullchain.pem"%0apki mail.ircnow.org key "/etc/ssl/private/ircnow.org.key"%0a%0a# tables setup%0atable aliases file:/etc/mail/aliases%0atable domains file:/etc/mail/domains%0atable passwd passwd:/etc/mail/passwd%0atable virtuals file:/etc/mail/virtuals%0atable hosts file:/etc/mail/hosts%0a%0alisten on lo0 mask-src%0alisten on lo0 port 10028 tag DKIM mask-src%0alisten on egress port 25 tls pki mail.ircnow.org mask-src%0alisten on egress port 587 tls-require pki mail.ircnow.org auth %3cpasswd> mask-src %0aaction "lmtp" lmtp "/var/dovecot/lmtp" rcpt-to virtual %3cvirtuals>%0aaction "relay" relay%0aaction "relay_dkim" relay host smtp://127.0.0.1:10027%0a%0amatch from any for domain %3cdomains> action "lmtp"%0amatch tag DKIM for any action "relay"%0amatch from src %3chosts> for any action "relay_dkim"%0amatch auth from any for any action "relay_dkim"%0a@]%0a%0a**Note**: If you are getting 421 4.3.0 Temporary Error and the following message when you run # smtpd -dv -T all:%0a%0aimsg: pony %3c- queue: IMSG_SMTP_MESSAGE_CREATE (len=12)%0asmtp: >>> 421 4.3.0 Temporary Error%0a%0aThis means smtpd has failed to create the directory or file holding the message. It is a permissions error that can probably be solved by doing this:%0a%0a[@%0a# rcctl stop smtpd%0a# rm -r /var/spool/smtpd%0a# rcctl start smtpd%0a@]%0a time=1597744591 author:1597744591=jrmu diff:1597744591:1597744591:=1,62d0%0a%3c Inside the sender's /etc/mail/smtpd.conf:%0a%3c %0a%3c [@%0a%3c table aliases file:/etc/mail/aliases%0a%3c table secrets file:/etc/mail/secrets%0a%3c %0a%3c listen on lo0%0a%3c %0a%3c action "local_mail" mbox alias %3caliases>%0a%3c action "outbound" relay host smtp+tls://support@ircnow.org:587 \%0a%3c auth %3csecrets>%0a%3c %0a%3c match for local action "local_mail"%0a%3c match for any action "outbound"%0a%3c @]%0a%3c %0a%3c Inside /etc/mail/secrets:%0a%3c [@%0a%3c support support@ircnow.org:PASSWORD%0a%3c @]%0a%3c %0a%3c **Note**: You must include the full domain in the username (it may even be necessary to restart opensmtpd) or else you may get an 535 Authentication failed error.%0a%3c %0a%3c Inside the mail relay's /etc/mail/smtpd.conf:%0a%3c %0a%3c [@%0a%3c pki mail.ircnow.org cert "/etc/ssl/ircnow.org.fullchain.pem"%0a%3c pki mail.ircnow.org key "/etc/ssl/private/ircnow.org.key"%0a%3c %0a%3c # tables setup%0a%3c table aliases file:/etc/mail/aliases%0a%3c table domains file:/etc/mail/domains%0a%3c table passwd passwd:/etc/mail/passwd%0a%3c table virtuals file:/etc/mail/virtuals%0a%3c table hosts file:/etc/mail/hosts%0a%3c %0a%3c listen on lo0 mask-src%0a%3c listen on lo0 port 10028 tag DKIM mask-src%0a%3c listen on egress port 25 tls pki mail.ircnow.org mask-src%0a%3c listen on egress port 587 tls-require pki mail.ircnow.org auth %3cpasswd> mask-src %0a%3c action "lmtp" lmtp "/var/dovecot/lmtp" rcpt-to virtual %3cvirtuals>%0a%3c action "relay" relay%0a%3c action "relay_dkim" relay host smtp://127.0.0.1:10027%0a%3c %0a%3c match from any for domain %3cdomains> action "lmtp"%0a%3c match tag DKIM for any action "relay"%0a%3c match from src %3chosts> for any action "relay_dkim"%0a%3c match auth from any for any action "relay_dkim"%0a%3c @]%0a%3c %0a%3c **Note**: If you are getting 421 4.3.0 Temporary Error and the following message when you run # smtpd -dv -T all:%0a%3c %0a%3c imsg: pony %3c- queue: IMSG_SMTP_MESSAGE_CREATE (len=12)%0a%3c smtp: >>> 421 4.3.0 Temporary Error%0a%3c %0a%3c This means smtpd has failed to create the directory or file holding the message. It is a permissions error that can probably be solved by doing this:%0a%3c %0a%3c [@%0a%3c # rcctl stop smtpd%0a%3c # rm -r /var/spool/smtpd%0a%3c # rcctl start smtpd%0a%3c @]%0a host:1597744591=38.81.163.143