Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tv42/eocmanage
The nicest way to run a lists.example.com with EoC and Postfix. Mostly of historical interest.
https://github.com/tv42/eocmanage
Last synced: 20 days ago
JSON representation
The nicest way to run a lists.example.com with EoC and Postfix. Mostly of historical interest.
- Host: GitHub
- URL: https://github.com/tv42/eocmanage
- Owner: tv42
- License: other
- Created: 2012-03-22T01:46:16.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-03-22T01:46:55.000Z (almost 13 years ago)
- Last Synced: 2024-10-16T02:08:00.440Z (2 months ago)
- Language: Python
- Homepage:
- Size: 246 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.postfix
- License: LICENSE
Awesome Lists containing this project
README
The nicest way to run a lists.example.com with EoC and Postfix
==============================================================This is the nicest way I have seen so far.
Development versions of eoc are able to take SENDER and RECIPIENT and
command line args, and have sane behaviour with --incoming without the
need for --is-list. When they are available for production use, the
extra shell script can be removed.Add a user and group "eoc" with home directory /var/lib/eoc. Create lists as that user.
$ sudo adduser --system --home /var/lib/eoc --gecos 'Mailing Lists' --group --disabled-password --disabled-login eoc
/etc/postfix/master.conf:
--8<--
eoc unix - n n - 2 pipe
flags=R user=eoc
argv=/usr/bin/eocmanage-deliver ${sender} ${recipient}
--8<--/etc/postfix/main.conf:
--8<--
eoc_destination_recipient_limit = 1
transport_maps = hash:/var/lib/eocmanage/postfix/transport,
pcre:/var/lib/eocmanage/postfix/transport.pcre
--8<--/var/lib/eocmanage/postfix/transport:
--8<--
lists.example.com eoc:@lists.example.com
--8<--/var/lib/eocmanage/postfix/transport.pcre:
--8<--
/^someprefix(-(foo|bar)?)@example\.com$/ eoc:[email protected]
--8<--sudo postmap /var/lib/eocmanage/postfix/transport
sudo /etc/init.d/postfix reload