Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

External lookup before internal lookup?

Status
Not open for further replies.

billyrob

Programmer
Jul 13, 2004
3
GB
Hi All,

Problem:

MX records of a domain point to an external Exchange Server. A records point to a different web server where Postfix is installed. Application on this server needs to send mail to the external Exchange Server but the mail fails as the mail is not found on the local Postfix server

Error Report:

Oct 5 18:52:46
postfix/pipe[28433]
5E2FF69C0F: to=<admin@somesite.co.uk>, relay=maildrop, delay=0, status=bounced (user unknown. Command output: Invalid user specified. )

I am a real newbie with Postfix but this is driving me mad! Can Postfix be forced to lookup an MX record before trying to send to a local account?

Thanks in advance.
 


I think you should try to set in /etc/postfix/main.cf :

myhostname = your_machine.your_domain
mydomain = your_domain
...
relayhost = [@IP Exchange]


In your file /etc/postfix/transport put:

your_domain smtp:[@IP Exchange]

Then do :

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


Hope it will help you.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top