OpenSMTPD Relay Integration: Secure Mail Relay via smtpd.conf
Pitbull relay configuration on BSD-based OpenSMTPD: secure outbound routing with action relay via, TLS and auth secrets.
OpenSMTPD is a minimalist, security-focused MTA developed by the OpenBSD project. Its simple configuration syntax enables relay setup in minutes.
Why OpenSMTPD + Pitbull?
OpenSMTPD's built-in spam protection is limited. Pitbull relay integration adds centralized Rspamd filtering, quarantine and outbound abuse protection.
smtpd.conf Relay Configuration
table secrets file:/etc/mail/secrets
action "relay_pitbull" relay via smtp+tls://label@relay.pitbull.com.tr:587 auth <secrets>
match from local for any action "relay_pitbull"
match from src 192.168.0.0/16 for any action "relay_pitbull"Auth Secrets File
/etc/mail/secrets file:
label tenant@pitbull.com.tr:RELAY_TOKENInbound MX Gateway
Point DNS MX records to the Pitbull gateway. Inbound traffic passes through filters and is delivered clean to your OpenSMTPD server.
Conclusion
OpenSMTPD's simplicity combined with Pitbull's enterprise security layer provides both inbound and outbound protection.