Tiago Cruz | 28 Jul 00:38
Picon

Failed or refused to load /var/spool/mail/xxxx

Hello guys,

I'm trying to use the popa3d after some years without work with
mailservers (I was working just with webservers on ISP provider).

I'm using the popa3d-1.0.2-1mdv2007.0 package, the server is UP and
listen on 110/tcp port, the postfix it's working and delivering
messages on /var/spool/mail/user as well.

This is the problem:

$ telnet localhost 110
Trying 127.0.0.1...
Connected to orochimaru (127.0.0.1).
Escape character is '^]'.
+OK
user tiagocruz
+OK
pass 123456
-ERR
Connection closed by foreign host.

And this is the error on log:

Jul 18 00:17:36 orochimaru popa3d[12995]: Authentication passed for
tiagocruz -- [127.0.0.1]
Jul 18 00:17:36 orochimaru popa3d[12995]: Failed or refused to load
/var/spool/mail/tiagocruz

I don't have Idea of how can I solve this problem... someone can help me?
(Continue reading)

Stanislav | 28 Jul 11:56
Favicon

Re: Failed or refused to load /var/spool/mail/xxxx


Am 28.07.2007 um 00:42 schrieb Tiago Cruz:
> And this is the error on log:
>
> Jul 18 00:17:36 orochimaru popa3d[12995]: Authentication passed for
> tiagocruz -- [127.0.0.1]
> Jul 18 00:17:36 orochimaru popa3d[12995]: Failed or refused to load
> /var/spool/mail/tiagocruz

Ola Tiago,

are the permissions of /var/spool/mail/tiagocruz
respective /var/spool/mail correct?

  Stanislav

Solar Designer | 29 Jul 13:24

Re: Failed or refused to load /var/spool/mail/xxxx

On Fri, Jul 27, 2007 at 07:42:26PM -0300, Tiago Cruz wrote:
> I'm using the popa3d-1.0.2-1mdv2007.0 package, the server is UP and
> listen on 110/tcp port, the postfix it's working and delivering
> messages on /var/spool/mail/user as well.
...
> Jul 18 00:17:36 orochimaru popa3d[12995]: Failed or refused to load
> /var/spool/mail/tiagocruz

This can be caused by several things, listed here in arbitrary order:

1. The mbox file is corrupt (e.g., doesn't start with "From ").

2. The mbox file is too large (exceeds popa3d's compile-time safety
limits; I don't know what they are for the Mandriva package).

Try emptying the file with "> /var/spool/mail/tiagocruz" in the shell.

3. File permissions are wrong on the mbox file itself or/and on one or
more of the parent directories.

Are you able to access the file when logged in as user tiagocruz?

4. Something is broken in the system software or hardware.  There are
too many possibilities here, but they are relatively unlikely.

--

-- 
Alexander Peslyak <solar at openwall.com>
GPG key ID: 5B341F15  fp: B3FB 63F4 D7A3 BCCC 6F6E  FC55 A2FC 027C 5B34 1F15
http://www.openwall.com - bringing security into open computing environments

(Continue reading)

Tiago Cruz | 30 Jul 17:42
Picon

Re: Failed or refused to load /var/spool/mail/xxxx

Hello,

On 7/29/07, Solar Designer <solar@...> wrote:

> This can be caused by several things, listed here in arbitrary order:
> 1. The mbox file is corrupt (e.g., doesn't start with "From ").

I think not, it's a new mailbox... and I have 2 mailbox to do this
test (tiagocruz and tiago)

> 2. The mbox file is too large (exceeds popa3d's compile-time safety
> limits; I don't know what they are for the Mandriva package).

No, is too small... only test messages from a new postfix.

> 3. File permissions are wrong on the mbox file itself or/and on one or
> more of the parent directories.

tiagocruz owner and mail is grup, not permission to others. But I've
tried with "chmo 777" too and not works... :-(

> Are you able to access the file when logged in as user tiagocruz?

Yep! Using "mails" all works very well :-(

> 4. Something is broken in the system software or hardware.  There are
> too many possibilities here, but they are relatively unlikely.

It's one VM that i've created to do this test....

(Continue reading)

Solar Designer | 8 Aug 04:30

Re: Failed or refused to load /var/spool/mail/xxxx

On Mon, Jul 30, 2007 at 12:42:19PM -0300, Tiago Cruz wrote:
> Do you have any other idea? (how increase log messsage debug, for example?)

Unfortunately, popa3d does not include any code to provide more verbose
error messages.  Whenever this error message is seen, the problem is
almost always obvious; but it might not have been obvious for you.

I suggest that you either check and double-check the things already
suggested to you (for example, did you check all parent directory
permissions? including the root directory?) or start popa3d under
"strace -fF".  With strace, you would get more than enough information.

--

-- 
Alexander Peslyak <solar at openwall.com>
GPG key ID: 5B341F15  fp: B3FB 63F4 D7A3 BCCC 6F6E  FC55 A2FC 027C 5B34 1F15
http://www.openwall.com - bringing security into open computing environments

Tiago Cruz | 8 Aug 19:22
Picon

Re: Failed or refused to load /var/spool/mail/xxxx

Alexander,

On 8/7/07, Solar Designer <solar@...> wrote:

> I suggest that you either check and double-check the things already
> suggested to you (for example, did you check all parent directory
> permissions? including the root directory?) or start popa3d under
> "strace -fF".  With strace, you would get more than enough information.

Thanks for your suggestion.

Some days ago, I really was double checked this problem, permissions
of all path (/var/spool/mail/user), and I can't find the solution.

So, I've compiled from source, using standalone and without any path.
And works very well :-)

So, I've opened a bug in Mandriva Bugzilla, please, look at this link
maybe you can say some thing about... some patch that don't work with
Mailbox (only Maildir)...

http://qa.mandriva.com/show_bug.cgi?id=32270

Thanks!

--

-- 
Tiago Cruz
Linux User #282636
Mandriva Conectiva PRO Certified Linux Instructor

(Continue reading)


Gmane