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? >> in /etc/postfix/virtual have an entry similar to this >> >> /(.*)@/ $...@somedomain.com >> >> >> Hopefully that?s the right way to do the second one. > > This looks fragile. Yeah, I went back to using masquerade_classes as it was a significantly tidier approach. If I did ever have need to go down the virtual approach, I’d probably have write some decent regexp to cover my behind. cheers, James