There are multiple issues with ISPconfigs autoresponder on Debian 6.0. First of all – if you live in time zone above the UTC time (Like UTC+2 (Europe/Riga) in my situation) auto replies gets sent only after two hours from preset “start time”. It took exactly two hours for me to figure out whats wrong The problem is with timezone setting in files: /usr/local/ispconfig/interface/lib/config.inc.php and /usr/local/ispconfig/server/lib/config.inc.php – timezones are not set during installation / initial configuration, and needs to be set manualy like this:
1 2 |
//* Complete timezone list: http://php.net/manual/en/timezones.php $conf['timezone'] = 'Europe/Riga'; |
After fixing timezone setting autoresponder works, but there is another problem. Message text is added below the original message text, therefore it is very easy not to notice it, when receiving this reply. It just looks like bounced back message… The fix is to add -N switch to mailbot command for discarding the original text in reply, or -T switch to place message above the original text. This is done in /usr/local/ispconfig/server/conf/autoresponder.master file, making command to look like this:
1 2 3 |
cc "| mailbot -t $RESPOND -d $RESPONDDB -c 'UTF-8' -D 1 \ -A 'From: $RECIPIENT' -s 'Auto Response: from $RECIPIENT' -N \ /usr/sbin/sendmail -t -f ''" |
But turns out there is another problem – in courier-maildrop package for Debian 6.0 these switches are not working. Solution to this was simply grabbing deb package from Debian 7 (wheezy) from: http://packages.debian.org/testing/mail/courier-maildrop , and extract and replace the original binaries in /usr/bin (make sure to backup them first, in case something goes wrong)…
1 2 3 4 5 |
/usr/bin/mailbot /usr/bin/maildrop /usr/bin/makemime /usr/bin/reformail /usr/bin/reformime |
I know this is totally incorrect way of doing things, but it works. I have tested this server for over a week now, and everything seems to be ok, no problems with courier-maildrop and Auto replies!
I hope this helps.