Avatar of Vigor
Vigor
 asked on

How to forward few email accounts from postfix to Exchange 2003

Hi,


I would like to forward few email accounts from postfix to Exchange 2003 in the same domain,

mx record points to domain.com, user@domain.com is on postfix.

on Exchange main domain is @domain.pl, and also I set up user with mailbox user@domain.com

is that possible?
Email ProtocolsEmail ServersExchange

Avatar of undefined
Last Comment
ollfried

8/22/2022 - Mon
ollfried

Yes, via a transport-map. What shall happen to the remaining accounts, are they delivered locally?

# /etc/postfix/transport

exchange_user1@domain.com   smtp:[ip.of.exchange]:25
exchange_user2@domain.com   smtp:[ip.of.exchange]:25

and so on. That should do the job.
 
Vigor

ASKER
This is the correct syntax?

exchange_user1@domain.com   smtp:[ip.of.exchange]:25 ??

I have

exchange_user1@domain.com   smtp:[ip.of.exchange]

and it doesn't work
Vigor

ASKER
Yes, the rest is delivered locally
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
ollfried

You can leave the :25 out, that's not important. Did you run "postmap /etc/postfix/transport"? What does the log show when mail is received for such an user?
Vigor

ASKER
Oct  6 13:39:07 sigma postfix/local[25721]: 68D803BC5A: to=<ex_user@mail.domain.com>, orig_to=<ex_user@domain.com>, relay=local, delay=14, status=sent (delivered to maildir)
Vigor

ASKER
did postmap
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
ollfried

Can you please show "postconf mydomain mydestination relay_domains"?
And please show the other lines in the logs regarding the mail above.
Vigor

ASKER
i can find it in main.cf?

there are no other lines in this email log
ollfried

I mean the output of the command "postconf mydomain mydestination relay_domains", and please the output of "grep 68D803BC5A /var/log/mail.log"
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Vigor

ASKER
I have postconf for all settings
Vigor

ASKER
mydomain = domain.com
mydestination = $myhostname, localhost.$mydomain, localhost
relay_domains = $mydestination
Vigor

ASKER
can't provide grep output right now, sorry
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Vigor

ASKER
it is better to use transport maps or forwarder?
ASKER CERTIFIED SOLUTION
ollfried

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.