report a bug |  advanced search |  statistics |  developer log in/out
Doc Bug #27 README.postfix needlessly complicated
Submitted: 2011-04-14 12:48 UTC Modified: 2012-01-30 14:29 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: bruno at defraine dot net Assigned: maintainer at mlmmj dot org
Status: Closed
Mlmmj Version: 1.2.17 OS: Linux
MTA: Postfix MTA Version: 2.7.1
View Add Comment Developer Edit
You must login as a developer to do anything here. You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
 [2011-04-14 12:48 UTC] bruno at defraine dot net
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.