
**System Key Data** OS: Debian 12 mailman: GNU Mailman 3.3.10 (Tom Sawyer) Python: Python 3.11.2 (main, Nov 30 2024, 21:22:50) [GCC 12.2.0] Method: Python Virtual Environment Installation
Ahoi,
i am trying to configure a mailman3 instance to replace a mailman2 installation (both on different hosts). The mm3 instance is actually not reachable (Incoming) but can send (Outgoing), as is the desired state to be (we intend to swap IPs during change of systems).
A. Verify Incoming
To verify that emails send to the MTA (postfix) get properly handled and handed over to the mm3-instance i tried to substitute incoming email by
a) swaks utility [1] (fail) b) telnet utility [2] (fail) c) command ''mailman inject'' [3] (success)
With c) i copied a former generate testmail-file to the mm3-host and injected it directly to my testlist (leaving out the MTA).
With a) and b) i tried to hand over a testmail via CLI to the MTA (postfix) what resulted in the error:
"Recipient address rejected: User unknown in local recipient table"
B. /etc/postfix/main.cfg
A search in mailman-users@mailman3.org archives [4] pointed me to the configuration of postfix as MTA [5], especially settings with the 'local_recipients_maps' parameter that should be set like [5]:
local_recipient_maps = proxy:unix:passwd.byname $alias_maps hash:/path-to-mailman/var/data/postfix_lmtp
what i did / already had done.
C. aliasing, restarting services and test without ,
I then restarted postfix, rebuilt the postfix aliases (command ''newaliases'') and rebuilt the mailman aliases (command ''mailman aliases''), even tried with space-separation instead of coma-separation [6], testet again with same result.
D. empty /opt/mailman/mm/var/data/postfix_lmtp
and then i just found out that my postfix_lmpt file was empty (that i believe to be the the place from where the hastables take their input).
Questions:
- could somebody suggest a way, an entry should occur in postfix_lmtp?
- What would be the appropriate order to manually generate aliases? first: postfix-command ''newaliases'' and second: mailman-command ''mailman aliases'' or reverse?
- finding traces [7] of a file called postfix.cfg i can't find it (anymore) in the official installation instructions. Is that file (still?) necessary regarding: 3.1 parameter for default lookup table type 3.2 pointing to command ''postmap''
- to what user should the command ''postmap'' be available [8]?
Any pointer to manuals or examples i may have missed or ideas on any of those 4 questions would be greatly appreciated.
lg alexander
Sources:
[1] swaks utility
https://jetmore.org/john/code/swaks/
[2] telnet utility
https://de.wikipedia.org/wiki/Telnet
[3] command ''mailman inject''
https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/commands/do...
[4] search mailman-users@mailman3.org archives 'user unknown in local recipient table'
[5] docs mm3: 'Hooking up your mail server'
https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/docs/mta.ht...
[6] docs postfix: local_recipient_maps
https://www.postfix.org/postconf.5.html#local_recipient_maps
[7] traces of postfix.cfg
- https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/thread/J...
- https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/docs/NEWS.h...
[8] docs mm3: transport maps (regarding command ''postmap'')
https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/docs/mta.ht...