Hi all,

I've been reviewing lots of documentation about Postfix rewriting, but the
closer example, does not work for me.

I need to rewrite ALL the sender addresses except 2.

Here's my main.cf

*~*~*~*~

tibility_level = 2
mydomain = mailer.foo
myhostname = mailer.foo
debug_peer_list = 127.0.0.1, 192.168.1.12
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
unknown_local_recipient_reject_code = 550
relayhost = mail.foo
debug_peer_level = 7

debugger_command =
         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
         ddd $daemon_directory/$process_name $process_id & sleep 5

sendmail_path = /usr/sbin/sendmail

newaliases_path = /usr/bin/newaliases

mailq_path = /usr/bin/mailq

setgid_group = postdrop

html_directory = no

manpage_directory = /usr/share/man

sample_directory = /etc/postfix
meta_directory = /etc/postfix
readme_directory = no
inet_protocols = ipv4
shlib_directory = /usr/lib64/postfix/${mail_version}
home_mailbox = .maildir/

smtpd_delay_reject = no
smtpd_helo_required = no
smtp_header_checks = pcre:/etc/postfix/header_checks

*~*~*~*~

(I've tried pcre/regexp in "smtp_header_checks"), same result

header_checks

if /^From:/
!/(^From:foo@foo\.com|^From:bar@foo\.com)/ REPLACE From: "nore...@foo.com"
endif



The result is no sender address is being rewrited.

Any help would be appreciated.

KR, Laura

Reply via email to