dr34m3rs
asked on
Linux: Sendmail: Makemap: Error opening hash map access: Invalid argument
I compiled sendmail from source.
The command "/usr/sbin/makemap hash virtusertable < virtusertable" works
The command "/usr/sbin/makemap hash access < access" gives me this error:
access.db: Invalid type 5 specified
makemap: error opening type hash map access: Invalid argument
I've tried everything I can think of. Any help would be very much appreciated!
The command "/usr/sbin/makemap hash virtusertable < virtusertable" works
The command "/usr/sbin/makemap hash access < access" gives me this error:
access.db: Invalid type 5 specified
makemap: error opening type hash map access: Invalid argument
I've tried everything I can think of. Any help would be very much appreciated!
Is there a zero-length line in access ?
Did you try to delete access.db before running makemap?
Did you try to delete access.db before running makemap?
ASKER
I did try to delete access.db
In face I ran "make clean" then "make" but still have errors. I read it on a forum, oops.
Now, nothing works. Everything comes back with the same error:
/usr/sbin/makemap hash virtusertable < virtusertable
virtusertable.db: Invalid type 5 specified
makemap: error opening type hash map virtusertable: Invalid argument
Here is ls -l of /etc/mail:
-rw-r--r-- 1 root root 0 Oct 29 17:43 access
-rw-r--r-- 1 root root 85 Oct 29 17:43 aliases
drwxr-xr-x 2 root root 4096 Oct 24 16:03 certs
-rw-r--r-- 1 root root 0 Mar 15 2007 domaintable
-r--r--r-- 1 bin bin 5657 Oct 29 17:40 helpfile
-rw-r--r-- 1 root root 81 Oct 29 17:42 local-host-names
-rw-r--r-- 1 root root 0 Mar 15 2007 mailertable
-rw-r--r-- 1 root root 1048 Mar 15 2007 Makefile
-rw-r--r-- 1 root root 113 Oct 24 19:39 relay-domains
-r--r--r-- 1 root root 60160 Oct 29 17:42 sendmail.cf
-rw-r--r-- 1 root root 7263 Oct 29 16:15 sendmail.mc
-rw------- 1 root bin 0 Oct 29 17:40 statistics
-r--r--r-- 1 root root 41275 Mar 15 2007 submit.cf
-rw-r--r-- 1 root root 940 Mar 15 2007 submit.mc
-rw-r--r-- 1 root root 127 Mar 15 2007 trusted-users
-rw-r--r-- 1 root root 620 Oct 29 17:42 virtusertable
-rw-r----- 1 root root 0 Oct 29 17:55 virtusertable.db
You will notice after I run a command the db will be created after the error, but no data will be inside. I do not know anything about makemap, or how to repair / rebuild it's "database"? Thanks for any help! I am pretty stuck!
In face I ran "make clean" then "make" but still have errors. I read it on a forum, oops.
Now, nothing works. Everything comes back with the same error:
/usr/sbin/makemap hash virtusertable < virtusertable
virtusertable.db: Invalid type 5 specified
makemap: error opening type hash map virtusertable: Invalid argument
Here is ls -l of /etc/mail:
-rw-r--r-- 1 root root 0 Oct 29 17:43 access
-rw-r--r-- 1 root root 85 Oct 29 17:43 aliases
drwxr-xr-x 2 root root 4096 Oct 24 16:03 certs
-rw-r--r-- 1 root root 0 Mar 15 2007 domaintable
-r--r--r-- 1 bin bin 5657 Oct 29 17:40 helpfile
-rw-r--r-- 1 root root 81 Oct 29 17:42 local-host-names
-rw-r--r-- 1 root root 0 Mar 15 2007 mailertable
-rw-r--r-- 1 root root 1048 Mar 15 2007 Makefile
-rw-r--r-- 1 root root 113 Oct 24 19:39 relay-domains
-r--r--r-- 1 root root 60160 Oct 29 17:42 sendmail.cf
-rw-r--r-- 1 root root 7263 Oct 29 16:15 sendmail.mc
-rw------- 1 root bin 0 Oct 29 17:40 statistics
-r--r--r-- 1 root root 41275 Mar 15 2007 submit.cf
-rw-r--r-- 1 root root 940 Mar 15 2007 submit.mc
-rw-r--r-- 1 root root 127 Mar 15 2007 trusted-users
-rw-r--r-- 1 root root 620 Oct 29 17:42 virtusertable
-rw-r----- 1 root root 0 Oct 29 17:55 virtusertable.db
You will notice after I run a command the db will be created after the error, but no data will be inside. I do not know anything about makemap, or how to repair / rebuild it's "database"? Thanks for any help! I am pretty stuck!
ASKER
I even recompiled and installed sendmail / berkeleyDB thinking it may help, but it didn't.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I completely removed everything sendmail and berkeley DB related and recompiled from a version down of berkeley DB and now it's working. Thanks!
ASKER
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
451 4.0.0 Cannot open hash database /etc/mail/access.db: Bad file descriptor