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 f...@yourdomain.xx -- ${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:<f...@yourdomain.xx>/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