Description:
------------
Mlmmj needs Postfix to deliver mails to mlmmj-receive command using the mlmmj
user. This can be achieved using an aliases file which is owned by user mlmmj,
which seems much simpler than the approach proposed in README.postfix.
Test script:
---------------
Make Postfix to deliver mails to mlmmj-receive command running as the mlmmj user.
Expected result:
----------------
Under "Delivery rights" in http://www.postfix.org/local.8.html it says:
"Deliveries to external files and external commands are made with the rights of
the receiving user on whose behalf the delivery is made. In the absence of a
user context, the local(8) daemon uses the owner rights of the :include; file or
alias database."
This means that delivery as the user mlmmj could easily be realized as follows:
- Create a file aliases-mlmmj owned by user mlmmj
- Add a mailing list delivery line such as:
mlmmj-test: "|/usr/bin/mlmmj-recieve -L /var/spool/mlmmj/mlmmj-test/"
- Run as mlmmj: postalias /path/to/aliases-mlmmj
- In /etc/postfix/main.cf, make sure the aliases database is included:
alias_maps = hash:/etc/aliases, hash:/path/to/aliases-mlmmj
alias_database = hash:/etc/aliases, hash:/path/to/aliases-mlmmj
Done.
Actual result:
--------------
README.postfix claims it cannot be done using aliases (which is incorrect) and
then explains how to configure a custom mlmmj transport and how to deliver to it,
which is all very complex.