Testing around a little bit, we found a very simple solution. The job was to insert Falkos code at the correct place:
We modified the file:
/root/ispconfig/isp/conf/autoresponder.rc.master
inserting the line after "# Don't reply to SPAM"
Code:
SHELL=/bin/sh # for other shells, this might need adjustment
EMAIL=`formail -zxTo:`
:0 Whc: vacation.lock
# Perform a quick check to see if the mail was addressed to us
#* $^To:.*\<$\LOGNAME\>
# Don't reply to daemons and mailinglists
* !^FROM_DAEMON
# Don't reply to SPAM
* !^X-Spam-Status: Yes
# Mail loops are evil
* !^X-Loop: ${EMAIL}
| formail -rD 8192 {PFAD}/.vacation.cache
:0 ehc # if the name was not in the cache
| (formail -rI"From: {EMAIL_ADDRESS}" -I"Precedence: junk" \
-A"X-Loop: ${EMAIL}" ; \
cat {PFAD}/.vacation.msg \
) | $SENDMAIL -oi -t
Of course, the code effect only accounts marked for autoreply after this modification. So for existing autoreplies just disable and enable again using one of the possiblities offert by ISPConfig (domain-control or mailuser-login)
Have a nice weekend
Kai
Recent comments
1 day 8 hours ago
1 day 11 hours ago
1 day 13 hours ago
1 day 14 hours ago
1 day 16 hours ago
1 day 17 hours ago
1 day 18 hours ago
2 days 10 hours ago
2 days 11 hours ago
2 days 15 hours ago