Gordon Messmer wrote:
> Steve Shockley wrote:
>> Gordon Messmer wrote:
>>  > That error from gdbm has been reported before, but I don't recall ever
>>  > seeing a fix for it, or even an explanation.  Remake all of your dbs
>>  > with the relevant "make.." command and see if it continues.  Maybe it
>>  > just means that you don't have a "hosteddomains.db" file?
>>
>> Well, I (now) have a hosteddomains.dat file.
>>
>> Sam Varshavchik wrote:
>>> The GDBM library can't digest something.  Try rerunning makealiases and
>>> makeacceptmailfor,.
>> I had run the make* a couple of times with no change.  I just tried 
>> deleting all the *.dat files and re-creating them, and now I'm getting 
>> 513 Relaying Denied (but no GDBM errors).
> 
> That would indicate that the domain isn't in esmtpacceptmailfor.dir (or 
> its .dat).
> 
> Just once more, remove all of the .dat files from /etc/courier, run:
> 
> makeacceptmailfor
> makesmtpaccess
> makealiases
> 
> ...and then restart courier.  If you still have a problem, try 
> rebuilding courier with a different DB library.

Well, the 513 error above was just a misconfiguration, I'm still able to 
duplicate the issue.  I was getting a 513 on all domains, oops.

I'd prefer not to switch DB libraries, since the "official" OpenBSD 
package for authlib uses gdb, and I'd prefer to use pre-built binaries 
where possible.

> Since this has been reported as an issue before, with no resolution, I'm 
> really curious as to what's going on.  What platform are you using?

OpenBSD 3.8, i386, courier-authlib 0.58, courier 0.52.1.

> If you would, please run "file /etc/courier/*.dat" and see what it has to 
> say.

aliases.dat:            GNU dbm 1.x or ndbm database, little endian
esmtpacceptmailfor.dat: GNU dbm 1.x or ndbm database, little endian
esmtppercentrelay.dat:  GNU dbm 1.x or ndbm database, little endian
hosteddomains.dat:      GNU dbm 1.x or ndbm database, little endian
smtpaccess.dat:         GNU dbm 1.x or ndbm database, little endian


>  Then run "python" and use it to print the keys from each dbm, like so:
> 
> # python
> Python 2.4.3 (#1, Mar 14 2007, 18:51:08)
> [GCC 4.1.1 20070105 (Red Hat 4.1.1-52)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>  >>> import anydbm
>  >>> test = anydbm.open('/etc/courier/smtpaccess.dat')
>  >>> print test.keys()
> ['192.168', '127.0.0.1', '10']

smtpaccess.dat: List of subnets in my blackist, mostly.

aliases.dat: List of @example.org addresses

esmtpacceptmailfor.dat: krunk.shockley.net, shockley.net, example.org

esmtppercentrelay.dat: empty

hosteddomains.dat: example.org


Any ideas what's going wrong?  Thanks.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to