]> Frank Brehm's Git Trees - my-stuff/postfix-maps.git/commitdiff
Mit Mappings angefangen
authorFrank Brehm <frank@brehm-online.com>
Fri, 16 Jul 2010 15:02:46 +0000 (15:02 +0000)
committerFrank Brehm <frank@brehm-online.com>
Fri, 16 Jul 2010 15:02:46 +0000 (15:02 +0000)
git-svn-id: http://svn.brehm-online.com/svn/my-stuff/postfix-maps/trunk@102 ec8d2aa5-1599-4edb-8739-2b3a1bc399aa

etc/config.yml
lib/FrBr/Postfix/App.pm

index b58bbc7a324df5dbc77bfb30eeea69c9d30730d5..9c011293f766b1f59c2aff53fb668c2261bf91f1 100644 (file)
       dsn: 'DBI:mysql:database=vmail;host=localhost'
       user: 'vmail'
       password: ~
+#
+# Die eigentliche Zuordnung von Datenbank-Tabellen zu Postfix-Mapfiles
+maps:
+   canonical:
+      file: canonical
+      enabled: 1
+      db_type: hash
+      text_type: map
+      resultset: Canonical
+      columns:
+         - email
+         - destination
+      where:
+         enabled: y
+      order_by: email
+   mydomains:
+      file: mydomains
+      enabled: 1
+      db_type: hash
+      text_type: map
+      resultset: Domain
+      columns:
+         - domain
+         - domain
+      where:
+         type: local
+         enabled: y
+      order_by: domain
index 7a9dc4b1701a877d28548080067a53161ebd58d5..326828bf511a175a3e3622714ab7feeea5ecc69e 100644 (file)
@@ -109,6 +109,18 @@ sub _build_default_config {
                 ],
             },
         },
+        maps => {
+            'alias' => {
+                'file'      => 'aliases',
+                'enabled'   => 1,
+                'db_type'   => 'hash',
+                'text_type' => 'aliases',
+                'resultset' => 'Alias',
+                'columns'   => [ 'alias', 'destination', ],
+                'where'     => { 'enabled' => 'y' },
+                'order_by'  => 'alias',
+            },
+        },
     };
 }