Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
-ERR can't open message file it's gone [ probably SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mauzer
n00b
n00b


Joined: 26 Feb 2004
Posts: 40
Location: Slovenia

PostPosted: Sun Jun 03, 2007 10:19 am    Post subject: -ERR can't open message file it's gone [ probably SOLVED] Reply with quote

Hi, I have reinstalled whole system and configured mail system with postfix, courier-authlib, courier-imap, amavis,.... Now I'm getting an error in Outlook 2003:
Code:

-ERR can't open message file it's gone


But if I go directly to the console and use mutt I can see the mails in my maildir.


help please :?
_________________
ArecontVision, I can see you!


Last edited by mauzer on Mon Jun 04, 2007 6:41 am; edited 1 time in total
Back to top
View user's profile Send private message
di1bert
l33t
l33t


Joined: 16 May 2002
Posts: 963
Location: Oslo, Norway

PostPosted: Sun Jun 03, 2007 1:23 pm    Post subject: Reply with quote

I had a similar problem on my Exim / Courier setup. I believe the messages got corrupt some
how (the sizes were all 0) and the only way to sort it out was the remove them
with a manual telnet session...

Sorry I can't help any more than that...

-m
Back to top
View user's profile Send private message
mauzer
n00b
n00b


Joined: 26 Feb 2004
Posts: 40
Location: Slovenia

PostPosted: Sun Jun 03, 2007 1:29 pm    Post subject: Reply with quote

I have deleted the user account and the /home dir of the user. Then recreated the account and maildir. Then logged in with outlook to check if all goes well, and it did.

But then I sent a "test" mail to that account from another account and I got the same error back as described earlier. Looks like that when a mail gets delivered to maildir, something goes wrong....

Any suggestions?
_________________
ArecontVision, I can see you!
Back to top
View user's profile Send private message
di1bert
l33t
l33t


Joined: 16 May 2002
Posts: 963
Location: Oslo, Norway

PostPosted: Sun Jun 03, 2007 1:33 pm    Post subject: Reply with quote

Other than sending a test message through and checking the message with telnet before
Outlook there isn't much more I can suggest. It sounds to me like Outlook is
some how corrupting your messages, although why this is happening I don't know.

If you can, put Courier into debug mode and run a couple of tests while watching
/var/log/maillog (or whereever you log those messages to).

-m
Back to top
View user's profile Send private message
mauzer
n00b
n00b


Joined: 26 Feb 2004
Posts: 40
Location: Slovenia

PostPosted: Sun Jun 03, 2007 1:51 pm    Post subject: Reply with quote

This is what I get from logging...

Code:

Jun  3 15:48:43 linux pop3d: Connection, ip=[::ffff:192.168.0.2]
Jun  3 15:48:43 linux authdaemond: received auth request, service=pop3, authtype=login
Jun  3 15:48:43 linux authdaemond: authmysql: trying this module
Jun  3 15:48:43 linux authdaemond: SQL query: SELECT email, "", clear, uid, gid, homedir, maildir, quota, name, "" FROM users WHERE email = "user@dfreak.org"
Jun  3 15:48:43 linux authdaemond: authmysql: sysusername=<null>, sysuserid=1101, sysgroupid=1101, homedir=/home/user, address=user@dfreak.org, fullname=user, maildir=.maildir, quota=<null>, options=<null>
Jun  3 15:48:43 linux authdaemond: authmysql: clearpasswd=********, passwd=<null>
Jun  3 15:48:43 linux authdaemond: Authenticated: sysusername=<null>, sysuserid=1101, sysgroupid=1101, homedir=/home/user, address=user@dfreak.org, fullname=user, maildir=.maildir, quota=<null>, options=<null>
Jun  3 15:48:43 linux authdaemond: Authenticated: clearpasswd=********, passwd=<null>
Jun  3 15:48:43 linux pop3d: LOGIN, user=user@dfreak.org, ip=[::ffff:192.168.0.2]
Jun  3 15:48:43 linux pop3d: LOGOUT, user=user@dfreak.org, ip=[::ffff:192.168.0.2], top=0, retr=0, time=0

_________________
ArecontVision, I can see you!
Back to top
View user's profile Send private message
mauzer
n00b
n00b


Joined: 26 Feb 2004
Posts: 40
Location: Slovenia

PostPosted: Sun Jun 03, 2007 5:30 pm    Post subject: Reply with quote

Here is what telnet to 110 gave me

Code:
linux ~ # telnet localhost 110
Trying 127.0.0.1...
Connected to linux.domain.tld.
Escape character is '^]'.
+OK Hello there.
USER user
+OK Password required.
PASS ********
+OK logged in.
LIST
+OK POP3 clients that break here, they violate STD53.
1 0
2 0
3 0
.
RETR 1
-ERR Can't open the message file - it's gone!
quit
+OK Bye-bye.
Connection closed by foreign host.

_________________
ArecontVision, I can see you!
Back to top
View user's profile Send private message
di1bert
l33t
l33t


Joined: 16 May 2002
Posts: 963
Location: Oslo, Norway

PostPosted: Sun Jun 03, 2007 6:07 pm    Post subject: Reply with quote

Sorry for the delay, had to get out the house for a bit :)

Did you do that manual telnet session before or after logging into the account
with Outlook. Either Outlook is corrupting the messages in the spool directory
or there is something else that's breaking it. I see you're using MySQL for storing
your user details, are you also storing mail there ?

There isn't anything wrong with the authentication side of things so it's going
to be something else, either your MTA (unlikely) or perhaps your
client (Outlook, likely)

-m
Back to top
View user's profile Send private message
mauzer
n00b
n00b


Joined: 26 Feb 2004
Posts: 40
Location: Slovenia

PostPosted: Mon Jun 04, 2007 6:36 am    Post subject: Reply with quote

Looks like it's fixed :lol:
I haven't payed attention to uid & gid in mysql for user authentication. Mysql put some default values in there and it didn't work. I changed them with the ones that users actually have in the system and it is working :D

I just hope that this was the real error ;)
_________________
ArecontVision, I can see you!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum