[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unable to activate smtp-policy
> I can't get my zmailer to use the smtp-policy stuff. I've read
> the documentation, run the policy-builder.sh with no errors.
> When looking at the smtp-policy files with ndbmlook -dump
> I see the LHS key prepended by two bytes (is this length
> and type?) and the RHS looks odd also, very much different
> from a dump from the aliases files for instance.
The compiled policy database is in binary format, which
may make it weird looking.. Should the 'ndbmlook' have
some '-policydump' option to decode them ?
> System is AIX 4.1.5 and
> # cat /mail/smtpserver.conf
> PARAM policydb ndbm /mail/db/smtp-policy
> localhost 999 ftveR
> some.host.domain 999 !NO EMAIL ACCEPTED FROM YOUR MACHINE
> \[*\] 999 ve
> * 999 veR
> # /mail/bin/smtpserver -V
> ZMailer smtpserver (2.99.49p6a5 #1: Tue Aug 19 14:20:32 DFT 1997)
> Copyright 1992 Rayan S. Zachariassen
> Copyright 1992-1997 Matti Aarnio
> # ls -l /mail/db/smtp-policy.*
> -rw-r--r-- 1 root sys 26148 Aug 25 15:58 /mail/db/smtp-policy.dat
> -rw-r--r-- 1 root sys 4096 Aug 25 15:58 /mail/db/smtp-policy.dir
> -rw-r--r-- 1 root sys 32768 Aug 25 15:58 /mail/db/smtp-policy.pag
> -rw-r--r-- 1 root sys 17 Aug 25 15:58 /mail/db/smtp-policy.relay
> -rw-r--r-- 1 root sys 9346 Aug 25 15:58 /mail/db/smtp-policy.spam
> -rw-r--r-- 1 root sys 9832 Aug 25 15:55 /mail/db/smtp-policy.src
This looks ok too.
> When connecting with SMTP and using one of the addresses in smtp-policy.spam
> as from address zmailer just OK's everything. Setting _our_network to
> refuse everyting doesn't have any effect either.
> Does anyone understand what is happening, is there some way to log
> this, or add logging to the source, that will help tracing this?
Short of having a debugger attached to the smtpserver, I don't
have any ideas on what might be the culprit here.
I have tried following kind of interactive running:
(Adapting to your paths)
$ /mail/bin/smtpserver -i -d 1
(lots of debug output when things work)
> E-Mail: Martin.Wendel@ITS.UU.SE Snail-Mail: ITS
> Tel: 018 471 77 80 Box 887
> Int: +46 18 471 77 80 S-751 08 Uppsala
> Fax: +46 18 471 79 10 Sweden
/Matti Aarnio <firstname.lastname@example.org>