
Am 30.04.25 um 15:36 schrieb Stephen J. Turnbull:
Did you set var_dir or layout in mailman.cfg? If not, you may have an alternate var_dir which is either the current directory when you start Mailman or possibly /var/tmp/mailman. That is also where "mailman aliases" will put the postfix aliases (in the "data" subdirectory).
It seems i set both *facepalm* while doing [1] and then adding changes according to [2]:
In mailman.cfg i have:
[paths.here] var_dir: /opt/mailman/mm/var
but also
[mailman] layout: local
also checking via mailman conf:
''mailman conf -s mailman | grep layout''
Output: [mailman] layout: local
''mailman conf -s | grep var_dir:''
Output:
[paths.dev] var_dir: $cfg_file/../.. [paths.fhs] var_dir: /var/lib/mailman [paths.here] var_dir: /opt/mailman/mm/var [paths.local] var_dir: /var/tmp/mailman
so i have empty logs at /opt/mailman/mm/var/logs and populated log files under /var/tmp/mailman/logs
If i recall correctly, setting layout: local is the suggested way to do for virtualenv install [2], so deleting
[paths.here] var_dir: /opt/mailman/mm/var
in mailman.cfg should be the next step (what i did).
Restarting my services gave me the warnings again, but these are (we remember) wrong paths (hash:/opt/mailman/mm/var/data/postfix_lmtp).
so i looked under /var/tmp/mailman/data and here we have populated files:
-rw-rw---- 1 mailman mailman 268K Feb 19 12:51 mailman.db -rw-rw---- 1 mailman mailman 377 Apr 30 18:01 postfix_domains -rw-r----- 1 mailman mailman 12K Apr 30 18:01 postfix_domains.db -rw-rw---- 1 mailman mailman 1.8K Apr 30 18:01 postfix_lmtp -rw-r----- 1 mailman mailman 12K Apr 30 18:01 postfix_lmtp.db
Now - before changing the /etc/postfix/main.cfg - there is the question that brings us almost back to the start:
With respect to [2]:
"If you are installing Mailman from source (or using Pip), it is recommended to use paths.local."
and [3]:
" transport_maps = hash:/opt/mailman/mm/var/data/postfix_lmtp local_recipient_maps = hash:/opt/mailman/mm/var/data/postfix_lmtp relay_domains = hash:/opt/mailman/mm/var/data/postfix_domains
[…]
local_recipient_maps = proxy:unix:passwd.byname $alias_maps hash:/path-to-mailman/var/data/postfix_lmtp "
**what is the recommended place to put the files to?**
I believe it to be /var/tmp/mailman/data according to
[mailman] layout: local
and that the above specific /opt/mailman -part is just a leftover from former times (the second and more generic part with /path-to-mailman indicates that to me).
If my assumption is correct i would create an issue + merge-request for the docs.
lg aiz