On Fri, Apr 09, 2010 at 07:05:33AM +1000, James Lever wrote: > > On 09/04/2010, at 12:08 AM, Victor Duchovni wrote: > > > Seems to me that $myorigin = $mydomain achieves the result more cleanly. > > Mail for root can be handled via virtual(5) and generic(5). > > That?s a fair point, but this is a much simpler and cleaner > (configuration management-wise) solution. I think $myorigin = $mydomain > still doesn?t handle the case where you send mail to $lo...@$myhostname > without the use of masquerading?
Masquerading is "clean" on null-client systems only. On real MTAs, masquerading is often a tricky business. Use other tools if possible. Such brute-force rewriting is much more intrusive and risky than setting myorigin correctly. -- Viktor. P.S. Morgan Stanley is looking for a New York City based, Senior Unix system/email administrator to architect and sustain our perimeter email environment. If you are interested, please drop me a note.