Per-user mail transport not working

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
yonatan
Advanced member
Advanced member
Posts: 169
Joined: Sat Sep 13, 2014 1:14 am

Per-user mail transport not working

Post by yonatan »

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.
yonatan
Advanced member
Advanced member
Posts: 169
Joined: Sat Sep 13, 2014 1:14 am

Per-user mail transport not working

Post by yonatan »

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.
yonatan
Advanced member
Advanced member
Posts: 169
Joined: Sat Sep 13, 2014 1:14 am

Per-user mail transport not working

Post by yonatan »

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 ;)
yonatan
Advanced member
Advanced member
Posts: 169
Joined: Sat Sep 13, 2014 1:14 am

Per-user mail transport not working

Post by yonatan »

I've solved it myself. Thanks for the help.
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Per-user mail transport not working

Post by phoenix »

[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.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
Post Reply