

This is a first go at postfix integration.
It will be worked on, and is only here as proof of concept.
Dont install it, use it, or blame anybody for the terrible mess it causes ;-)

For me, I use this module by installing it under 'hosting' - enabling it, and then 'checking' the boxes on hosted sites for 'enabling email' and (if you wish) enabling a catch all (which sets things up to send all email to the site owner).

There are also files in here (*.cf) which need to be copied into /etc/postfix/... You should set up a mysql user with read permissions on your hostmaster sites database, and put the credentials into these files....

You should then enable them with command lines like:

postconf -e 'recipient_bcc_maps = proxy:mysql:/etc/postfix/hosting_virtual_recipient_bcc.cf'
postconf -e 'sender_bcc_maps = proxy:mysql:/etc/postfix/hosting_virtual_sender_bcc.cf'
postconf -e 'virtual_mailbox_domains=mysql:/etc/postfix/hosting_virtual_domains.cf'
postconf -e 'virtual_mailbox_maps=mysql:/etc/postfix/hosting_virtual_mailboxes.cf'
postconf -e 'virtual_alias_maps=mysql:/etc/postfix/hosting_virtual_forwarding.cf,mysql:/etc/postfix/hosting_virtual_catchall.cf,mysql:/etc/postfix/hosting_virtual_mailboxes.cf'

(this last one  does forwarding first, then it looks for 'catchalls' and finally
it uses the mailbox list to give an email-2-email list for the user
(so they dont get caught by the catchall))

Similarly, then you must install hosting_virtual_dovecot_sql.conf in the dovecot
install. You should take care to include a quota plugin if you want
quota's to work.

Note, you need to set up a user/group, the script assumes a UID and
GID of 5000

http://workaround.org/articles/ispmail-etch/
Has most details

http://www.howtoforge.com/drupal-plus-postfix-integration-under-ubuntu-8.04-p6
Is good, but does not set up quota's correctly, which must be handled
by dovecot.



