Configuring site_info.php
In your MTA directories (currently backends/exim_og_mailinglist or backends/postfix_og_mailinglist) there is file default.site_info.php
The easier way to set up OG Mailinglist is to use MailGun.com services. For some people this doesn't cut it, so here is the hard way.
This is pretty much a copy of the following file:
http://drupalcode.org/project/og_mailinglist.git/blob_plain/refs/heads/7...
Go to sites/all/modules/og_mailinglist/backends/exim_og_mailinglist directory.
cp -r ../exim_og_mailinglist /etc/exim4/
ln -s \
/etc/exim4/exim_og_mailinglist/950_exim4-config_drupal_og_mailinglist_router \
/etc/exim4/conf.d/router/950_exim4-config_drupal_og_mailinglist_routerln -s \
/etc/exim4/exim_og_mailinglist/95_exim4-config_drupal_og_mailinglist_transport \
/etc/exim4/conf.d/transport/95_exim4-config_drupal_og_mailinglist_transportcp /etc/exim4/exim_og_mailinglist/example.site_info.php \
/etc/exim4/exim_og_mailinglist/site_info.phpnano /etc/exim4/exim_og_mailinglist/site_info.php
Run dpkg-reconfigure exim4-config on Debain/Ubuntu systems and ensure that the "Other destinations for which mail is accepted:" or "local domains" setting includes your site's domain name. Otherwise, Exim will simply reject emails directed to this domain.
Also allow exim4 to recieve mail from wilderness, set "IP-addresses to listen on for incoming SMTP connections" to be blank, otherwise only listed hosts can send you email.
/etc/init.d/exim4 restart
Note that on some operating systems like Debian, you need to run update-exim4.conf.template to actually update the configuration before restarting. See your installation's Exim documentation for specifics.
Debugging help for when things don't work:
SSH into your server, run "tail -f /var/log/exim/mainlog" to see that emails are actually reaching your server and that the og_mailinglist router/transports are being called. Also, it might help to look at the Drupal logs at admin/reports/dblog
To test this script you could invoke it from command line as follows (when inside the og_mailinglist directory; you also need to adjust domain to match your Drupal installation):
/etc/exim4/exim_og_mailinglist/og_mailinglist_debug.sh example.com < testing/applemail
This is pretty much a copy of the following file:
http://drupalcode.org/project/og_mailinglist.git/blob_plain/refs/heads/7...
cp -r ../postfix_og_mailinglist /etc/postfix/
cp /etc/postfix/postfix_og_mailinglist/example.site_info.php \
/etc/postfix/postfix_og_mailinglist/site_info.phpThere are two ways to accomplish this. You could either use a pipe command (the easier way) or if you define your email addresses e.g using MySql database, you could use the transport map (the slightly harder way). You should not use both of these at once.
To set up an alias address in a virtual domain, using a pipe command, add it to your Postfix alias file /etc/aliases (as is often done for Mailman addresses):
@example.com "| /etc/postfix/postfix_og_mailinglist/og_mailinglist_postfix_transport.php ${DOMAIN}"
Or if you prefer not to use catchall address:
test: "| /etc/postfix/postfix_og_mailinglist/og_mailinglist_postfix_transport.php ${DOMAIN}"
When debbugging, you could temporarily use this one (writes mails and errors to /tmp):
test: "| /etc/postfix/postfix_og_mailinglist/og_mailinglist_debug.sh ${DOMAIN}"
Instead of using a simple Mailman type pipe to a command, it is also possible to define email addresses in the normal way, then use a special transport to handle delivery. You might want to do this if you define a good portion of your addresses via MySQL.
test@example.com @groups.example.com
test@groups.example.com og_mailinglist:
The command might look like this:
flags=FR user=nobody directory=/etc/postfix/postfix_og_mailinglist \
argv=og_mailinglist_postfix_transport.php ${domain}Complete entry example (directory does not seem to work in ubuntu):
og_mailinglist unix - n n - - pipe -v
flags=FR user=nobody argv=/etc/postfix/postfix_og_mailinglist/og_mailinglist_postfix_transport.php ${domain}-v at end of first line gives you verbose output in the mail log
To test this script you could invoke it from command line as follows (when inside the og_mailinglist directory; you also need to adjust domain to match your Drupal installation):
/etc/postfix/postfix_og_mailinglist/og_mailinglist_debug.sh example.com < testing/applemail
In your MTA directories (currently backends/exim_og_mailinglist or backends/postfix_og_mailinglist) there is file default.site_info.php