OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Use MX record when sending to $mydomain

From: Eero Volotinen (eero.volotineniki.fi)
Date: Thu Nov 19 2009 - 02:32:46 CST


Quoting Ansgar Wiechers <listsplanetcobalt.net>:

> On 2009-11-18 contactrusanu.com wrote:
>> I'm using sendmail to send to "someusermydomain.com" from the machine
>> that is the A DNS of mydomain, but is not the MX one. postfix relays
>> this to 127.0.0.1 and it gets rejected with 450 user unknown. I want
>> it to use the normal rules and deliver it to the MX registered address
>> for "mydomain.com", where my pop box is.
>>
>> I looked over the main.cf but nothing jumped out 'fix me here' to
>> solve this. Any hint?
>
> Please post the output of "postconf -n". And if you must obfuscate your
> domain name, please use names from RFC 2606. They're reserved for
> exactly this purpose.

You can bypass mx lookup for example using following syntax on transport maps:

domain.net :[mx.domain.net]

--
Eero