I have setup a zulip server as well an opensmtpd server in my intranet. With the opensmtpd server being in a FreeBSD Jail and the zulip server being in a debian bookworm bhyve guest.
I know the opensmpt server is working properly, as have login in with my an email client an successfully send mail from an account to another account in the mail server.
Now the Zulip server is failing to send emails to the other account in the mail server, and is spamming the logs with:
The opensmtpd server has this `smtpd.conf`:
Based as my entire mail server setup in this article .
I know the opensmpt server is working properly, as have login in with my an email client an successfully send mail from an account to another account in the mail server.
Now the Zulip server is failing to send emails to the other account in the mail server, and is spamming the logs with:
Code:
2024-10-06 06:48:49.833 WARN [zerver.management.commands.deliver_scheduled_emails] <ScheduledEmail: 1 [<UserProfile: user1@example.com <Realm: 2>>] 2024-10-06 06:47:11.204879+00:00> not delivered
2024-10-06 06:48:49.859 INFO [zulip.send_email] Sending account_registered email to ['Some Name <user1@example.com>']
2024-10-06 06:48:49.864 ERR [zulip.send_email] Error sending account_registered email to ['Some Name <user1@example.com>']: SMTP AUTH extension not supported by server.
The opensmtpd server has this `smtpd.conf`:
Code:
table passwd passwd:/usr/local/etc/mail/passwd
table virtuals file:/usr/local/etc/mail/virtuals
pki mail.example.com cert "/usr/local/etc/letsencrypt/archive/mail.example.com/fullchain1.pem"
pki mail.example.com key "/usr/local/etc/letsencrypt/archive/mail.example.com/privkey1.pem"
filter check_dyndns phase connect match rdns regex { '.*\.dyn\..*', '.*\.dsl\..*' } \
disconnect "550 no residential connections - Thou shalt not pass"
filter check_rdns phase connect match !rdns \
disconnect "550 no rdns - Thou shalt not pass"
filter check_fcrdns phase connect match !fcrdns \
disconnect "550 no FCrDNS - Thou shalt not pass"
filter rspamd proc-exec "/usr/local/libexec/opensmtpd/opensmtpd-filter-rspamd"
listen on 0.0.0.0 tls pki mail.example.com \
filter { check_dyndns, check_rdns, check_fcrdns, rspamd } auth-optional <passwd>
listen on 0.0.0.0 port submission tls-require pki mail.example.com auth <passwd> filter rspamd mask-src
listen on 0.0.0.0 port 465 smtps pki mail.example.com auth <passwd> filter rspamd mask-src
action "local_mail" lmtp "/var/run/dovecot/lmtp" rcpt-to virtual <virtuals>
action "outbound" relay helo mail.example.com
match from any for domain example.com action "local_mail"
match for local action "local_mail"
match from any auth for any action "outbound"
match for any action "outbound"