Simple mailing list with Exim4 in 1 minute
Create a directory where Exim4 archives your mailing list:
mkdir /var/exim4lists chown Debian-exim:Debian-exim /var/exim4lists # Check uid and gid of your Exim4-process.
Define delivery addresses for your mailing:
cat >>/etc/aliases <<EOF mylist: /var/exim4lists/mylist, bob, alice EOF
Write a simple filter file, which adds Reply-to: mylist@example.com -header:
cat >/etc/exim4/filter <<EOF # Exim filter if first_delivery and $header_to: is "mylist@example.com" then if $header_Reply-to: is not "" then # Save the original Reply-to -address. headers add "X-Original-Reply-to: $header_Reply-to:" endif headers remove "Reply-to" headers add "Reply-to: mylist@example.com\n" # Reply to the list by default. endif EOF
Tell Exim4 where the filter can be found and allow Exim4 to write to files by inserting the following lines into the main configuration settings in /etc/exim4/exim4.conf.template:
system_filter = /etc/exim4/filter SYSTEM_ALIASES_FILE_TRANSPORT = address_file
Update the configuration of your running Exim4-process(es):
invoke-rc.d exim4 restart