XMailforum is a readonly knowledge archive now.

Registering as a new user or answering posts is not possible anymore.

Might the force be with you, to find here what you are looking for.

2019-09-20 - hschneider, Admin

Cookie Disclaimer: This forum uses only essential, anonymous session cookies (xmailforum*), nothing to be scared of.

XMail Forum [Powered by Invision Power Board]
Printable Version of Topic
Click here to view this topic in its original format
XMail Forum > XMail Server > Unable To Create Directory


Posted by: Manthis Nov 17 2009, 02:22 PM
Hi,

I'm presently encountering a problem with my XMail server. Since the november the 10th, it refuses to start. I've been investigating without success until now.

The only hint I got is a log message in /var/log/daemon.log saying "Unable to create directory". I suppose this message is the result of inappropriate permissions but since there is no directory specified in the error message, I have no idea where the problem comes from.

My concern is that since my XMail sever is down, no emails can be sent or received until I fix this problem. And this became really urgent now...

Thanks in advance


Posted by: Manthis Nov 22 2009, 07:57 PM
I still gave the same error even while trying to launch the XMail server by hand:

CODE
# /var/lib/xmail/bin/XMail -Md -Pl -Sl -Fl -Cl -Ll
Unable to create directory


Is there someone who know which directory it is?

I made an other test too. I tried to reconfigure the xmail package with dpkg and here is the error I get:

CODE
Starting /var/lib/xmail/bin/XMail...
XMail.
I: Adding new domain.
ErrCode   = -162
ErrString = End of socket stream data


Anybody has an idea about what it could be?

