Skip to content

Simple mailing list on Debian in 3 simple steps

E-mailFew days ago I launched simple low-traffic mailing list using naive /etc/aliases method, but got the following error: <> (expanded from <>): host[] said: 554 5.7.1 <>:= Recipient address rejected: Spf check: fail (in reply to RCPT TO command) If you think for a moment the reason for error it's obvious. My server tried to forward e-mail using original From checked TXT record (using SPF standard) for my server domain and noticed it's not allowed to send e-mails from me.

In order to make things work properly one have to rewrite envelope From field properly. Mailing list managers usually do that properly (/etc/aliases is not enough).

I wanted to make minimal and fast deployment of SMTP-only mail list manager. I selected smartlist because of it's simplicity. Firstly you have to install the software: # apt-get install smartlist Then you have to redirect two e-mail addresses: and to smartlist program (flist): # cat >>/etc/aliases <<EOF mylist: "|/var/list/.bin/flist mylist" mylist-request: "|/var/list/.bin/flist mylist-request" EOF newaliases After that anyone can subscribe to the list using

If you want to initially populate mailing list (the mailing list is closed for example) it's very easy: # su list $ cd cd /var/list/mylist $ cat >> dist <<EOF EOF