Vannia Rajan
February 12, 2013
Goal: to set up mailing lists - listname@subdomain.yourdomain.com
Resources Required / Assumptions:
Setup DNS records:
Create an MX record on the DNS manager of your domain, as follows:
Setup Exim 4 MTA:
To be able to run mailing lists, first, the server should be configured to receive incoming emails. An MTA should be installed & configured for the same. This particular process seems to be so automated & already there are a lot of tutorials explaining how to do that.
I followed https://www.unixmen.com/howto-install-exim4-mail-server-in-ubuntu-and-linuxmint/ for this and it worked (make sure to use the domain name, that was configured in the previous step). However, I had to make a few server alterations in addition to this as explained in the next step.
Server Configuration & Test Incoming Email:
Make these server changes:
After you're done with the above, restart the mail server: "sudo service exim4 restart" and try sending an email to {server-user-account}@{subdomain.yourdomain.com} - then SSH login to the server using the same user: {server-user-account} and type "mail" command - you should get a list of emails received for that user account. If this doesn't happen, something might have gone wrong - just go back and try following the steps closer. Once it works, move on to the mailman setup.
Gotcha: even without proceeding further to set up a mailman, you can run a simple mailing list. Simply edit /etc/aliases and use {list-name}: user1@example.com, user2@example.com -- of course, without {} and any emails sent to {list-name}@{subdomain.yourdomain.com} will automatically be forwarded to user1@example.com, user2@example.com, etc., -- but you won't get a nice administrative interface and people management from browser as in mailman.
Setup Mailman:
Just like Exim, Mailman is pretty much straightforward to set up. I followed https://www.grosseosterhues.com/2011/08/installation-of-mailman-in-ubuntu/ (including the tweaks to Exim config to merge Exim & mailman accounts) and in addition to that, I had to do two other steps to get the mailman setup fully working. Here are those:
If you encountered, that the mailman service is not configured there are no configured mailing lists contact our experts. If everything went well, you should now be running a mailing list on your own & it's ideal for small to medium size groups. We use it for our internal mailing lists at present. Let me know if you find any difficulties in getting your list set up.
Just like how your fellow techies do.
We'd love to talk about how we can work together
Take control of your AWS cloud costs that enables you to grow!