Mailman + postfix automatically adding aliases
I'm setting up a new CentOS8 mailman server to take over from our ancient existing one, and have run into some issues trying to get it working.
I installed mailman from source, following the directions here:
https://wiki.list.org/DOC/How%20do%20I%20upgrade%20a%20RHEL/CentOS%20Mailman....
I'm at: https://www.gnu.org/software/mailman/mailman-install/postfix-integration.htm...
Run the bin/genaliases script to initialize your aliases file. % cd /usr/local/mailman % bin/genaliases
But when I do this I get the following. Am I supposed to create these data/aliases files manually? Where are they supposed to go? There is no data/ directory in /usr/lib/mailman and /var/lib/mailman has a data directory but nothing inside named aliases
[root@dhbmailman2 mailman]# bin/genaliases To finish creating your mailing list, you must edit your /etc/aliases (or equivalent) file by adding the following lines, and possibly running the `newaliases' program:
## newserver_test mailing list newserver_test: "|/usr/lib/mailman/mail/mailman post newserver_test" newserver_test-admin: "|/usr/lib/mailman/mail/mailman admin newserver_test" newserver_test-bounces: "|/usr/lib/mailman/mail/mailman bounces newserver_test" newserver_test-confirm: "|/usr/lib/mailman/mail/mailman confirm newserver_test" newserver_test-join: "|/usr/lib/mailman/mail/mailman join newserver_test" newserver_test-leave: "|/usr/lib/mailman/mail/mailman leave newserver_test" newserver_test-owner: "|/usr/lib/mailman/mail/mailman owner newserver_test" newserver_test-request: "|/usr/lib/mailman/mail/mailman request newserver_test" newserver_test-subscribe: "|/usr/lib/mailman/mail/mailman subscribe newserver_test" newserver_test-unsubscribe: "|/usr/lib/mailman/mail/mailman unsubscribe newserver_test"
## mailman mailing list mailman: "|/usr/lib/mailman/mail/mailman post mailman" mailman-admin: "|/usr/lib/mailman/mail/mailman admin mailman" mailman-bounces: "|/usr/lib/mailman/mail/mailman bounces mailman" mailman-confirm: "|/usr/lib/mailman/mail/mailman confirm mailman" mailman-join: "|/usr/lib/mailman/mail/mailman join mailman" mailman-leave: "|/usr/lib/mailman/mail/mailman leave mailman" mailman-owner: "|/usr/lib/mailman/mail/mailman owner mailman" mailman-request: "|/usr/lib/mailman/mail/mailman request mailman" mailman-subscribe: "|/usr/lib/mailman/mail/mailman subscribe mailman" mailman-unsubscribe: "|/usr/lib/mailman/mail/mailman unsubscribe mailman"
-- Bruce Johnson University of Arizona College of Pharmacy Information Technology Group
Institutions do not have opinions, merely customs
On Aug 30, 2021, at 2:02 PM, Bruce Johnson via Mailman-Users <mailman-users@python.org<mailto:mailman-users@python.org>> wrote:
I'm setting up a new CentOS8 mailman server to take over from our ancient existing one, and have run into some issues trying to get it working.
I installed mailman from source, following the directions here:
https://wiki.list.org/DOC/How%20do%20I%20upgrade%20a%20RHEL/CentOS%20Mailman....
I'm at: https://www.gnu.org/software/mailman/mailman-install/postfix-integration.htm...
Run the bin/genaliases script to initialize your aliases file. % cd /usr/local/mailman % bin/genaliases
But when I do this I get the following. Am I supposed to create these data/aliases files manually? Where are they supposed to go? There is no data/ directory in /usr/lib/mailman and /var/lib/mailman has a data directory but nothing inside named aliases
[Emily Latella ]”Never mind!”[/EL]
I forgot to restart mailman after making the changes to the mailman config file.
-- Bruce Johnson University of Arizona College of Pharmacy Information Technology Group
Institutions do not have opinions, merely customs
-------- Original Message -------- From: Bruce Johnson via Mailman-Users [mailto:mailman-users@python.org] Sent: Monday, August 30, 2021, 21:02 UTC To: mailman-users@python.org Subject: [Mailman-Users] Mailman + postfix automatically adding aliases
But when I do this I get the following. Am I supposed to create these data/aliases files manually? Where are they supposed to go? There is no data/ directory in /usr/lib/mailman and /var/lib/mailman has a data directory but nothing inside named aliases
[root@dhbmailman2 mailman]# bin/genaliases To finish creating your mailing list, you must edit your /etc/aliases (or equivalent) file by adding the following lines, and possibly running the `newaliases' program:
## newserver_test mailing list newserver_test: "|/usr/lib/mailman/mail/mailman post newserver_test" newserver_test-admin: "|/usr/lib/mailman/mail/mailman admin newserver_test" newserver_test-bounces: "|/usr/lib/mailman/mail/mailman bounces newserver_test" newserver_test-confirm: "|/usr/lib/mailman/mail/mailman confirm newserver_test" newserver_test-join: "|/usr/lib/mailman/mail/mailman join newserver_test" newserver_test-leave: "|/usr/lib/mailman/mail/mailman leave newserver_test" newserver_test-owner: "|/usr/lib/mailman/mail/mailman owner newserver_test" newserver_test-request: "|/usr/lib/mailman/mail/mailman request newserver_test" newserver_test-subscribe: "|/usr/lib/mailman/mail/mailman subscribe newserver_test" newserver_test-unsubscribe: "|/usr/lib/mailman/mail/mailman unsubscribe newserver_test"
## mailman mailing list mailman: "|/usr/lib/mailman/mail/mailman post mailman" mailman-admin: "|/usr/lib/mailman/mail/mailman admin mailman" mailman-bounces: "|/usr/lib/mailman/mail/mailman bounces mailman" mailman-confirm: "|/usr/lib/mailman/mail/mailman confirm mailman" mailman-join: "|/usr/lib/mailman/mail/mailman join mailman" mailman-leave: "|/usr/lib/mailman/mail/mailman leave mailman" mailman-owner: "|/usr/lib/mailman/mail/mailman owner mailman" mailman-request: "|/usr/lib/mailman/mail/mailman request mailman" mailman-subscribe: "|/usr/lib/mailman/mail/mailman subscribe mailman" mailman-unsubscribe: "|/usr/lib/mailman/mail/mailman unsubscribe mailman"
The usual thing is to copy and paste that into the /etc/aliases file each time you create a list, then run "newaliases" and "postfix reload".
# nano /etc/aliases # newaliases # postfix reload
On 8/30/21 2:02 PM, Bruce Johnson via Mailman-Users wrote:
I'm setting up a new CentOS8 mailman server to take over from our ancient existing one, and have run into some issues trying to get it working.
I installed mailman from source, following the directions here:
https://wiki.list.org/DOC/How%20do%20I%20upgrade%20a%20RHEL/CentOS%20Mailman....
I'm at: https://www.gnu.org/software/mailman/mailman-install/postfix-integration.htm...
Run the bin/genaliases script to initialize your aliases file. % cd /usr/local/mailman % bin/genaliases
But when I do this I get the following. Am I supposed to create these data/aliases files manually? Where are they supposed to go? There is no data/ directory in /usr/lib/mailman and /var/lib/mailman has a data directory but nothing inside named aliases
First set
MTA = 'Postfix'
in mm_cfg.py. Then when you run genaliases the aliases will be created in Mailman's data/aliases file which you reference in Postfix main.cf.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (3)
-
Bruce Johnson
-
Mark Dale
-
Mark Sapiro