All, Sorry for the long post, but I just want to be clear...

Googled for this, but I just can't seem to find a specific answer...

Is it possible to get postfix to relay mail to a specific host, but 
*only* for a single destination domain?

My company has a global e-mail system that sucks. (slow, looses mail, 
yada yada) However, and now they are making a change that will not allow 
it to accept mail from the public internet where the From header is the 
company domain. example:

If I want to send mail from [EMAIL PROTECTED] to [EMAIL PROTECTED], 
the global mail server will only accept this mail if it arrives from 
inside the private company network.

My solution in the past has been to run my own mail server that sends 
all mail directly to the destination domains thru the public 
internet.... so at least mail sent from my site gets where it is going 
in a timely fashion.

My Problem:

My mail server does an MX lookup for mycompany.com, and gets the 
external public internet ip address. This won't work, as my box then 
sends the mail to the company server the wrong way. (Through the public 
internet instead of the internal network) and the mail gets rejected. 
This is a good thing actually, for spam and security purposes)

I need my server to relay messages going to mycompany.com to a specific 
inside host (ignoring the MX record) and then send all other mail 
directly by itself to all other destination domains.

Can Postfix do that with the relay_host and relay_domains parameters? 
The documentation is a bit confusing to me...

Thanks,

-
Robert Toole
Sr. Systems Engineer
KN Logistics / Calgary
[EMAIL PROTECTED]
(403) 717-8463

_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

Reply via email to