No, I'm not running dbmail in a restricted environment
Eelko
On 18 Jan 2005, at 9:16, Paul J Stevens wrote:
You always have to start as root. The daemon won't be able to bind the
imap port otherwise.
Are you by chance running inside some kind of restricted access
environment, like freebsd's jail?
Eelko Potters wrote:
Hello Paul,
I applied your patch and recompiled. Must admit I do not have much
experience in c code or applying patches to it. I googled for it and
ended up applying them manually. Nevertheless I don't think I made
mistakes here.
The error is still there:
Jan 18 00:46:16 Iruka dbmail/imap4d[12248]: dbpgsql.c,db_query:
executing query [SELECT 1=1 FROM dbmail_physmessage LIMIT 1 OFFSET 0]
Jan 18 00:46:18 Iruka dbmail/imap4d[12248]: StartServer(): init ok.
Creating children..
Jan 18 00:46:18 Iruka dbmail/imap4d[12248]: pool.c,scoreboard_new:
scoreboard init failed [Permission denied]
Jan 18 00:46:19 Iruka dbmail/imap4d[12247]: main(): server has
exited, exit status [75]
Jan 18 00:46:19 Iruka dbmail/imap4d[12247]: main(): exit
only now it says [Permission denied]. That's the only difference I
see. Permission to do what? I start as root for now just to get it
working
The other error is the same as before:
Jan 18 00:59:22 Iruka dbmail/imap4d[12313]: dbpgsql.c,db_query:
executing query [SELECT 1=1 FROM dbmail_physmessage LIMIT 1 OFFSET 0]
Jan 18 00:59:22 Iruka dbmail/imap4d[12313]: StartServer(): init ok.
Creating children..
Jan 18 00:59:22 Iruka dbmail/imap4d[12313]: pool.c,scoreboard_new:
shmget failed
Jan 18 00:59:24 Iruka dbmail/imap4d[12312]: main(): server has
exited, exit status [75]
Jan 18 00:59:24 Iruka dbmail/imap4d[12312]: main(): exit
Eelko
On 16 Jan 2005, at 9:02, Paul J Stevens wrote:
Eelco,
On second thought, 'scoreboard init failed' indicates a shmat
problem. Could you please test attached patch. Not that it will fix
anything, but it will make failure more verbose.
Eelko Potters wrote:
No, the file /tmp/dbmail_scoreboard.lck is not there. I tried
starting dbmail as root to make sure it was able to overwrite
anything. That didn't work either...
No solution yet. Maybe it's possible to create the scoreboard file
myself, only I have no idea where it should be
On 14 Jan 2005, at 3:50, Steven Lynn wrote:
Check to see if there is a /tmp/dbmail_scoreboard.lck file that
the service can not overwrite. I had that problem with I went from
2.0.2 to 2.0.3...
On Fri, 2005-01-14 at 02:48 +0100, Eelko Potters wrote:
I have been trying to get DBMail to work on my Mac (OS X 10.3.7)
for
some time now. Each new release seems to fix some problems and
create
some new ones too.
The latest version (2.0.3) compiles with only a minor ajustment
to the
generated MakeFile.
But when I try to start dbmail-imapd, the process exits with the
following error:
Jan 14 02:07:35 localhost dbmail/imap4d[684]: dbpgsql.c,db_query:
executing query [SELECT 1=1 FROM dbmail_physmessage LIMIT 1
OFFSET 0]
Jan 14 02:07:35 localhost dbmail/imap4d[684]: StartServer(): init
ok.
Creating children..
Jan 14 02:07:35 localhost dbmail/imap4d[684]:
pool.c,scoreboard_new:
scoreboard init failed
Jan 14 02:07:37 localhost dbmail/imap4d[683]: main(): server has
exited, exit status [75]
Jan 14 02:07:37 localhost dbmail/imap4d[683]: main(): exit
after a few attempts, the error changes to:
Jan 14 02:07:42 localhost dbmail/imap4d[692]: dbpgsql.c,db_query:
executing query [SELECT 1=1 FROM dbmail_physmessage LIMIT 1
OFFSET 0]
Jan 14 02:07:42 localhost dbmail/imap4d[692]: StartServer(): init
ok.
Creating children..
Jan 14 02:07:42 localhost dbmail/imap4d[692]:
pool.c,scoreboard_new:
shmget failed
Jan 14 02:07:44 localhost dbmail/imap4d[691]: main(): server has
exited, exit status [75]
Jan 14 02:07:44 localhost dbmail/imap4d[691]: main(): exit
Any ideas?
Eelko
_______________________________________________
Dbmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail
_______________________________________________
Dbmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail
_______________________________________________
Dbmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail
--
________________________________________________________________
Paul Stevens mailto:[EMAIL PROTECTED]
NET FACILITIES GROUP PGP: finger [EMAIL PROTECTED]
The Netherlands________________________________http://www.nfg.nl
diff -u -r1.10.2.2 pool.c
--- pool.c 2005/01/15 00:12:36 1.10.2.2
+++ pool.c 2005/01/16 07:57:27
@@ -26,6 +26,8 @@
#include <sys/wait.h>
#include <sys/shm.h>
#include <time.h>
+#include <string.h>
+#include <errno.h>
#define P_SIZE 100000
@@ -70,11 +72,13 @@
void scoreboard_new(serverConfig_t * conf)
{
+ int serr;
if ((shmid = shmget(IPC_PRIVATE, P_SIZE, 0644 | IPC_CREAT))
== -1)
- trace(TRACE_FATAL, "%s,%s: shmget
failed",__FILE__,__FUNCTION__);
+ trace(TRACE_FATAL, "%s,%s: shmget
failed",__FILE__,__func__);
scoreboard = shmat(shmid, (void *) 0, 0);
+ serr=errno;
if (scoreboard == (Scoreboard_t *) (-1)) {
- trace(TRACE_FATAL, "%s,%s: scoreboard init
failed",__FILE__,__FUNCTION__);
+ trace(TRACE_FATAL, "%s,%s: scoreboard init failed
[%s]",__FILE__,__func__,strerror(serr));
scoreboard_delete();
}
scoreboard_lock_new();
_______________________________________________
Dbmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail
_______________________________________________
Dbmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail
--
________________________________________________________________
Paul Stevens [EMAIL PROTECTED]
NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
The Netherlands_______________________________________www.nfg.nl
_______________________________________________
Dbmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail