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