RE: [Exim] Ip address list 2 cdb

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Karl Schmidt
Data:  
Para: 'Marc MERLIN', Exim \(E-mail\)
Assunto: RE: [Exim] Ip address list 2 cdb
I think we are still missing each other - I'm want to go from an IP address
list not an alias list to a CDB.

The cdbmake command expects a key and data for each address - what would the
key be and what form does the data have to be in? text or binary?

Perhaps there is no data just a list of keys? - but them what form would the
keys be in, in that case?

------------------------------------------------
Karl Schmidt (ks150)     EMail Karl@???
Transtronics, Inc.       WEB http://xtronics.com
3209 West 9th Street     Ph(785) 841-3089
Lawrence, KS 66049       FAX(785) 841-0434




 -----Original Message-----
From:     exim-users-admin@??? [mailto:exim-users-admin@exim.org]  On
Behalf Of Marc MERLIN
Sent:    Monday, October 01, 2001 6:21 PM
To:    Sheldon Hearn; Karl Schmidt
Cc:    Exim (E-mail)
Subject:    Re: [Exim] Ip address list 2 cdb


On Mon, Oct 01, 2001 at 01:14:09PM +0200, Sheldon Hearn wrote:
> Your question is answered in the documentation supplied with Exim. The
> following is quoted from the Exim Specification:
>
>     http://www.pobox.com/~djb/cdb.html


I actually recommend freecdb, which is open source (DJB's stuff isn't)

On Mon, Oct 01, 2001 at 03:23:38PM -0500, Karl Schmidt wrote:
> Yes I understand that BUT -
>
> What form of data base does Exim expect?
>
> What would the key name be?


Here's what I wrote:
----------------------------------------------------------------------------
kenny:/etc/mail/virtualdomains# cat aliastocdbsrc
#!/usr/bin/perl -w

use strict;

die "$0 < infile > outfile\n" if $#ARGV != -1;

while ($_=<STDIN>)
{
    next if (/^#/);
    next if (/^\s*$/);


    /^(.+?)\s*:\s*(.+?)\s*$/ or die "Can't split $_\n";


    print "+".length($1).",".length($2).":$1->$2\n";
}


# cdbmake requires an extra newline...
print "\n";
----------------------------------------------------------------------------

----------------------------------------------------------------------------
kenny:/etc/mail/virtualdomains# cat Makefile
ZONES=$(wildcard src/*)
CDBZONES=$(shell echo $(ZONES) | sed "s/src\//cdb\//g")

all: $(CDBZONES)

cdb/%:  src/%
        @echo "Rebuilding cdb file for $@"
        @cat $? | ./aliastocdbsrc | cdbmake $@ $@.tmp
----------------------------------------------------------------------------


A single entry would look like this:
+4,19:root->merlin@???

In your case, you'd have keys pointing to nothing I guess.

Marc
--
Microsoft is to operating systems & security ....
                                      .... what McDonalds is to gourmet
cooking


Home page: http://marc.merlins.org/ | Finger marc_f@??? for PGP
key

--
## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
details at http://www.exim.org/ ##