Postfix:How to redirect to another mail server an email from from a sender

Have Postfix 2.6.6 on RedHat  which is used as an internal mail relay server for all incoming emails to be relayed to our exchange server. We are relaying emails destined to our domain ( mydomain.com ) to our exchange mail server ( 10.10.0.1 ). This is done by /etc/postfix/transport containing "mydomain.com smtp:[10.10.01] ".
We also want to relay emails from a single email sender "sender@otherdomain"  to our exchange server at 10.10.0.1. How can we do this?
expuser2008Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

nociSoftware EngineerCommented:
it can be done by using  smtpd_send_restrictions....
In main.cf add: a check_send_access clause to the head of the smtp_send_restrictions key.

smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/sender_redirect <, original content>

the file /etc/postfix/sender_redirect should then contain a list of addresses like: (1 per line).
from_address@some.example.org redirect new_to_address@another.example.org
Adding lines like
badaddress@example.com REJECT
should block mail from that user,and
okaddress@example.com OK
Should allways be allowed

after that regenerate aliases etc.... (ie. postmap /etc/postfix/sender_redirect)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
expuser2008Author Commented:
Thank you, it almost worked, but used in sender_redirect table " from_address@some.example.org FILTER smtp:10.10.0.1"
0
nociSoftware EngineerCommented:
Ah, did it of the top of my head... long time ago i did postfix, so i need to do a refresher if i need it again.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Email Servers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.