We are having a webserver (mydomain.com) with apache and postfix. The mails originating from this server sometimes reaches to the spam folder of recipients. To avoid this, we have purchased a relay server. I configured it in the postfix. Now the mails originating from the websever is sent out via relay server. we can send 30K mails via the relay server per month. While analyzing this, half of the emails sent are to
user@mydoamin.com. So I am thinking of routing the emails sent to mydomain.com to my mail server and rest of the emails are sent out via relay server. I know that we can do this via /etc/postfix/transport file.
my main.cf is having this entry for general routing
relayhost = [smtp.relayserver.com]:587
It does not having entry for transport file.
Can you please help me to include the transport file to main.cf and configure it to forward email to mydomain to my mail server. Even a good link is enough for me configure. THanks in advance.