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