On Sun, Oct 25, 2009 at 06:28:33PM +0100, Rene Maroufi wrote: > Hi, > > OpenSMTPD is great. Really simple configuration syntax. But I missed one > thing from postfix: Would it be possible to do MX lookups in a relay via > statement? I mean: Postfix have the transport table feature. I use this > feature to relay some maildomains to their really mailhub instead of my > smarthost. 90 % of my mails go to the smarthost, but i have some > exceptions. In smtpd.conf I try this: > > accept from $mynetwork for example.org relay via mail.example.org > accept from $mynetwork for all relay via $smarthost tls enable auth > > But a transport table entry in postfix can do mx lookups: > > example.org smtp:example.org > example.net smtp:[mail.example.net] > > first entry is with MX lookup, second without. > > Would it be possible to implement a switch for the relay statement for > with/without MX lookup, for example: > > accept from $mynetwork for domain example.org relay via mail.example.org > accept from $mynetwork for domain example.net relay via mx:example.net > > First form for without MX lookup, second with MX lookup. > > Regards > Rene
Hi, Isn't the following what you're trying to do ? accept from $mynetwork for domain example.org relay via mail.example.org accept from $mynetwork for domain example.net relay Gilles -- Gilles Chehade freelance developer/sysadmin/consultant http://www.poolp.org