Maybe I should clarify what I mean as I dont think I have.

If I need all mail coming from a particular address internally to bypass the
default relayhost and be sent directly to the internet, how do I do that.
For example:

my internal domain and network: *foobar.com*
all outgoing mail to be relayed via: *relayhost.foobar.com*
sender email address: [EMAIL PROTECTED]
destination address: [EMAIL PROTECTED] *& [EMAIL PROTECTED]

So I want all mail that comes from [EMAIL PROTECTED] to be sent directly to
the internet and NOT to be relayed via relayhost.foobar.com.  So when the
user sends the email to [EMAIL PROTECTED] I want the server to check what
the primary MX for the domain gmail.com is and then send it to that server.
And the next time it sends another email to [EMAIL PROTECTED] it sends it
directly to the Hotmail MX servers.

Thanks in advance

Wadeegh

On Mon, Aug 11, 2008 at 6:00 PM, Noel Jones <[EMAIL PROTECTED]> wrote:

> Wadeegh Hendricks wrote:
>
>> Thanks,
>>
>>  From what I can see is that you can relay on an individual address or
>> domain name.  My understanding is that the format for the file is as
>> follows:
>>
>> sender_address relay_host
>> ie [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> example.foo.com <
>> http://example.foo.com/>
>>
>> What happens if you just want the server to do an MX lookup and send to
>> the primary MX for the particular destination domain?  What is the format
>> for that if it is possible?
>>
>> Thanks
>>
>
> [please don't top-post]
>
> Yes, you can send to the MX of a specified domain.
> http://www.postfix.org/postconf.5.html#sender_dependent_relayhost_maps
> http://www.postfix.org/postconf.5.html#relayhost
>
> so to send to the MX of example.com, the sender_dependant_relayhost_maps
> entry would look like:
> [EMAIL PROTECTED]  example.com
>
> To send to the A record of example.com (no MX lookup) enclose the hostname
> in "[ ]" braces.
> [EMAIL PROTECTED]  [example.com]
>
> --
> Noel Jones
>

Reply via email to