Forwarding email to ruby script
We are using redmine for project management and ticketing system. One of the features it provides is possibility to create or answer to a ticket by email (as shown here).
I managed to configure zimbra to forward emails from local users, by:
- Adding following to /opt/zimbra/postfix/conf/master.cf.in
ruby unix - n n - - pipe
flags=DRhu user=zimbra argv=/usr/local/bin/rdm-mailhandler.rb
--key deojfjewopfkoewJ --project test
- Creating file /etc/zimbra/mytransport with following content
- Settting property postfix_transport_maps
[zimbra@zimbra ~]$ zmlocalconfig postfix_transport_maps
postfix_transport_maps = hash:/etc/zimbra/mytransport,proxy:ldap:/opt/zimbra/conf/ldap-transport.cf
When I send email from zimbra itself everything works fine. However when somebody outside my domain (actually I believe it has to be outside of MTA Trusted Networks IP's) tries to send email to firstname.lastname@example.org, it fails with an error
Do you have any suggestion how to change this to allow everybody to send mail my redmine system?
550 5.1.1 <email@example.com>: Recipient address rejected: User unknown in virtual mailbox table