May 30, 2005

 Creating Mailing Lists in Exim

You can create a mailing list in Exim that is aliased to a group name. If users send to that particular group name, all the members of that group will recieve an email. Should users reply to this email, it will be sent to all the users in that group as well.

This can be easily done by doing the following:

- create the directory: /usr/local/atmail/mailserver/lists
- in that directory, create a file under the group name that you want (i.e., foo-group), and have it contain email-addresses in the following format:

- add the following line in /usr/local/atmail/mailserver/configure, under the dnslookup router:

 driver = redirect
 domains =
 more = false
 file = /usr/local/atmail/mailserver/lists/$local_part

- where is the domain the groupname will be in.
- restart the @Mail services:

% /etc/init.d/atmailserver restart

This should then have Exim send emails to all the users in /usr/local/atmail/mailserver/lists/foo-group if the user is emailed. Should you want to add more users to the group, just edit the /usr/local/atmail/mailserver/lists/foo-group file.

Filed under: Exim — John Contad @ 7:49 am


  1. Also if the domain is not anywhere in the system (say this is strictly for mailing lists), make sure the domain is listed in domainlist local_domains

    domainlist local_domains = mysql;

    Comment by Dan — October 13, 2008 @ 2:48 pm
  2. Can you add this feature to atmail webadmin/subadmin?

    Comment by Carry Megens — February 13, 2009 @ 12:11 am
  3. These instructions BREAK Atmail 6. Any chance of getting an update?

    Comment by Mike Osbahr — November 19, 2009 @ 6:48 am
  4. Mike is correct, these instructions do not work for atmail version 6 – and will break incoming mail for everyone.

    Comment by Ben — January 24, 2010 @ 8:11 pm
  5. I hope this feature can be made to work in Atmail 6. It is very useful to us.

    Comment by George — June 11, 2010 @ 3:54 am
  6. You can get the same affect as the old style mailing list by using the Mail Alias feature in Atmail’s webadmin.

    1. create the list user in Atmail’s User Manager, e.g. create, this way all email sent to the list will be archived within this account.

    2. Go to Webadmin > Services > Mail Aliases

    3. Under “Alias Type” select the “deliver locally and alias” option

    4. In the “Local Email Address” field enter the address of the list account ( in my eg above)

    5. in the “Forward To” field add all the email addresses you wish to belong to the list (comma separated).

    To add or delete users at a later date you can either use the Mail Alias page again:

    To add a user to the already existing list:

    Alias Type = Local Alias
    Local Email Address = the address of your list
    Forward To = the email address you want to add to the list

    To Delete:

    just select the users you want to delete from the list in the UI and click “Delete Selected” button.

    Or you can add/delete directly via mysql:

    Add a user:

    mysql> insert into MailAliases (AliasName, AliasTo, DateCreate) values (‘$list’, ‘$email’, now());

    Where $list is the account name of your list ( in my eg) and $email is the email address of you want to add.

    To delete a user:

    mysql> delete from MailAliases where AliasName = ‘$list’ and AliasTo = ‘$email’;

    Where $list is the account name of your list ( in my eg) and $email is the email address of you want to delete.

    I hope this helps those using Atmail6 who want to use the mailing list feature.


    Comment by Brad — January 12, 2011 @ 9:20 pm

RSS feed for comments on this post. TrackBack URI

Leave a comment