[Unit]
Description=Pull mails from an IMAP mailbox and deliver them to an SMTP session (instance %i)
Documentation=man:pullimap(1)
Wants=network-online.target
After=network-online.target
[Service]
ExecStart=/usr/bin/pullimap --idle %i
RestartSec=2min
Restart=always
[Install]
WantedBy=default.target