Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 5th August 2011, 18:00
Cracklefish Cracklefish is offline
Member
 
Join Date: Mar 2009
Posts: 95
Thanks: 8
Thanked 3 Times in 3 Posts
Default

Sounds like a breeze, Lets hope I finish before the weekend finishes.
Thanks for all the help

Regards
Rick
Reply With Quote
Sponsored Links
  #12  
Old 5th August 2011, 18:27
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 99 Times in 95 Posts
Default

Just take it one step at the time, take your time, and try to understand what you're actually doing so you'll learn from it ..

ow and also, don't forget to grab a cold one now and then, it's weekend!!
Reply With Quote
  #13  
Old 8th August 2011, 20:46
Cracklefish Cracklefish is offline
Member
 
Join Date: Mar 2009
Posts: 95
Thanks: 8
Thanked 3 Times in 3 Posts
Default

Hi Mark,
Monday night and still not finished!

I have loaded the database from the old setup and all seems ok. How do I set up all the webx clienty user.group entries. I have to have that loaded before I can tar the web and mail data or the user.groups gets messed up.

Rgds
Rick
Reply With Quote
  #14  
Old 9th August 2011, 09:59
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 99 Times in 95 Posts
Default

You need to check the following files on the old server:
/etc/passwd
/etc/group

Those contain the web users and groups, you need to copy those to the other server.
you can simply copy and paste the "web*" lines and paste them into /etc/passwd on the new server.
The same for /etc/group but then the "client*" lines.

Next step is to copy all the mailboxes and websites to the new server.
Tar the dirs and then copy the tarballs to the other server and extract them.

(I'm assuming you're logged in as root)

To tar the websites:
Code:
tar -pczf websites.tar.gz /var/www/
To tar the mailboxes:
Code:
tar -pczf mailboxes.tar.gz /var/vmail/

Copy them to your other server:
Code:
scp websites.tar.gz newserver:/
scp mailboxes.tar.gz newserver:/
log into your new server:
Code:
cd /
tar -zxfv websites.tar.gz
tar -zxfv mailboxes.tar.gz
Reply With Quote
  #15  
Old 10th August 2011, 11:42
Cracklefish Cracklefish is offline
Member
 
Join Date: Mar 2009
Posts: 95
Thanks: 8
Thanked 3 Times in 3 Posts
Default

Thanks for that. Too many alligators in this swamp!!!

Maybe it was an own goal but I updated the OS at the same time and there are some differences between the setup for SuSE11.1 and 11.3
I'll leave it some time for 11.4 to settle down before upgrading to that.

Firstly, the websites cannot get data from MySQL I get an error:

Code:
Host 'xxx.co.uk' is not allowed to connect to this MySQL server
otherwise the apache, ispconfig and phpMyAdmin seem OK.

& secondly, mail seems to be arriving ok but pop3 requests from the email client are not working.

Squirrel mail is finding the mail.

I cant see anything obvious in the logs, its lools like the requests are going nowhere.

At least the SMTP is working which is why I started this whole process.
Reply With Quote
  #16  
Old 11th August 2011, 10:59
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by Cracklefish View Post
Firstly, the websites cannot get data from MySQL I get an error:

Code:
Host 'xxx.co.uk' is not allowed to connect to this MySQL server
Is the MySQL server on the same server as the web sites? If so, you should configure your sites to connect to localhost instead of xxx.co.uk.

Quote:
Originally Posted by Cracklefish View Post
& secondly, mail seems to be arriving ok but pop3 requests from the email client are not working.
What are the outputs of
Code:
netstat -tap
and
Code:
iptables -L
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #17  
Old 11th August 2011, 12:15
Cracklefish Cracklefish is offline
Member
 
Join Date: Mar 2009
Posts: 95
Thanks: 8
Thanked 3 Times in 3 Posts
Default

netstst -tap gives:

