Re: DNS based virtual domains?

2009-06-22 Thread /dev/rob0
On Thu June 18 2009 06:12:19 Halassy Zoltán wrote:
 Just curious, is there a way to maintain the virtual_mailbox_domains
 from DNS database (secure, using DNSSEC to a given set of servers,
 using nonrecursing requests, and accepting only authoritative
 answers)? So when a mail comes, it would try to look up an MX record
 to that domain, and if one of the MX records is the local server, it
 would forward it automatically.

It sounds reasonable to me if the lookup is secured somehow, but no, 
there is no dns: map type implemented in Postfix (yet). See
http://www.postfix.org/DATABASE_README.html for map types overview.
-- 
Offlist mail to this address is discarded unless
/dev/rob0 or not-spam is in Subject: header


Re: DNS based virtual domains?

2009-06-22 Thread Ruben Laban
On Monday 22 June 2009 at 20:16 (CET), /dev/rob0 wrote:
 On Thu June 18 2009 06:12:19 Halassy Zoltán wrote:
  Just curious, is there a way to maintain the virtual_mailbox_domains
  from DNS database (secure, using DNSSEC to a given set of servers,
  using nonrecursing requests, and accepting only authoritative
  answers)? So when a mail comes, it would try to look up an MX record
  to that domain, and if one of the MX records is the local server, it
  would forward it automatically.

 It sounds reasonable to me if the lookup is secured somehow, but no,
 there is no dns: map type implemented in Postfix (yet). See
 http://www.postfix.org/DATABASE_README.html for map types overview.

Though, using a custom TCP-based table, one could implement such a feature 
rather easily I'd say.

-- 
Regards,

Ruben Laban
Systems and Network Administrator
ISM eCompany


Re: DNS based virtual domains?

2009-06-22 Thread Wietse Venema
Halassy Zolt??n:
 Just curious, is there a way to maintain the virtual_mailbox_domains 
 from DNS database (secure, using DNSSEC to a given set of servers, using 
 nonrecursing requests, and accepting only authoritative answers)? So 
 when a mail comes, it would try to look up an MX record to that domain, 
 and if one of the MX records is the local server, it would forward it 
 automatically.

Just like SQL and LDAP, the query interface could look like:

postmap -q example.com dns:/file/name

Where /file/name contains all the information that is needed to
make the query.  If we take this route it should be usable for
more than just virtual_mailbox_domains.

Wietse