Re: [Exim] POP before SMTP

Góra strony
Delete this message
Reply to this message
Autor: Tor Slettnes
Data:  
Dla: Meindert van der Bijl
CC: exim-users
Temat: Re: [Exim] POP before SMTP
On May 24, 2004, at 08:03, Meindert van der Bijl wrote:
> That's very easy, I use Drac (http://mail.cc.umanitoba.ca/drac/) and
> Qpopper (http://www.eudora.com/qpopper/) which supports Drac.


Or Cyrus, which also supports DRAC natively. (Usually no recompile
needed).

> You don't have to recompile exim just add a rule:
>   accept  hosts      = net32-dbm;/etc/mail/dracd.db
> to your acl_check_rcpt rules.

>
> Note that you have to tell Drac to use hash maps, CIDR notation and
> null
> terminated keys, add -DREQ_HASH -DCIDR_KEY -DTERM_KD to the DEFS
> parameter in your Drac Makefile. (After recompiling drac delete your
> dracd.db file, otherwise it won't restart.)


Actually, you don't need to add those -Ds if you use the following:

accept hosts = net-dbmnz;/path/to/dracd.db


Specfically:
   - -DREQ_HASH is redundant, because Exim4 sets the DBtype to DB_UNKNOWN
     before performing the DBM lookup.  The lookup succeeds both for
     'hash' and 'btree' databases (the latter is the default for 'drac').


   - -DCIDR_KEY is not needed if you use the "net-" prefix rather than
     "net32-". That way, Exim will lookup "x.y.z.w", rather than
     "x.y.z.w/32".


   - -DTERM_KD is not needed if you use the "dbmnz" (non-zero-terminated)
     lookup type.



On a Debian system, simply install "cyrus21-imap" (or another POP3/IMAP
server that supports DRAC), and the standard "drac" package (no
recompile needed), and add this line to your
/etc/exim4/conf.d/acl/30_exim4-config_check_rcpt (prior to the last
"deny message = relay not permitted" line):

    accept hosts = net-dbmnz;/var/lib/drac/dracd.db