postfix integration

markfoodyburton - January 20, 2009 - 22:15
Project:Hosting
Version:5.x-0.1-beta1
Component:Code
Category:feature request
Priority:normal
Assigned:markfoodyburton
Status:active
Description

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.

AttachmentSize
postfix.tgz2.18 KB

#1

markfoodyburton - January 21, 2009 - 22:19

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.

AttachmentSize
postfix.tgz 6.72 KB

#2

markfoodyburton - January 22, 2009 - 14:48

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

AttachmentSize
postfix.tgz 6.87 KB

#3

ac - January 27, 2009 - 14:26

subscribing

#4

smautf - October 21, 2009 - 10:16

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

 
 

Drupal is a registered trademark of Dries Buytaert.