Code:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name   
tcp        0      0 *:sunrpc                *:*                     LISTEN      1597/rpcbind        
tcp        0      0 *:ftp                   *:*                     LISTEN      2348/pure-ftpd (SER 
tcp        0      0 xxxxxx.c:domain         *:*                     LISTEN      1957/named          
tcp        0      0 xxxxxx.c:domain         *:*                     LISTEN      1957/named          
tcp        0      0 localhost:domain        *:*                     LISTEN      1957/named          
tcp        0      0 *:ssh                   *:*                     LISTEN      1647/sshd           
tcp        0      0 localhost:ipp           *:*                     LISTEN      2196/cupsd          
tcp        0      0 *:smtp                  *:*                     LISTEN      2431/master         
tcp        0      0 localhost:953           *:*                     LISTEN      1957/named          
tcp        0      0 localhost:10024         *:*                     LISTEN      1769/amavisd (ch19- 
tcp        0      0 localhost:10025         *:*                     LISTEN      2431/master         
tcp        0      0 *:mysql                 *:*                     LISTEN      2121/mysqld         
tcp        0      0 localhost:dyna-access   *:*                     LISTEN      1664/clamd          
tcp        0      0 xxxxxx.co.u:ssh         192.168.1.38:49365      ESTABLISHED 12784/0             
tcp        0      0 localhost:mysql         localhost:46246         ESTABLISHED 2121/mysqld         
tcp        0      0 localhost:46246         localhost:mysql         ESTABLISHED 1864/amavisd (ch6-a 
tcp        0      0 localhost:36800         localhost:mysql         ESTABLISHED 1769/amavisd (ch19- 
tcp        0      0 localhost:mysql         localhost:36800         ESTABLISHED 2121/mysqld         
tcp        0      0 *:sunrpc                *:*                     LISTEN      1597/rpcbind        
tcp        0      0 *:http-alt              *:*                     LISTEN      8219/httpd2-prefork 
tcp        0      0 *:www-http              *:*                     LISTEN      8219/httpd2-prefork 
tcp        0      0 *:sunproxyadmin         *:*                     LISTEN      8219/httpd2-prefork 
tcp        0      0 *:ftp                   *:*                     LISTEN      2348/pure-ftpd (SER 
tcp        0      0 *:domain                *:*                     LISTEN      1957/named          
tcp        0      0 *:ssh                   *:*                     LISTEN      1647/sshd           
tcp        0      0 localhost:ipp           *:*                     LISTEN      2196/cupsd          
tcp        0      0 *:smtp                  *:*                     LISTEN      2431/master         
tcp        0      0 localhost:953           *:*                     LISTEN      1957/named          
tcp        0      0 *:https                 *:*                     LISTEN      8219/httpd2-prefork 
tcp        0      0 *:microsoft-ds          *:*                     LISTEN      2367/smbd           
tcp        0      0 *:netbios-ssn           *:*                     LISTEN      2367/smbd           
tcp        0      0 xxxxxx:microsoft-ds 77-20-140-17:omnivision ESTABLISHED 12994/smbd
iptables -L gives

Code:
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
Thanks for the help.
Reply With Quote
  #18  
Old 12th August 2011, 11:13
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Your POP3 daemon isn't running. Please start it.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #19  
Old 12th August 2011, 12:14
Cracklefish Cracklefish is offline
Member
 
Join Date: Mar 2009
Posts: 95
Thanks: 8
Thanked 3 Times in 3 Posts
Default

Quote:
Originally Posted by falko View Post
Your POP3 daemon isn't running. Please start it.
Weird, Yast reported that Dovecot was set up for runlevel 3 & 5 but it wasn't running. I started it manually and it it returned "Success" I rebooted the system and it started normally.

Now netstat -tap
Code:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 *:imap                  *:*                     LISTEN      2222/dovecot
tcp        0      0 *:sunrpc                *:*                     LISTEN      1593/rpcbind
tcp        0      0 *:ftp                   *:*                     LISTEN      2440/pure-ftpd (SER
tcp        0      0 xxxx.c:domain *:*                     LISTEN      1934/named
tcp        0      0 xxxx.c:domain *:*                     LISTEN      1934/named
tcp        0      0 localhost:domain        *:*                     LISTEN      1934/named
tcp        0      0 *:ssh                   *:*                     LISTEN      1635/sshd
tcp        0      0 localhost:ipp           *:*                     LISTEN      2176/cupsd
tcp        0      0 *:smtp                  *:*                     LISTEN      2323/master
tcp        0      0 localhost:953           *:*                     LISTEN      1934/named
tcp        0      0 localhost:10024         *:*                     LISTEN      2362/amavisd (maste
tcp        0      0 localhost:10025         *:*                     LISTEN      2323/master
tcp        0      0 *:mysql                 *:*                     LISTEN      2115/mysqld
tcp        0      0 *:pop3                  *:*                     LISTEN      2222/dovecot
tcp        0      0 localhost:dyna-access   *:*                     LISTEN      1657/clamd
tcp        0   1204 Golf1.greenway.co.u:ssh host86-130-190-14:50057 ESTABLISHED 2522/0
tcp        0      0 *:sunrpc                *:*                     LISTEN      1593/rpcbind
tcp        0      0 *:http-alt              *:*                     LISTEN      2403/httpd2-prefork
tcp        0      0 *:www-http              *:*                     LISTEN      2403/httpd2-prefork
tcp        0      0 *:sunproxyadmin         *:*                     LISTEN      2403/httpd2-prefork
tcp        0      0 *:ftp                   *:*                     LISTEN      2440/pure-ftpd (SER
tcp        0      0 *:domain                *:*                     LISTEN      1934/named
tcp        0      0 *:ssh                   *:*                     LISTEN      1635/sshd
tcp        0      0 localhost:ipp           *:*                     LISTEN      2176/cupsd
tcp        0      0 *:smtp                  *:*                     LISTEN      2323/master
tcp        0      0 localhost:953           *:*                     LISTEN      1934/named
tcp        0      0 *:https                 *:*                     LISTEN      2403/httpd2-prefork
tcp        0      0 *:microsoft-ds          *:*                     LISTEN      2501/smbd
tcp        0      0 *:netbios-ssn           *:*                     LISTEN      2501/smbd
tcp        0      0 localhost:45154         localhost:ftp           TIME_WAIT   -
tcp        0      0 localhost:39589         localhost:www-http      TIME_WAIT   -
and iptables-L is
Code:
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
but still no pop3 mail delivery.

Thanks for the help, Falko.
regards
Rick
Reply With Quote
  #20  
Old 13th August 2011, 11:03
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
 
Default

Are there any errors in your mail log (in the /var/log/ directory)?

Do you use Maildir or mailbox? Because Dovecot uses Maildir, but if mails arrive in mailbox, Dovecot doesn't find them.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Tags
saslauthd

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
monitrc configuration for Debian ISPConfig 3 server Hans Tips/Tricks/Mods 2 27th March 2011 23:22
Monitoring server Ubuntu wiss Installation/Configuration 7 20th November 2010 12:56
geronimo-jetty7-javaee5-2.2 fails to deploy war application vtapas Server Operation 0 3rd May 2010 13:35
Monit & Munin SamTzu HOWTO-Related Questions 1 4th May 2008 18:03
"Too many open files in system" problems Berry Installation/Configuration 3 10th November 2007 21:58


All times are GMT +2. The time now is 04:50.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.