On Wed, Sep 16, 2009 at 09:08:09AM +1000, Simon Horman wrote:
On Tue, Sep 15, 2009 at 12:24:56PM -0700, Zane Cirne
wrote:
Hi,
I am testing perdition-pbs and I am not sure how the information should
appear in the popauth.bd. I see that the IP address of my external
machine that I used for IMAP4s access is being added to popauth.db (but
there are some extra characters on it):
VERSION=3
format=print
type=hash
h_nelem=4
db_pagesize=4096
HEADER=END
POP:XX.XXX.XX.XX\00
POP:XX.XXX.XX.XX\00
TIME:POP:XX.XXX.XX.XX\00
\d0\f4\afJ
TIME:POP:XX.XXX.XX.XX\00
B\ec\afJ
DATA=END
How are you viewing the information in the popauth.db?
> The sendmail map lookup always fails for the key, but the IP is on the db.
>
> map_lookup(popauth, POP:XX.XX.XX.XX, %0=POP:XX.XX.XX.XX) => NOT FOUND (0)
> check_rcpt returns: $# error $@ 5 . 7 . 1 $: "550 Relaying denied"
>
> Please would perdtion-pbs work with Sendmail 8.14 and the sendmail
> POPAUTH hack from sendmail.org?
Hi,
I must confess that its a really long time since I've poked around
perdition-pbs. I think that the entries above are correct and the
non-ascii are the expiry timestamps stored as binary.
You can get an idea of how perdition-pbs reads what is in the database
by running 'perdition-pbs --mode list'. Unfortunately that doesn't help
your problem which seems to relate to how sendmail is reading what
is in the database.
Are you using the HACK('popauth') ruleset for sendmail? I have not tested
it, and I'm not sure if its out of date, but it looks like it should work.
http://www.sendmail.org/~ca/email/chk-89n.html
http://www.sendmail.org/~ca/email/rules/popauth.m4