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 virtual_mailbox_domains=mysql:/etc/postfix/hosting_virtual_domains.cf
 postconf -e virtual_alias_maps=mysql:/etc/postfix/hosting_virtual_alias_maps.cf

ToDo

Add virtual mailboxes, and the ability to set them up and control them from the hostmaster.

Comments

markfoodyburton’s picture

StatusFileSize
new6.72 KB

The new version adds per user quota etc - and enables drupal users to have an email account.
However, you are advised not to let anybody add accounts!
right now, if a users email address matches on of those domains hosted, they will be given an account!

The INSTALL file has some hints, but you should install dovecot and postfix yourself.

This has been tested on a Fedora 9 machine

Good luck, and feedback welcome

Cheers

Mark.

markfoodyburton’s picture

StatusFileSize
new6.87 KB

Found some (big) bugs, basically, only site aliases were working, not actual site names

ac’s picture

subscribing

nielt’s picture

I've never used this, but there is the Mailfix module. Maybe you can reuse code or integrate that.

steven jones’s picture

Status: Active » Closed (won't fix)

Interesting, but can really live in contrib.