Re: [mlmmj] mlmmj error: "Have to invoke either as root or as the user owning listdir"
Franky Van Liedekerke <[email protected]> Sat, 20 May 2023 15:11:46 +0000
| Newsgroups | org.mlmmj.mlmmj |
|---|---|
| Message-ID | <[email protected]> |
For postfix, a small howto:
1) make sure the files/dirs are owned by the user mlmmj, and then in
/etc/postfix/master.cf, create the transport (here called "mlmmj") to
run as that specific user mlmmj:
mlmmj unix - n n - - pipe
flags=ORhu user=mlmmj argv=/usr/bin/mlmmj-receive -F -L
/var/spool/mlmmj/${nexthop}
2) After that, in /etc/postfix/virtual, create an alias for your
mailinglist (here "my.list@mylist-domain") to point to a local delivery:
my.list@mylist-domain [email protected]
3) And then in /etc/postfix/transport, point that alias to use the
transport ("myreallistname" is the directory under /var/spool/mlmmj for
your list, it is used as $nexthop in the mlmmj-transport definition above ):
[email protected] mlmmj:myreallistname
4) Don't forget to run 'postmap' on the files /etc/postfix/virtual and
/etc/postfix/transport and make sure your postfix uses them in
/etc/postfix/main.cf, together with your list domain:
virtual_mailbox_domains = mylist-domain
virtual_alias_maps = hash:/etc/postfix/virtual
transport_maps = hash:/etc/postfix/transport
5) postfix reload and off you go :-)
Franky
On 5/20/23 15:54, Eric J.P.E. Davanture wrote:
>
> Greetings,
>
> I just installed mlmmj on SuSE Linux Enterprise Server 15 SP4 running
> a mail server thanks to postfix and dovecot.
>
> I can create a mailing list and subscribe my e-mail with mlmmj-sub
> without any problem.
>
> When I get the e-mail from mlmmj, I send the answer accepting the
> subscription but get a new e-mail in return from mlmmj sying:
>
> _Subject: Undelivered Mail Returned to Sender _
>
> This is the mail system at host <MY_SERVER>.
>
> I'm sorry to have to inform you that your message could not
> be delivered to one or more recipients. It's attached below.
>
> For further assistance, please send mail to postmaster.
>
> If you do so, please include this problem report. You can
> delete your own text from the attached returned message.
>
> The mail system
>
> <mlmmj_list_1_dav+confsub-55f8b4567a40e8c8-eric.davanture=orange.fr@MY_DOMAIN.com>:
> Command died with status 1: "/usr/bin/mlmmj-receive -L
> /var/vmail/mlmmj/mlmmj_list_1_DAV/". Command output: Have to invoke either
> as root or as the user owning listdir
> I am blocked here and can't reach finding what the problem could be.
> Any help will be greatly appreciated.
> Thanks a lot by now.
>
> --
> Librement vôtre / Libremente suyo / Freely yours,
> *Eric J.P.E. Davanture - [email protected]
> *
> _Approximate location:_ Planet Earth < Solar System < Milky Way Galaxy
> < Local Group < Virgo Cluster < Laniakea Supercluster < known Universe
> (https://youtu.be/P6cw5Yv-zqU)
> *There is NO CLOUD, just other people's computers !*
For postfix, a small howto:
1) make sure the files/dirs are owned by the user mlmmj, and then
in /etc/postfix/master.cf, create the transport (here called
"mlmmj") to run as that specific user mlmmj:
mlmmj unix - n n - - pipe
flags=ORhu user=mlmmj argv=/usr/bin/mlmmj-receive -F -L
/var/spool/mlmmj/${nexthop}
2) After that, in /etc/postfix/virtual, create an alias for your
mailinglist (here "my.list@mylist-domain") to point to a local
delivery:
my.list@mylist-domain [email protected]
3) And then in /etc/postfix/transport, point that alias to use
the transport ("myreallistname" is the directory under
/var/spool/mlmmj for your list, it is used as $nexthop in the
mlmmj-transport definition above ):
[email protected] mlmmj:myreallistname
4) Don't forget to run 'postmap' on the files
/etc/postfix/virtual and /etc/postfix/transport and make sure your
postfix uses them in /etc/postfix/main.cf, together with your list
domain:
virtual_mailbox_domains = mylist-domain
virtual_alias_maps = hash:/etc/postfix/virtual
transport_maps = hash:/etc/postfix/transport
5) postfix reload and off you go :-)
Franky
On 5/20/23 15:54, Eric J.P.E. Davanture
wrote:
Greetings,
I just installed mlmmj on SuSE Linux Enterprise Server 15 SP4
running a mail server thanks to postfix and dovecot.
I can create a mailing list and subscribe my e-mail with
mlmmj-sub without any problem.
When I get the e-mail from mlmmj, I send the answer accepting
the subscription but get a new e-mail in return from mlmmj
sying:
Subject: Undelivered Mail Returned to Sender
This is the mail system at host <MY_SERVER>.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system
<mlmmj_list_1_dav+confsub-55f8b4567a40e8c8-eric.davanture=orange.fr@MY_DOMAIN.com> :
Command died with status 1: "/usr/bin/mlmmj-receive -L
/var/vmail/mlmmj/mlmmj_list_1_DAV/". Command output: Have to invoke either
as root or as the user owning listdir
I am blocked here and can't reach
finding what the problem could be.
Any help will be greatly appreciated.
Thanks a lot by now.
--
Librement vôtre / Libremente suyo / Freely yours,
Eric J.P.E. Davanture - [email protected]
Approximate location: Planet Earth < Solar System <
Milky Way Galaxy < Local Group < Virgo Cluster <
Laniakea Supercluster < known Universe ( https://youtu.be/P6cw5Yv-zqU )
There is NO CLOUD, just other people's computers !