2.6. Setting up an email gateway

Its possible to setup an email gateway on a UNIX platform so that replies to comments can be done directly from an email client, rather than having to go via the web interface. The bin/codestriker-email-gateway.pl script is used for this purpose.

On my system, I have a codestriker user account, and have set its email address to the $mailreplyto configuration variable in codestriker.conf. This setting will ensure all emails sent via codestriker will have the Reply-To mail header set to this email address. When people reply to comments within their email client, the email should be sent to this email address.

I use procmail within the codestriker account to process these replies to comment emails, and have it set as follows:

LOGFILE=/home/codestriker/procmail.log

:0:
* ^TOcodestriker@myhost\.com
| /home/codestriker/codestriker-email-gateway.pl --codestriker-install-dir /var/www/codestriker --codestriker-url http://codestriker.myhost.com/codestriker/codestriker.pl