From 98fe2726e55bb59075bacd2fbde8b04726e5764d Mon Sep 17 00:00:00 2001 From: Banana Date: Mon, 23 Jan 2023 12:52:08 +0100 Subject: [PATCH] =?utf8?q?added=20old=20trapmail=20script=C3=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bash/trapmail | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 bash/trapmail diff --git a/bash/trapmail b/bash/trapmail new file mode 100644 index 0000000..9c51dae --- /dev/null +++ b/bash/trapmail @@ -0,0 +1,15 @@ +# This program is free software: you can redistribute it and/or modify +# it under the terms of the COMMON DEVELOPMENT AND DISTRIBUTION LICENSE +# +# You should have received a copy of the +# COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 +# along with this program. If not, see http://www.sun.com/cddl/cddl.html +# +# 2023 http://www.bananas-playground.net +# +# Rewrite and trap mail locally if sendmail can be used. +# eg: sendmail_path = /path/to/trapmail in php.ini +# Needs procmail. formail command is part of it. +# Replace LOCALUSERNAME with your own. +# +formail -R cc X-original-cc -R to X-original-to -R bcc X-original-bcc -f -A"To: LOCALUSERNAME" | /usr/sbin/sendmail -t -i -- 2.39.5