From 223d7d8efe850d36dfbf53622f1278ed7a03934b Mon Sep 17 00:00:00 2001 From: Rami Hovi Date: Thu, 27 Apr 2017 18:21:11 +0300 Subject: [PATCH] added configuration for Debian/Exim4 --- configuration/fetchmail.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/configuration/fetchmail.md b/configuration/fetchmail.md index 7d157de2..0bdd128e 100644 --- a/configuration/fetchmail.md +++ b/configuration/fetchmail.md @@ -23,7 +23,7 @@ Configuration Assuming you have more than one account (safe assumption these days), you need to spawn multiple fetchmail instances, one for each IMAP/POP3 server (though one instance can watch over several accounts on one server). The easiest way is to create template systemd unit and start it several times. Fedora does not supply any, so we have to write one anyway. -**NOTE:** this assumes you use [Postfix](/doc/postfix/) as your local MTA. +**NOTE:** this assumes you use [Postfix](/doc/postfix/) or Exim4 as your local MTA. In TemplateVM create `/etc/systemd/system/fetchmail@.service`: @@ -39,6 +39,20 @@ ExecStart=/bin/fetchmail -f /usr/local/etc/fetchmail/%I.rc -d 60 -i /usr/local/e RestartSec=1 ~~~ +Alternatively, in Debian with Exim4: + +~~~ +[Unit] +Description=Mail Retrieval Agent +After=network.target +Requires=exim4.service + +[Service] +User=user +ExecStart=/usr/bin/fetchmail -f /usr/local/etc/fetchmail/%I.rc -d 60 -i /usr/local/etc/fetchmail/.%I.fetchids --pidfile /usr/local/etc/fetchmail/.%I.pid +RestartSec=1 +~~~ + Then shutdown TemplateVM, start AppVM and create directory `/usr/local/etc/fetchmail`. In it, create one `.rc` file for each instance of fetchmail, ie. `personal1.rc` and `personal2.rc`. Sample configuration file: ~~~