Posted by: Saint2000 Nov 22 2009, 09:19 PM
what`s about the permissions on /etc/xmail and /var/lib/xmail (and all subdirectories)?

Which Distri? Which Version?

Posted by: Manthis Nov 23 2009, 07:58 AM
Ok the distrib is a Debian Etch and the version of xmail is 1.22-5.

Permissions on /etc/xmail:
drwxr-xr-x 2 root root 4096 2009-11-22 19:41 xmail

Permissions on /et/xmail/ files:
-rw-r--r-- 1 root root 0 2008-01-01 04:48 aliasdomain.tab
-rw-rw-rw- 1 root root 409 2008-01-05 16:49 aliases.tab
-rw-r--r-- 1 root root 109 2009-11-21 10:27 cmd_line
-rw-r--r-- 1 root root 147 2009-11-22 20:12 ctrlaccounts.tab
-rw-r--r-- 1 root root 79 2008-01-01 04:48 ctrl.ipmap.tab
-rw-r--r-- 1 root root 19 2008-01-02 17:54 default_domain
-rw-r--r-- 1 root root 260 2008-01-01 04:48 dnsroots
-rw-rw-rw- 1 root root 21 2008-01-02 00:46 domains.tab
-rw-r--r-- 1 root root 0 2008-01-01 04:48 extaliases.tab
-rw-r--r-- 1 root root 0 2008-01-01 04:48 filters.in.tab
-rw-r--r-- 1 root root 0 2008-01-01 04:48 filters.out.tab
-rw-r--r-- 1 root root 0 2008-01-01 04:48 filters.post-data.tab
-rw-r--r-- 1 root root 0 2008-01-01 04:48 filters.pre-data.tab
-rw-r--r-- 1 root root 72 2008-01-14 20:55 finger.ipmap.tab
-rw-rw-rw- 1 root root 344 2008-01-14 21:00 mailusers.tab
-rw-r--r-- 1 root root 32 2008-01-02 00:23 pop3.ipmap.tab
-rw-rw-rw- 1 root root 349 2008-08-15 12:29 pop3links.tab
-rw-r--r-- 1 root root 1722 2008-08-15 12:23 server.tab
-rw-r--r-- 1 root root 0 2008-01-01 04:48 smtpauth.tab
-rw-r--r-- 1 root root 0 2008-01-01 04:48 smtpextauth.tab
-rw-r--r-- 1 root root 0 2008-01-01 04:48 smtpfwd.tab
-rw-r--r-- 1 root root 0 2008-01-01 04:48 smtpgw.tab
-rw-r--r-- 1 root root 32 2008-01-02 00:22 smtp.ipmap.tab
-rw-r--r-- 1 root root 0 2008-01-01 04:48 smtp.ipprop.tab
-rw-r--r-- 1 root root 0 2008-01-12 16:02 smtprelay.tab
-rw-r--r-- 1 root root 2 2008-01-02 01:19 spam-address.tab
-rw-r--r-- 1 root root 22145 2009-10-22 11:25 spammers.tab
-rw-r--r-- 1 root root 304 2008-01-02 01:27 userdef.tab

Permissions on /var/lib/xmail:
drwx--x--x 8 root root 4096 2009-11-22 20:24 xmail

Here, I noticed that 711 might be the problem. But I tried changing the permissions for 777 and nothing changed, still have the same: "Unable to create directory' error.

Permissions on /var/lib/xmail files:
lrwxrwxrwx 1 root root 26 2009-11-08 15:55 aliasdomain.tab -> /etc/xmail/aliasdomain.tab
lrwxrwxrwx 1 root root 22 2009-11-08 15:55 aliases.tab -> /etc/xmail/aliases.tab
lrwxrwxrwx 1 root root 9 2009-11-08 15:55 bin -> /usr/sbin
drwxr-xr-x 3 root root 4096 2009-11-08 15:55 cmdaliases
lrwxrwxrwx 1 root root 19 2009-11-22 19:39 cmd_line -> /etc/xmail/cmd_line
lrwxrwxrwx 1 root root 27 2009-11-08 15:55 ctrlaccounts.tab -> /etc/xmail/ctrlaccounts.tab
lrwxrwxrwx 1 root root 25 2009-11-08 15:55 ctrl.ipmap.tab -> /etc/xmail/ctrl.ipmap.tab
-rw-r--r-- 1 root root 7 2007-02-16 11:39 curr_ver
drwxr-xr-x 2 root root 4096 2008-01-01 05:27 custdomains
lrwxrwxrwx 1 root root 26 2009-11-08 15:55 dnscache -> ../../cache/xmail/dnscache
lrwxrwxrwx 1 root root 19 2009-11-08 15:55 dnsroots -> /etc/xmail/dnsroots
lrwxrwxrwx 1 root root 25 2009-11-08 15:55 domains -> ../../spool/xmail/domains
lrwxrwxrwx 1 root root 22 2009-11-08 15:55 domains.tab -> /etc/xmail/domains.tab
lrwxrwxrwx 1 root root 25 2009-11-08 15:55 extaliases.tab -> /etc/xmail/extaliases.tab
drwxr-xr-x 2 root root 4096 2007-02-16 11:39 filters
lrwxrwxrwx 1 root root 25 2009-11-08 15:55 filters.in.tab -> /etc/xmail/filters.in.tab
lrwxrwxrwx 1 root root 26 2009-11-08 15:55 filters.out.tab -> /etc/xmail/filters.out.tab
lrwxrwxrwx 1 root root 32 2009-11-08 15:55 filters.post-data.tab -> /etc/xmail/filters.post-data.tab
lrwxrwxrwx 1 root root 31 2009-11-08 15:55 filters.pre-data.tab -> /etc/xmail/filters.pre-data.tab
lrwxrwxrwx 1 root root 27 2009-11-08 15:55 finger.ipmap.tab -> /etc/xmail/finger.ipmap.tab
lrwxrwxrwx 1 root root 15 2009-11-08 15:55 logs -> ../../log/xmail
lrwxrwxrwx 1 root root 24 2009-11-08 15:55 mailusers.tab -> /etc/xmail/mailusers.tab
-rw-r--r-- 1 root root 5 2009-11-16 22:13 message.id.backup
lrwxrwxrwx 1 root root 25 2009-11-08 15:55 pop3.ipmap.tab -> /etc/xmail/pop3.ipmap.tab
lrwxrwxrwx 1 root root 31 2009-11-08 15:55 pop3linklocks -> ../../spool/xmail/pop3linklocks
drwxr-xr-x 2 root root 4096 2007-02-16 11:39 pop3links
lrwxrwxrwx 1 root root 24 2009-11-08 15:55 pop3links.tab -> /etc/xmail/pop3links.tab
lrwxrwxrwx 1 root root 27 2009-11-08 15:55 pop3locks -> ../../spool/xmail/pop3locks
drwxr-xr-x 2 root root 4096 2009-11-22 19:39 sendmail
lrwxrwxrwx 1 root root 21 2009-11-08 15:55 server.tab -> /etc/xmail/server.tab
lrwxrwxrwx 1 root root 23 2009-11-08 15:55 smtpauth.tab -> /etc/xmail/smtpauth.tab
lrwxrwxrwx 1 root root 26 2009-11-08 15:55 smtpextauth.tab -> /etc/xmail/smtpextauth.tab
lrwxrwxrwx 1 root root 22 2009-11-08 15:55 smtpfwd.tab -> /etc/xmail/smtpfwd.tab
lrwxrwxrwx 1 root root 21 2009-11-08 15:55 smtpgw.tab -> /etc/xmail/smtpgw.tab
lrwxrwxrwx 1 root root 25 2009-11-08 15:55 smtp.ipmap.tab -> /etc/xmail/smtp.ipmap.tab
lrwxrwxrwx 1 root root 26 2009-11-08 15:55 smtp.ipprop.tab -> /etc/xmail/smtp.ipprop.tab
lrwxrwxrwx 1 root root 24 2009-11-08 15:55 smtprelay.tab -> /etc/xmail/smtprelay.tab
lrwxrwxrwx 1 root root 27 2009-11-08 15:55 spam-address.tab -> /etc/xmail/spam-address.tab
lrwxrwxrwx 1 root root 23 2009-11-08 15:55 spammers.tab -> /etc/xmail/spammers.tab
lrwxrwxrwx 1 root root 23 2009-11-08 15:55 spool -> ../../spool/xmail/spool
lrwxrwxrwx 1 root root 26 2009-11-08 15:55 tabindex -> ../../cache/xmail/tabindex
drwxr-xr-x 4 root root 4096 2009-11-08 15:55 userauth
lrwxrwxrwx 1 root root 22 2009-11-08 15:55 userdef.tab -> /etc/xmail/userdef.tab

If you need anyhting else, let me know...

Posted by: mprowe Nov 26 2009, 11:02 AM
Hi Manthis,

Have a look at my posting (imediatly above yours).
Does this help?

Regards, Martin

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)