Hello, 

as far as I'm concerned there is no configuration of OpenSMTPd for
mlmmj.

Them mlmmj-mailinglist is just another user on the (OpenBSD-) system.

I have something like this in my aliases(5), with
- example-info as a system user with a $HOME in which mlmmj is set up.
- example-admin is a mailbox read by a real person.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[email protected]             example-admin
[email protected]      example-info
[email protected] example-info
[email protected] example-info
[email protected]             example-admin
[email protected]        example-admin
[email protected]      example-admin
[email protected]       example-admin
[email protected]             example-admin
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

The system user example-info has a passwd(5) entry like this:

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
example-info:*************:4068:3002:mlists:0:0:\
        mailinglist:/home/mlist/example-info:/sbin/nologin
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

The $HOME directory /home/mlist/example-info is owned by example-info
and has a .forward(5) with this content:

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|/usr/local/bin/mlmmj-recieve -L /home/mlists/example-info
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Hope that helps a bit... 

Marcus

[email protected] (Jan Eden), 2026.01.18 (Sun) 17:36 (CET):
> Hi,
> 
> I know this topic has been mentioned on the list a couple of times over
> the years, but I cannot get the configuration to work. My current
> setup looks like this:
> 
> #/usr/local/etc/mail/lists
> [email protected] testing
> [email protected] testing
> 
> #/usr/local/etc/mail/smtpd.conf
> table mailing_lists file:/usr/local/etc/mail/lists
> action "mlmmj" mda "/usr/local/bin/mlmmj-receive -L 
> /var/spool/mlmmj/%{dest.user}/" virtual <mailing_lists>
> match from any for rcpt-to <mailing_lists> action "mlmmj"
> 
> The match directive comes first (before the tables for forwarding
> addresses and virtual mailboxes). I tried the action with and without
> the virtual part.
> 
> In any case, I get the following error for both addresses in the
> <mailing_lists> table:
> 
> msmtp: recipient address [email protected] not accepted by the server
> msmtp: server message: 550 Invalid recipient: <[email protected]>
> 
> Why does the lookup fail, and what would I need to change to forward the
> messages to mlmmj?
> 
> The mlmmj documentation states that "the mailinglist directory
> (/var/spool/mlmmj/mlmmj-test in our example) have to be owned by the
> user the mailserver writes as." The /var/spool/mlmmj dir and its
> subdirectories are currently owned by root, and not by _smtpd – could
> this be part of the problem?
> 
> Thanks,
> Jan

Reply via email to