PostMaster.pl as postfix transport

H, I'm using postfix and cyrus-imapd on a rhel 3 and I would like to create a transport for otrs instead of using POP3. I can't use procmail because I'm using cyrus and sieve doesn't support pipe to command. As I read in documentation[1], PostMaster.pl recevied mail from standart input (like it's done with procmail configuration). I've set this following transport in postfix configuration file: --( /etc/postfix/master.cf )-- # OTRS otrs unix - n n - - pipe user=otrs argv=/opt/otrs/bin/PostMaster.pl --8<-- I've tried both transport_maps and virtual_transport_maps directives but I'm using a external ldap database to store users and virtual have the precedence on transport, according to "big picture"[2] of postfix... --( /etc/postfix/main.cf )-- virtual_mailbox_maps = ldap:demat virtual_alias_maps = ldap:demat virtual_transport_maps = hash:/etc/postfix/transport --8<-- How can I set otrs as a transport for postfix in this case ? Regards, [1]: http://doc.otrs.org/1.3/en/html/receiving-email-cmd.html#AEN642 [2]: http://www.postfix.org/big-picture.html -- Raphaël 'SurcouF' Bordet http://debianfr.net/ | surcouf at debianfr dot net

Raphaël 'SurcouF' Bordet a écrit :
H,
I'm using postfix and cyrus-imapd on a rhel 3 and I would like to create a transport for otrs instead of using POP3. I can't use procmail because I'm using cyrus and sieve doesn't support pipe to command. As I read in documentation[1], PostMaster.pl recevied mail from standart input (like it's done with procmail configuration). I've set this following transport in postfix configuration file:
With help from Robert L. Mathews on postfix-users list, I've resolved this configuration. For the braves: --( /etc/postfix/master.cf )-- otrs unix - n n - 1 pipe flags=R user=otrs argv=/opt/otrs/bin/PostMaster.pl -q ${mailbox} ---8<--- --( /etc/posftix/main.cf )-- otrs_destination_limit = 1 transport_maps = hash:/etc/postfix/transport ---8<--- --( /etc/postfix/transport )-- support.domain.tld otrs: ---8<--- Don't forget to execute postmap on this last file and you're done. Note: support@support.domain.tld isn't defined anywhere. Happy Christmas everyone ;-) -- Raphaël 'SurcouF' Bordet http://debianfr.net/ | surcouf at debianfr dot net
participants (1)
-
Raphaël 'SurcouF' Bordet