-
Notifications
You must be signed in to change notification settings - Fork 0
System Admin: Setting up email routing with postfix
When you're setting up Eventum's [Email Routing Interface](Email Routing Interface "wikilink") for postfix, use these options in the Administration -> General Setup area:
Email Routing Interface: Enabled
Recipient Type Flag: [doesn't matter, choose any]
Email Address Prefix: issue-
Address Hostname: [the domain name of the email address issues should be sent to]
Warn Users Whether They Can Send Emails to Issue: [doesn't matter, choose any]
Internal Note Routing Interface: Enabled
Note Address Prefix: note-
Address Hostname: [the domain name of the email address issues should be sent to]
Email Draft Interface: Enabled
Note Address Prefix: draft-
Address Hostname: [the domain name of the email address issues should be sent to]
There are different ways to implement the goal.
In /etc/mail/main.cf define
transport_maps = regexp:/etc/mail/transportregex
local_recipient_maps = unix:passwd.byname $alias_maps $transport_maps
Be sure to include your domain in mydestination
mydestination = $transport_maps, $myhostname, eventum.example.com
In /etc/mail/master.cf define eventum transport:
eventum unix - n n - 10 pipe
flags=DRhu user=apache argv=/usr/bin/php /var/www/html/eventum/misc/route_${nexthop}.php
Create /etc/mail/transportregex file:
/note-.*@eventum.example.com/ eventum:notes
/issue-.*@eventum.example.com/ eventum:emails
/drafts-.*@eventum.example.com/ eventum:drafts
Run postmap on that file
postmap /etc/mail/transportregex
Restart your postfix to take into account main.cf and master.cf changes
in /etc/mail/virtual write
@eventum.example.com [email protected]
and make define virtual_maps to use it:
virtual_maps = hash:/etc/mail/virtual
- Installation Process
- Scheduled Tasks
- Other Features Requiring System Setup
- Email Routing Script (route_emails.php)
- Note Routing Script (route_notes.php)
- Draft Routing Script (route_drafts.php)
- IRC Notification Bot (irc/eventum-irc-bot)
- Command Line Interface (cli/eventum)
- Installing on SSL (https)
- Installing with PHP on FastCGI