This post is a continuation of the my last post on the topic, “Howto: Sympa 6.1 on Ubuntu 16.04“. It should come as no surprise that this is about installing Sympa on the most recent version of Ubuntu to get the most recent version of Sympa (at the time of this writing). That’d be Sympa 6.2.16 and Ubuntu 17.04. The steps only vary a little between between the two, but here’s the all them for completeness.
Like the last post, this one assumes you have root on your box. It assumes you have Apache2 installed. It assumes you’re running a stock Ubuntu 17.04 install. It assumes you want to run Sympa on your server. It also assumes you’ll be using Postfix as the lists MTA. It assumes you have a DNS entry (A record) for the server. As well it assumes you also have an MX record pointing to the A record or no MX record so the MX defaults to the A record. If this doesn’t apply to you, caveat emptor!
To recap, that’s:
- Apache 2 installed and working
- Postfix as MTA
- Ubuntu 17.04 server
- Existing DNS entry
- Run all commands as root
I also was using this server solely to serve Sympa mail and web traffic so if you have a multi-tenant/multi-use server, it may be more complicated.
These steps assume you’re going to install Sympa on list.example.com. There’s no reason you couldn’t use example.com instead. Your zero step should be
sudo apt-get update&& sudo apt-get upgrade.
- First step is to install Sympa. As well, we’ll install some packages that are used to fix a bug in 6.2’s GUI where the drop down nav menus don’t work:
- When prompted during this install:
- Choose a good mysql root password and enter it when prompted
- Please select the mail server configuration type that best meets your needs: Internet Site
- System mail name: list.example.com
- Which Web Server(s) are you running?: apache 2
- Configure database for sympa with dbconfig-common?: Yes
- Database type to be used by sympa: mysql
- MySQL application password for sympa: <blank> (will assign random one)
- Now it’s time to fix that css bug in 6.2 with a copy:
And then edit
/etc/sympa/sympa/sympa.confto match the following values:
listmaster email@example.com,firstname.lastname@example.org domain list.example.com wwsympa_url https://list.example.com/wws default_home home create_list intranet
The “intranet” value will prevent some one from signing up and requesting a list with any approval.
lists.example.com should show the sympa UI, w00t!
- Ensure Sympa starts at boot:
update-rc.d sympa defaults update-rc.d sympa enable
- ensure postfix is updated in
/etc/postfix/main.cfedit these values to match:
myhostname = list.example.com alias_maps = hash:/etc/aliases,hash:/etc/mail/sympa/aliases alias_database = hash:/etc/aliases,hash:/etc/mail/sympa/aliases mydestination = $myhostname, example.com, list.example.com, localhost.example.com, localhost relay_domains = $mydestination, list.example.com local_recipient_maps =
- add default aliases for sympa at the top of /etc/mail/sympa/aliases:
## main sympa aliases sympa: "| /usr/lib/sympa/bin/queue email@example.com" listmaster: "| /usr/lib/sympa/bin/queue firstname.lastname@example.org" bounce+*: "| /usr/lib/sympa/bin/bouncequeue email@example.com" sympa-request: firstname.lastname@example.org sympa-owner: email@example.com
- reboot and rebuild aliases:
Sympa should now be up and running at lists.example.com! All mail in and out should work so you can run your own list server. Please report any problems so I can keep this post updated and accurate – thanks!
How do you log in once it is up and running?
Thank you for this tutorial it is bounds and leaps better than sympa’s instructions!
Brian – Oh, you know, it’s been so long, I’ve forgotten! I think you use the “First login” option as documented here? Lemme know!
Otherwise, I’m happy to have helped you!
Great documentation Mr. Jones, Thanks. I have expanded a little on your documentation. It is available at https://drive.google.com/open?id=1G57PsUMHAUss4mrnUjyWq_rGDPuWSAyr8F9iHlnqSHs for anyone that is interested.
Chris – Awesome – thanks for sharing!
I’ve tried to find the revised document on the Google Drive. No such luck. Know where I may find it? -rad
Rad – Hopefully Chris will respond, but I do see that his Google Doc link doesn’t work any more – sorry :(
Yeah.. I moved the document. Updated link is below.
No worries. Actually – after 2 attempts – I’ve got the MLM server up and running. Now comes the part of customization. I will see about providing additional instructions such custom logos and graphics, etc., etc.
More to come… -rad
Rad & Chris – Sorry! I thought I had approved Chris’ comment with this google doc updated link, but just saw that I didn’t!
Rad – glad you got it up and running!
And comments are still wonky/giving errors sorry :(
mrjones & Chris – Thank you. Both of you have been a great help! -rad
Have any of you configured either DKIM or DMARC (or both)? -rad
P.S. I have been performing custom changes to the application; if any of you are interested, just reply here…
Gr33tz…have you or any of the members here installed DKIM and/or DMARC on your Sympa server? The online documentation seems to suck explaining this, or for that matter, providing any examples of what to-do. Thoughts? Anyone? Anyone? -rad
Bob – happy to host the discussion here, but it’s been a couple of years since I’ve been actively administering a Sympa instance, so I don’t have anything to add. Best of luck!