Loading ...
Sorry, an error occurred while loading the content.

Re: Modify subject based on recipient

Expand Messages
  • Gaby L
    I resolve same problem: 1 Use header checks in main.cf header_checks=regexp:/etc/postfix/header_checks 2. Edit and map header_checks file with line:
    Message 1 of 13 , Jul 2, 2013
    • 0 Attachment
      I resolve same problem:
       
      1 Use header checks in main.cf
         header_checks=regexp:/etc/postfix/header_checks
      2. Edit and map header_checks file  with line:
          /^Subject:.*(fax...)/  FILTER filter_fax:dummy
      3.Edit master.cf with filter_fax line:
         filter_fax   unix   -       n        n      -       15      pipe
           flags=Rq user=faxfilter null_sender=
          argv=/var/spool/filter/faxfilter -f fax@... -- ${recipient}
      4.Create one user for filter files
      5.Create faxfilter file owned by create user in /var/spool/filter
      6.Edit faxfilter file with
         sed -e 's/^From:.*/From:<fax@...>/g' -e 's/^Subject:.*fax....../Subject:Fax newname/g' in.$$ | $SENDMAIL "$@"
       
      The key for solve this problem is the sed command,this is command for best replace
       
      Gaby 
    Your message has been successfully submitted and would be delivered to recipients shortly.