I've followed the wiki on how to configure postfix transports and pipe to scripts.
It works great for a subdomain, but not when I specify a specific user email address.
transport_maps = hash:/opt/zimbra/postfix/conf/transport,proxy:ldap:/opt/zimbra/conf/ldap-transport.cf
sudo vi /opt/zimbra/postfix/conf/transport
sub.example.com procmail-different-script #this works
me@example.com procmail-script #doesn't work emails are delivered directly to user
vi /opt/zimbra/postfix/conf/master.cf.in
#
# PROCMAIL-PIPES
#
procmail-different-script unix - n n - - pipe
flags= user=zimbra argv=/usr/bin/procmail /opt/zimbra/procmail/rc.procmail-different-script
procmail-script unix - n n - - pipe
flags= user=zimbra argv=/usr/bin/procmail /opt/zimbra/procmail/rc.procmail-script
There are no errors in /var/log/mail.log and I can't figure out why emails to me@example.com are not transported to the procmail-script pipe.
Per-user mail transport not working
Per-user mail transport not working
It completely eludes me that I can't get the per user transport to work and there are no errors indicating why mails aren't transported to the script.
Per-user mail transport not working
The wiki I linked to suggests that it should work,
[QUOTE]2. Create the transport map
Edit /opt/zimbra/postfix/conf/transport and place the following lines at the top:
# Pipe transports for RT queues
# YOU HAVE TO ADD THE PIPES TO /opt/zimbra/postfix/conf/master.cf if you want them to work!!!
rt@example.com rt-pipe
rt-comment@example.com rt-comment-pipe[/QUOTE]
But for some reason I can't get it too work and I've tried for 2 days.
If anyone has any ideas please share
[QUOTE]2. Create the transport map
Edit /opt/zimbra/postfix/conf/transport and place the following lines at the top:
# Pipe transports for RT queues
# YOU HAVE TO ADD THE PIPES TO /opt/zimbra/postfix/conf/master.cf if you want them to work!!!
rt@example.com rt-pipe
rt-comment@example.com rt-comment-pipe[/QUOTE]
But for some reason I can't get it too work and I've tried for 2 days.
If anyone has any ideas please share
Per-user mail transport not working
I've solved it myself. Thanks for the help.
Per-user mail transport not working
[quote user="yonatan"]If anyone has any ideas please share [/QUOTE]
[quote user="yonatan"]I've solved it myself. Thanks for the help.[/QUOTE]You could actually share your answer to help other forum members as you asked in your previous post.
[quote user="yonatan"]I've solved it myself. Thanks for the help.[/QUOTE]You could actually share your answer to help other forum members as you asked in your previous post.