loading...

OpenBSD mailing lists with OpenSMTPD

nabbisen profile image Heddi Nabbisen ・1 min read

OpenBSD mailing lists (4 Part Series)

1) OpenBSD mailing lists with OpenSMTPD 2) OpenBSD mailing lists with Mailman 3) Mailman: How to add subject prefix and count emails 4) Mailman: How to update subject prefix number (post id)

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, ... 

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"

and also /etc/mail/domains is like:

target.address
ml.address

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.

OpenBSD mailing lists (4 Part Series)

1) OpenBSD mailing lists with OpenSMTPD 2) OpenBSD mailing lists with Mailman 3) Mailman: How to add subject prefix and count emails 4) Mailman: How to update subject prefix number (post id)

Posted on Apr 16 '19 by:

nabbisen profile

Heddi Nabbisen

@nabbisen

An ICT designer/developer and a security monk. "With a cool brain and a warm heart", I am challenging unsolved problems in our society. I use OpenBSD/Rust/etc.

Discussion

markdown guide