Hello

I would like to ask some help. I want to append the subject depending on the
senders address, but it's not working. What I did: 

Added the following lines to main.cf:

*sender_dependent_default_transport_maps =
    hash:/etc/postfix/sdd_transport*

sdd_transport contains:
*  [email protected]  transport_gmail:
  [email protected] transport_yahoo:*

In master.cf, I added:

*transport_gmail unix - - - - - smtp
    -o smtp_header_checks=regexp:/etc/postfix/check_gmail_header

transport_yahoo unix - - - - - smtp
    -o smtp_header_checks=regexp:/etc/postfix/check_yahoo_header*

check_gmail_header file:
  */^Subject:(.+)$/i REPLACE Subject: [GMAIL] $1*

check_yahoo_header file:
  */^Subject:(.+)$/i REPLACE Subject: [YAHOO] $1*

What i missed?







--
Sent from: http://postfix.1071664.n5.nabble.com/Postfix-Users-f2.html

Reply via email to