These notes assume that you're using the Postfix mail handler. They also assume that you have control over the DNS settings for your domain.
Specifically, you should be able at least to create custom subdomains (hostnames) for your domain. Better still, you should be able to create a wildcard subdomain (usually just '*') that maps any unknown subdomain to the IP address of your server (by means of a DNS 'A' record). In lieu of this capability, you may be able to manually create a subdomain corresponding to the short name of each Deme group that needs email integration, but it's a bit easier if you don't have to worry about that.
1. Enable email input in your deme/offweb/conf.php file.
2. cd to /etc/postfix (you will probably have to be logged in as root to
-
proceed from here).
3. Add the following line to main.cf:
-
transport_maps = hash:/etc/postfix/transport
4. Add the following lines to master.cf:
-
### deme mail receiver deme unix - n n - - pipe flags=R user=apache argv=/var/www/deme/meta/mailhandler.php ${recipient}
-
Note that if there is no 'apache' user on your server, you can provide another username (with similar privileges). The user is not allowed to be 'root', however.
5. Add the following lines to a file named 'transport', also in the
-
/etc/postfix directory (create the file if it does not yet exist):
-
yourdomain.org local: .yourdomain.org deme:
6. On the command-line, type the following three commands:
-
> postmap transport > /etc/init.d/postfix restart > postfix reload
7. If all went well, you should be able to reply via email to any message
-
sent out by the group -- try it! If email integration does not appear to be working, try typing one of the following commands:
-
> tail -f /var/log/mail.err > tail -f /var/log/maillog > tail -f /var/log/some_similar_filename
-
> ./mailhandler.php \ > meetingareashortname-replyXX@groupshortname.yourdomain.org < \ > rawmessage
