I have mail server setup to use postfix and cyrus imapd + ldap for mail lookups.
Now I would like to specify that for particular address (e.g. firstname.lastname@example.org) instead of delivering mail to mailbox it gets passed to script (ruby script to be more precise). I need this functionality since I would like to have mails passed to particular address to end up on our redmine server. How to do this?
Currently I have in main.cf:
... mydestination = $mydomain, mail.$mydomain local_recipient_maps = ldap:/etc/postfix/ldapvirtual.cf local_transport = lmtp:unix:/var/lib/imap/socket/lmtp ...
/etc/postfix/ldapvirtual.cf is LDAP configuration file to search for mail addresses.
What do I need to configure on postfix?