LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-23-2008, 09:06 AM   #1
brgsousa
Member
 
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185

Rep: Reputation: 15
Changing HD's and things go wrong with squirrelmail (or imap)


Hi,
I run a mail server on a Debian machine. the /var/mail partition is mounted like this:
Code:
/dev/sda3        /var/mail         ext3     defaults,usrquota,grpquota    0      2
And it has 60 gigs of space.

Now i am adding a new HD of 400 gigs to replace this partition. So i copied all the data from the old hd to the new one with:
Code:
cp -Rdp
And then changed the old fstab entry to this new one:
Code:
/dev/hdb1         /var/mail         ext3      defaults,usrquota,grpquota    0       2
Then rebooted.
I don't know much about mail server and quotas. So I supposed I did something wrong coz the squirrel mail isn't not able to log in anymore. I get this message error:
Code:
Error connecting to server IMAP: localhost.
111 : Connection refused
All files were copied fine.
What could have happenned?

Thanks

Last edited by brgsousa; 08-23-2008 at 09:18 AM.
 
Old 08-23-2008, 09:15 AM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
please post the full copy command, and what the mount state was when you did it.

Last edited by matthewg42; 08-23-2008 at 09:15 AM. Reason: typo
 
Old 08-23-2008, 09:17 AM   #3
brgsousa
Member
 
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185

Original Poster
Rep: Reputation: 15
I used this one:
Code:
cp -Rdp /var/mail /mnt/new_hd
At this moment /var/mail was /dev/sda3 (the old one). And /mnt/new_hd was /dev/hdb1 (the new one).
 
Old 08-23-2008, 09:40 AM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Did you shut down your mail server before copying? (I assume it was re-started on reboot).

Does you mail server software create any logs? Is there anything in the logs?
 
Old 08-23-2008, 09:50 AM   #5
brgsousa
Member
 
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185

Original Poster
Rep: Reputation: 15
All services were down when I copied the files.

Logs:
Code:
fazendeiro:/var/log# tail mail.log
Aug 23 11:47:33 fazendeiro gnu-pop3d[8539]: unexpected eof on input
Aug 23 11:47:33 fazendeiro gnu-pop3d[8539]: No socket to send to
Aug 23 11:47:33 fazendeiro gnu-pop3d[8540]: Incoming connection opened
Aug 23 11:47:33 fazendeiro gnu-pop3d[8540]: connect from 0.0.0.0
Aug 23 11:47:34 fazendeiro gnu-pop3d[8540]: User `murilofalcao' logged in with mailbox `/dev/null' (0 messages)
Aug 23 11:47:36 fazendeiro gnu-pop3d[8540]: Session ended for user: murilofalcao
Aug 23 11:47:43 fazendeiro gnu-pop3d[8544]: Incoming connection opened
Aug 23 11:47:43 fazendeiro gnu-pop3d[8544]: connect from 0.0.0.0
Aug 23 11:47:44 fazendeiro gnu-pop3d[8544]: User `hermano' logged in with mailbox `/dev/null' (0 messages)
Aug 23 11:47:45 fazendeiro gnu-pop3d[8544]: Session ended for user: hermano
fazendeiro:/var/log# tail mail.err
Aug 23 11:38:41 fazendeiro gnu-pop3d[8341]: unexpected eof on input
Aug 23 11:42:43 fazendeiro gnu-pop3d[8433]: unexpected eof on input
Aug 23 11:43:18 fazendeiro gnu-pop3d[8443]: unexpected eof on input
Aug 23 11:43:22 fazendeiro gnu-pop3d[8445]: unexpected eof on input
Aug 23 11:44:02 fazendeiro gnu-pop3d[8453]: unexpected eof on input
Aug 23 11:44:27 fazendeiro gnu-pop3d[8462]: unexpected eof on input
Aug 23 11:45:04 fazendeiro gnu-pop3d[8487]: unexpected eof on input
Aug 23 11:46:26 fazendeiro gnu-pop3d[8514]: unexpected eof on input
Aug 23 11:47:01 fazendeiro gnu-pop3d[8528]: unexpected eof on input
Aug 23 11:47:33 fazendeiro gnu-pop3d[8539]: unexpected eof on input
fazendeiro:/var/log# date
Sáb Ago 23 11:48:27 BRT 2008
fazendeiro:/var/log# tail mail.warn
Aug 23 11:42:43 fazendeiro gnu-pop3d[8433]: unexpected eof on input
Aug 23 11:43:18 fazendeiro gnu-pop3d[8443]: unexpected eof on input
Aug 23 11:43:22 fazendeiro gnu-pop3d[8445]: unexpected eof on input
Aug 23 11:44:02 fazendeiro gnu-pop3d[8453]: unexpected eof on input
Aug 23 11:44:27 fazendeiro gnu-pop3d[8462]: unexpected eof on input
Aug 23 11:45:04 fazendeiro gnu-pop3d[8487]: unexpected eof on input
Aug 23 11:46:26 fazendeiro gnu-pop3d[8514]: unexpected eof on input
Aug 23 11:47:01 fazendeiro gnu-pop3d[8528]: unexpected eof on input
Aug 23 11:47:33 fazendeiro gnu-pop3d[8539]: unexpected eof on input
Aug 23 11:48:49 fazendeiro gnu-pop3d[8551]: unexpected eof on input
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: 5 Things Wrong With Microsoft Authorized Refurbisher Program (MAR) LXer Syndicated Linux News 0 01-14-2008 04:10 PM
Is my PC too old for linux or am I doing things wrong? pauloszz Ubuntu 23 01-13-2007 06:16 AM
Changing the order in which things load evannextel Linux - General 2 07-28-2004 05:49 PM
Things to backup when changing distro? Kernel_Sanders Linux - General 3 02-03-2004 11:49 AM
installed wrong version of up2date RPM -- did I screw things up? killjoyce Linux - Newbie 1 10-16-2003 01:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration