Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenSMTPd on OpenBSD : Integration with Current Syntax and Notes on OpenBSD #51

Open
sissieadmin opened this issue Mar 8, 2020 · 1 comment

Comments

@sissieadmin
Copy link

OpenSMTPd's Syntax has changed significantly since the documentation for Sympa was posted. The change to OpenSMTPd appeared on OpenBSD's release of 6.4, I haven't tracked down the OpenSMTPd version for this.

This took me longer than I'd like to admit, but I'm entirely new to Sympa. I have a basically working config for Current versions of OpenSMTPd integrated with Sympa. Much of the original documentation can be left alone, just the OpenSMTPd config sections needs this added for version:

listen on *

table sympa_domains file:/var/sympa/sympa_domains
table sympa db:/var/sympa/etc/sympa_domain_aliases.db

action "sympa_deliver"  maildir virtual <sympa>

match from any		for domain <sympa_domains> action "sympa_deliver"

The for 'domain' section is an added component since the old config on Sympa's documentation. This is also completely barebones, the "listen on" section can be narrowed to an IP or interface, and should be extended to use pki/tls, filters and proc-execs for rspamd and more. Refer to the original OpenSMTPd documentation for this, and Poolp's articles.

Some notes on OpenBSD that can be added somewhere in the documentation. This is all for the port installable via "pkg_add sympa":

$SYSCONFDIR = /var/sympa
$LIBEXECDIR = /usr/local/libexec/sympa/
Sympa.conf is stored in /var/sympa/sympa.conf

Hope this can be tweaked and added as needed, and that it helps someone else along.

@ikedas ikedas transferred this issue from sympa-community/sympa Mar 8, 2020
@jan0sch
Copy link

jan0sch commented Oct 25, 2023

I'll document my stuff from the mailing list here and also further findings.

My first guess was something like this but it doesn't work (resulting in "524 5.2.4 Mailing list expansion problem..." upon every try):

table sympa db:$SYSCONFDIR/sympa_domain_aliases.db
table lists db:$SENDMAIL_ALIASES.db
table sympa_domains { "mail.example.org" }
action "SYMPA-VIRTUAL" maildir alias <sympa>
action "SYMPA-LIST" maildir alias <lists>
match from any for rcpt-to <sympa> action "SYMPA-VIRTUAL"
match from any for rcpt-to <lists> action "SYMPA-LIST"
match from any for domain <sympa_domains> reject

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants