summarylogtreecommitdiffstats
path: root/ruby-mailcatcher.install
diff options
context:
space:
mode:
Diffstat (limited to 'ruby-mailcatcher.install')
-rw-r--r--ruby-mailcatcher.install11
1 files changed, 11 insertions, 0 deletions
diff --git a/ruby-mailcatcher.install b/ruby-mailcatcher.install
new file mode 100644
index 000000000000..b1cd3360d6cd
--- /dev/null
+++ b/ruby-mailcatcher.install
@@ -0,0 +1,11 @@
+post_install() {
+ echo ">>> Start mail catcher at boot by enabling the systemd service unit, mailcatcher.service. (The default SMTP and HTTP ports are 1025 and 1080, respectively.)"
+ echo ">>> Map port 25 (HTTP) and/or port 80 (SMTP) to mail catcher via socket actviation by using mailcatcher-smtp.socket and mailcatcher-http.socket."
+}
+
+pre_remote() {
+ for unit in mailcatcher{,.service,-{http,smtp}.socket}; do
+ systemctl --quiet is-active $unit && systemctl stop $unit
+ systemctl --quiet is-enabled $unit && systemctl disable $unit
+ done
+}