1 2 3 4 5 6 7 8 9 10
[Unit] Description=Mailcatcher Service After=network.target [Service] ExecStart=/usr/bin/mailcatcher --ip localhost --http-port 1080 --smtp-port 1025 --foreground --verbose ExecStop=/usr/bin/curl --silent --get --request DELETE localhost:1080 [Install] WantedBy=multi-user.target