mailman
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
mailman [2022/07/19 20:13] – external edit 127.0.0.1 | mailman [2022/07/24 15:56] (current) – admin | ||
---|---|---|---|
Line 5: | Line 5: | ||
===== 1. Install Mailman & required Apps ===== | ===== 1. Install Mailman & required Apps ===== | ||
+ | < | ||
| | ||
- | | + | |
- | | + | |
+ | </ | ||
Accept the languages you require, and complete the install. The install will instruct you to run " | Accept the languages you require, and complete the install. The install will instruct you to run " | ||
===== 2. Configure Mailman ===== | ===== 2. Configure Mailman ===== | ||
+ | < | ||
vi / | vi / | ||
| | ||
| | ||
+ | </ | ||
===== 3. Setup initial Mailman list ===== | ===== 3. Setup initial Mailman list ===== | ||
+ | < | ||
| | ||
+ | </ | ||
- | After specifying an email, full name and password, it will instruct you to insert the following lines into /etc/alias | + | After specifying an email, full name and password, it will instruct you to insert the following lines into |
+ | < | ||
## mailman mailing list | ## mailman mailing list | ||
| | ||
Line 25: | Line 32: | ||
etc. etc. etc. etc. The full list will be outputted by the newlist mailman script run previously. | etc. etc. etc. etc. The full list will be outputted by the newlist mailman script run previously. | ||
- | | + | |
/ | / | ||
- | ps -eaf < | + | ps -eaf #to view all the mailman processes. |
+ | </ | ||
===== 4. Configure Apache2 for Mailman ===== | ===== 4. Configure Apache2 for Mailman ===== | ||
Mailman did not automatically configure apache2 for me. It did however place the relevant apache2.conf in / | Mailman did not automatically configure apache2 for me. It did however place the relevant apache2.conf in / | ||
+ | < | ||
| | ||
Alias /pipermail/ / | Alias /pipermail/ / | ||
Line 64: | Line 73: | ||
#All other lines are commented out. | #All other lines are commented out. | ||
</ | </ | ||
+ | </ | ||
Heading to the URL http:// | Heading to the URL http:// | ||
Line 69: | Line 79: | ||
===== 5. DNS Config for Mailman Server ===== | ===== 5. DNS Config for Mailman Server ===== | ||
There are two DNS entries for lists.server.com. 1 is the mx (mail record) and the second is a A record. On the server running bind, the following additions were made: | There are two DNS entries for lists.server.com. 1 is the mx (mail record) and the second is a A record. On the server running bind, the following additions were made: | ||
+ | < | ||
;Main Domains | ;Main Domains | ||
Line 75: | Line 86: | ||
;Main Sub Mail Domains | ;Main Sub Mail Domains | ||
| | ||
+ | </ | ||
Note: My initial zone file was incorrect! The Sub Main Domain will only work if all is configured correctly. Take a look at [[DNS_-_Bind9]] to find out more on DNS and bind configuration. Make sure to restart bind. | Note: My initial zone file was incorrect! The Sub Main Domain will only work if all is configured correctly. Take a look at [[DNS_-_Bind9]] to find out more on DNS and bind configuration. Make sure to restart bind. | ||
The tools used to check that the mx for lists.server.com was correct were: | The tools used to check that the mx for lists.server.com was correct were: | ||
+ | < | ||
dig -t mx lists.server.com | dig -t mx lists.server.com | ||
Line 86: | Line 99: | ||
| | ||
+ | </ | ||
If dns is correct, then apache should serve out http:// | If dns is correct, then apache should serve out http:// | ||
+ | < | ||
| | ||
root at lists.server.com | root at lists.server.com | ||
and see if they get through. Fingers crossed and they should. | and see if they get through. Fingers crossed and they should. | ||
+ | </ | ||
===== 6. Login into Mailman Admin via Web ===== | ===== 6. Login into Mailman Admin via Web ===== | ||
| | ||
+ | |||
Login with the password initially used to run newlist mailman. It also should have been emailed to you. Approve the emails if they made it through, and then view the Archives to see if the email comes through. | Login with the password initially used to run newlist mailman. It also should have been emailed to you. Approve the emails if they made it through, and then view the Archives to see if the email comes through. | ||
===== 7. Configure postfix on server.com ===== | ===== 7. Configure postfix on server.com ===== | ||
This problem only affected postfix when sending emails from server.com to lists.server.com When sending emails via postfix and smtpd, it picked up the mx/mail server as been server.com instead of going off to lists.server.com. So somehow postfix was not looking up subdomains or wouldnt send emails to subdomains. The line required to fix this in / | This problem only affected postfix when sending emails from server.com to lists.server.com When sending emails via postfix and smtpd, it picked up the mx/mail server as been server.com instead of going off to lists.server.com. So somehow postfix was not looking up subdomains or wouldnt send emails to subdomains. The line required to fix this in / | ||
+ | < | ||
| | ||
+ | </ | ||
This solved the problem, with the help of http:// | This solved the problem, with the help of http:// | ||
Line 103: | Line 122: | ||
===== 8. Delete Posts from Mailman Archive ===== | ===== 8. Delete Posts from Mailman Archive ===== | ||
The location of mailman archives may change, but the method is the exact same. | The location of mailman archives may change, but the method is the exact same. | ||
+ | < | ||
cd / | cd / | ||
cd private | cd private | ||
+ | </ | ||
Private should be the source, and public is a folder with symbolic links coming out of private. Therefore if private is edited/ | Private should be the source, and public is a folder with symbolic links coming out of private. Therefore if private is edited/ | ||
+ | < | ||
cd listname.mbox | cd listname.mbox | ||
vi listname.mbox | vi listname.mbox | ||
- | < | + | #delete the entry manually. Each message/ |
cd / | cd / | ||
- | mv listname listnameold | + | mv listname listnameold |
cd / | cd / | ||
- | | + | |
+ | </ | ||
Go back into the archives via the web and all should be ok. More info on deleteing entries at: http:// | Go back into the archives via the web and all should be ok. More info on deleteing entries at: http:// | ||
Line 119: | Line 142: | ||
More Information at (not really needed): | More Information at (not really needed): | ||
- | http:// | + | * http:// |
- | + | | |
- | http:// | + | |
===== Admin Mailman via the command line ===== | ===== Admin Mailman via the command line ===== | ||
So I didn't know the mailman admin password for the front end, and I didn't want to change it to lock out the other admin. I wanted to add an Admin to a list. | So I didn't know the mailman admin password for the front end, and I didn't want to change it to lock out the other admin. I wanted to add an Admin to a list. | ||
+ | < | ||
vi mman | vi mman | ||
Line 131: | Line 154: | ||
| | ||
Done. | Done. | ||
+ | </ | ||
There are a lot of other options available. See: | There are a lot of other options available. See: | ||
- | http:// | + | * http:// |
- | http:// | + | |
- | http:// | + | |
mailman.txt · Last modified: 2022/07/24 15:56 by admin