Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I want to create a rule that forwards all mail with a specific sender to another email address.

From what I can tell, this might be possible with sender_bcc_maps but I can't find any examples using a specific address, only domain matches.. additionally, the user does not exist in postfix, this is simply an outbound relay server (on a static IP, in a datacenter) for another Exchange server (on a dynamic ip, in an office).

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Ended up adding to main.cf:

sender_bcc_maps = hash:/etc/postfix/outcopy

and then /etc/postfix/outcopy:

from@domain.com copyuser@anotherdomain.com

then ran:

postmap /etc/postfix/outcopy
/etc/init.d/postfix reload

and it is working.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.