Just after getting cleaned in the bath, my son was going on and on about a book he read at school. Likely, “The Three Little Wolves and the Big Bad Pig“, but I could be wrong.
Anyway, at one point he said you should write “bad pig” all over your body. To which I mentally added, “and go on stage half naked to perform in your band titled,”:
I was chatting my buddy the other night and he mentioned something about some one and described them as,
super resting bitch face
My response was unsurprisingly, “awesome punk rock band name!” This post also helps me clear out my in box to get closer to inbox zero.
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
jquery-migrate-1.js file after
<script src="[% static_content_url %]/external/jquery.js"></script>
/etc/sympa/sympa/sympa.conf to match the following values:
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.cf edit 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
- add default aliases for sympa at the top of /etc/mail/sympa/aliases:
## main sympa aliases
sympa: "| /usr/lib/sympa/bin/queue firstname.lastname@example.org"
listmaster: "| /usr/lib/sympa/bin/queue email@example.com"
bounce+*: "| /usr/lib/sympa/bin/bouncequeue firstname.lastname@example.org"
- 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!