DEV Community

nabbisen
nabbisen

Posted on • Edited on • Originally published at obsd.solutions

OpenSMTPD 6.5: Mailing list

This post is about how to make maling lists in OpenBSD (whose current version is 6.5).

With OpenSMTPD (and Dovecot, optionally), this method is perhaps the simplest.

Add a line for the list to /etc/mail/users like:

 os_user@some.fqdn some_user ... noreply@some.fqdn nobody ... some-name@some.fqdn vmail ... + some@ml.address to1@target.address, to2@target.address, ... 
Enter fullscreen mode Exit fullscreen mode

where /etc/mail/smtpd.conf is:

table domains file:/etc/mail/domains table users file:/etc/mail/users listen on lo0 listen on egress \ tls pki <pki> \ auth-optional \ tag MTA action "local" maildir alias <aliases> action "domains" lmtp "/var/dovecot/lmtp" rcpt-to virtual <users> match tag MTA from any for domain <domains> action "domains" match from local for local action "local" 
Enter fullscreen mode Exit fullscreen mode

and also /etc/mail/domains is like:

target.address ml.address 
Enter fullscreen mode Exit fullscreen mode

Compliting the configuration, emails sent to "some@ml.address" are forwarded to "to1@target.address, to2@target.address, ..." directly.

Without any additional servers, it has no functionality such as editing subjects or bodies, but is perhaps the simplest.

Top comments (0)