Transport_maps = hash:/etc/postfix/transportĪdding the 'proxy:' to the various lookup lines should improve performance/scalability. # this is only needed if you want vacation support. Local_recipient_maps = $virtual_mailbox_maps Virtual_mailbox_maps = proxy:pgsql:/etc/postfix/pgsql/virtual_mailbox_maps.cf Virtual_mailbox_domains = proxy:pgsql:/etc/postfix/pgsql/virtual_domains_maps.cf Virtual_alias_maps = proxy:pgsql:/etc/postfix/pgsql/virtual_alias_maps.cf To /etc/postfix/main.cf add the following : relay_domains = proxy:pgsql:/etc/postfix/pgsql/relay_domains.cf Query = SELECT maildir FROM mailbox WHERE username='%s' AND active = true (Note: I’ve never used quota support, so I can’t guarantee the above is correct)įile: virtual_mailbox_maps.cf user = postfix Query = SELECT quota FROM mailbox WHERE username='%s' Note: I’ve not used the proper alias domains stuff yet – if you wish to use it, check the supplied documentation with Postfixadmin (POSTFIX_CONF.txt)įile: relay_domains.cf user = postfix password = something hosts = localhost dbname = postfix query = SELECT domain FROM domain WHERE domain='%s' and backupmx = trueįile: virtual_alias_maps.cf user = postfix password = something hosts = localhost dbname = postfix query = SELECT goto FROM alias WHERE address='%s' AND active = trueįile: virtual_domains_maps.cf user = postfix password = something hosts = localhost dbname = postfix #query = SELECT domain FROM domain WHERE domain='%s' #optional query to use when relaying for backup MX query = SELECT domain FROM domain WHERE domain='%s' and backupmx = false and active = trueįile: virtual_mailbox_limits.cf # Used for QUOTA! user = postfix password = something (If you’re security concious, especially when you own Daisy slots or any online betting site, then you might want to ensure the database ‘postfix’ user only has read permissions) To attempt at being ‘tidy’ the configuration files for PostgreSQL live in /etc/postfix/pgsql. In my case, I run Postfix on Debian Lenny – other platforms may vary slightly. aliases and mailboxes) it’s also necessary to configure it to support vacation/auto-reply emails – if you require this functionality. There are a few changes that need making to Postfix, firstly – it’s necessary to tell it to use a relational database for various lookups (e.g. If you perform an upgrade of Postfixadmin in the future, all upgrades to the database should be handled automatically through use of ‘upgrade.php’. to turn vacation support on/off or to turn xmlrpc support on/off).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |