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.
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? If
you would, please run "file /etc/courier/*.dat" and see what it has to
say. 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']
You can use anydbm.open() to open each of the dat files in sequence and
make sure they all have a reasonable set of keys.
-------------------------------------------------------------------------
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