Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Parallels Plesk query

Options
  • 22-04-2010 9:39am
    #1
    Registered Users Posts: 658 ✭✭✭


    Hi all,

    I have a parallels plesk query that hopefully someone might be able to help me with... it's a long one...

    I host a number of my own sites with an unmanaged VPS Plesk controlled server.

    After adding new email accounts to one site I've been getting errors on Thunderbird which read as follows:
    Unable to connect to your IMAP server. You may have exceeded the maximum number of connections to this server. If so, use the Advanced IMAP Server Settings dialog to reduce the number of cached connections.

    Now I know that the number of IMAP connections needs to be increased. The only way I can do this is to log in via SSH using Putty as the Super admin of the VPS server. Correct?

    So I've found this article which has been pretty helpful in pointing out where to go when in the srver via Putty:
    http://kb.parallels.com/en/165
    Resolution
    This error occurs when you are checking mail for multiple accounts from the same IP address. The default maximum number of connections per IP address (MAXPERIP) for imapd/pop3d is set to 4. This number can be increased in the imapd and pop3d configuration files. The files can be found in $COURIER_IMAP_ROOT_D/etc/ folder. Value of COURIER_IMAP_ROOT_D variable can be found in /etc/psa/psa.conf. You also may need to increase the MAXDAEMONS variable:


    MAXPERIP= 4 #Allows you to set the number of pop connections from one IP.
    MAXDAEMONS= 40 #Allows you to set the total number of pop connections.

    Once the changes have been completed courier-imap must be restarted:

    $PRODUCT_RC_D/courier-imap restart
    Keywords: pop3 imap connection limit pop3d imapd maximum number increase

    Now, here's the fun part.
    1. I log in to Putty with the VPS username and password
    2. I then vim /etc/psa/psa.conf
    3. I then cd $COURIER_IMAP_ROOT_D/etc/
    4. Then ls -lah

    All's good up to this point.... Then after I've listed all the files I can't see any reference to any files called imapd and pop3d

    The list of files I get is as follows:
    [root@vps-1001108-595 ~]# vim /etc/psa/psa.conf
    [root@vps-1001108-595 ~]# cd $COURIER_IMAP_ROOT_D/etc/
    [root@vps-1001108-595 etc]# ls -lah
    total 2.1M
    drwxr-xr-x 54 root root  4.0K Apr 21 17:25 .
    drwxr-xr-x 20 root root  4.0K Sep  7  2009 ..
    -rw-------  1 root root   12K Apr 21 17:42 .imap.swp
    -rw-------  1 root root     0 Jun 17  2008 .pwd.lock
    -rw-r--r--  1 root root  2.5K Mar 21  2007 DIR_COLORS
    -rw-r--r--  1 root root  2.4K Mar 21  2007 DIR_COLORS.xterm
    drwxr-xr-x  5 root root  4.0K Jun 17  2008 X11
    -rw-r--r--  1 root root    12 Nov 10  2007 adjtime
    -rw-r--r--  1 root root  1.5K Jun 17  2008 aliases
    -rw-r-----  1 root smmsp  12K Oct 29  2008 aliases.db
    drwxr-xr-x  2 root root  4.0K Oct 29  2008 alternatives
    drwxr-xr-x  2 root root  4.0K Oct 29  2008 awstats
    -rw-r--r--  1 root root  1.5K Nov 28  2006 bashrc
    drwxr-xr-x  2 root root  4.0K May 24  2008 blkid
    drwxr-xr-x  4 root root  4.0K Oct 29  2008 courier-imap
    drwx------  2 root root  4.0K Nov 10  2007 cron.d
    drwxr-xr-x  2 root root  4.0K Oct 29  2008 cron.daily
    -rw-r--r--  1 root root     0 Jun 17  2008 cron.deny
    drwxr-xr-x  2 root root  4.0K Jan  6  2007 cron.hourly
    drwxr-xr-x  2 root root  4.0K Oct 29  2008 cron.monthly
    drwxr-xr-x  2 root root  4.0K Oct 29  2008 cron.weekly
    -rw-r--r--  1 root root   255 Oct 29  2008 crontab
    -rw-r--r--  1 root root   617 Mar 21  2006 csh.cshrc
    -rw-r--r--  1 root root   513 Jun 20  2005 csh.login
    drwxr-xr-x  3 root root  4.0K Jun 17  2008 dbus-1
    drwxr-xr-x  2 root root  4.0K Jun 17  2008 default
    drwxr-xr-x  2 root root  4.0K Jun 17  2008 depmod.d
    drwxr-xr-x  3 root root  4.0K Jun 17  2008 dev.d
    -rw-r--r--  1 root root     0 Mar 18  2007 environment
    -rw-r--r--  1 root root     0 Jan 12  2000 exports
    -rw-r--r--  1 root root    59 Jan 31  2006 filesystems
    drwxr-xr-x  4 root root  4.0K Oct 29  2008 fonts
    -rw-r--r--  1 root root    28 Jun 17  2008 fstab
    -rw-r--r--  1 root root     8 Oct 29  2008 ftpchroot
    -rw-r--r--  1 root root   151 Jan 27 17:46 ftpusers
    -rw-r--r--  1 root root  1.8K Jan  6  2007 gpm-root.conf
    -rw-r--r--  1 root root   689 Oct 29  2008 group
    -rw-------  1 root root   689 Oct 29  2008 group-
    -rw-r--r--  1 root root    17 Jul 23  2000 host.conf
    -rw-r--r--  1 root root    93 Oct 29  2008 hosts
    -rw-r--r--  1 root root   161 Jan 12  2000 hosts.allow
    -rw-r--r--  1 root root   347 Jan 12  2000 hosts.deny
    drwxr-xr-x  4 root root  4.0K Jun 17  2008 httpd
    lrwxrwxrwx  1 root root    11 Jun 17  2008 init.d -> rc.d/init.d
    -rw-r--r--  1 root root   658 Nov 10  2007 initlog.conf
    -rw-r--r--  1 root root  1.5K Jun 17  2008 inittab
    -rw-r--r--  1 root root   758 Sep 23  2004 inputrc
    drwxr-xr-x  2 root root  4.0K Jun 17  2008 iproute2
    -rw-r--r--  1 root root    45 Nov 23  2007 issue
    -rw-r--r--  1 root root    44 Nov 23  2007 issue.net
    -rw-r--r--  1 root root   31K Mar 14  2007 jwhois.conf
    -rw-r--r--  1 root root   608 Jun 25  2007 krb5.conf
    -rw-r--r--  1 root root   18K Oct 29  2008 ld.so.cache
    -rw-r--r--  1 root root    28 Oct  8  2006 ld.so.conf
    drwxr-xr-x  2 root root  4.0K Oct 29  2008 ld.so.conf.d
    -rw-r-----  1 root root   191 Jun 26  2007 libaudit.conf
    -rw-r--r--  1 root root  2.5K Nov 10  2007 libuser.conf
    -rw-r--r--  1 root root  1.3K Jun 17  2008 localtime
    -rw-r--r--  1 root root  1.4K Mar 15  2007 login.defs
    -rw-r--r--  1 root root   520 Dec  2  2007 logrotate.conf
    drwxr-xr-x  2 root root  4.0K Jun 17  2008 logrotate.d
    -rw-r--r--  1 root root    66 Jan  7  2007 lynx-site.cfg
    -rw-r--r--  1 root root  137K Jan  7  2007 lynx.cfg
    drwxr-xr-x  2 root root  4.0K Jun 17  2008 mail
    -rw-r--r--  1 root root   112 Jan  7  2007 mail.rc
    -rw-r--r--  1 root root   293 Jan  7  2007 mailcap
    drwxr-xr-x  2 root root  4.0K Jun 17  2008 makedev.d
    -rw-r--r--  1 root root  4.6K Jan  6  2007 man.config
    -rw-r--r--  1 root root   14K Jan  7  2007 mime.types
    -rw-r--r--  1 root root   330 May 24  2008 mke2fs.conf
    drwxr-xr-x  2 root root  4.0K Jun 17  2008 modprobe.d
    -rw-r--r--  1 root root     0 Jan 12  2000 motd
    lrwxrwxrwx  1 root root    12 Jul 30  2009 mtab -> /proc/mounts
    -rw-r--r--  1 root root   718 Oct 29  2008 my.cnf
    -rw-r--r--  1 root root   338 Oct 29  2008 my.cnf.bak
    -rw-r-----  1 root named 1.1K Jun 17  2008 named.caching-nameserver.conf
    lrwxrwxrwx  1 root root    34 Oct 29  2008 named.conf -> /var/named/run-root/etc                            /named.conf
    -rw-r-----  1 root named  955 Jun 17  2008 named.rfc1912.zones
    drwxr-xr-x  2 root root  4.0K Jun 17  2008 netplug
    drwxr-xr-x  2 root root  4.0K Jun 17  2008 netplug.d
    -rw-r--r--  1 root root  1.9K Nov 30  2007 nscd.conf
    -rw-r--r--  1 root root  1.7K Sep 23  2004 nsswitch.conf
    drwxr-xr-x  2 root root  4.0K Oct 29  2008 ntp
    -rw-r--r--  1 root root  1.8K Jun 10  2008 ntp.conf
    drwxr-xr-x  3 root root  4.0K Jun 17  2008 openldap
    drwxr-xr-x  2 root root  4.0K Mar 29  2007 opt
    drwxr-xr-x  2 root root  4.0K Oct 29  2008 pam.d
    -rw-r--r--  1 root root  3.1K Apr  6 21:57 passwd
    -rw-------  1 root root  3.1K Jan 27 17:46 passwd-
    drwxr-xr-x  2 root root  4.0K Oct 29  2008 php.d
    -rw-r--r--  1 root root   45K Jul 21  2009 php.ini
    -rw-r--r--  1 root root   45K Jul 17  2008 php.ini.saved_by_psa
    drwxr-xr-x  6 root root  4.0K Oct 29  2008 pki
    drwxr-xr-x  3 root root  4.0K Jun 17  2008 ppp
    -rw-r--r--  1 root root   233 Mar 25  2004 printcap
    -rw-r--r--  1 root root   937 Jan 31  2006 profile
    drwxr-xr-x  2 root root  4.0K Oct 29  2008 profile.d
    -rw-r--r--  1 root root  1.9K Jul 21  2008 proftpd.conf
    -rw-r--r--  1 root root     0 Apr  7 21:08 proftpd.include
    -rw-r--r--  1 root root  6.0K Oct 11  2006 protocols
    drwxr-xr-x  3 root root  4.0K Apr 22 09:20 psa
    drwxr-xr-x 10 root root  4.0K Oct 29  2008 psa-horde
    -rw-r--r--  1 root root   220 Mar 14  2007 quotagrpadmins
    -rw-r--r--  1 root root   257 Mar 14  2007 quotatab
    lrwxrwxrwx  1 root root     7 Jun 17  2008 rc -> rc.d/rc
    drwxr-xr-x 10 root root  4.0K Jun 17  2008 rc.d
    lrwxrwxrwx  1 root root    13 Jun 17  2008 rc.local -> rc.d/rc.local
    lrwxrwxrwx  1 root root    15 Jun 17  2008 rc.sysinit -> rc.d/rc.sysinit
    lrwxrwxrwx  1 root root    10 Jun 17  2008 rc0.d -> rc.d/rc0.d
    lrwxrwxrwx  1 root root    10 Jun 17  2008 rc1.d -> rc.d/rc1.d
    lrwxrwxrwx  1 root root    10 Jun 17  2008 rc2.d -> rc.d/rc2.d
    lrwxrwxrwx  1 root root    10 Jun 17  2008 rc3.d -> rc.d/rc3.d
    lrwxrwxrwx  1 root root    10 Jun 17  2008 rc4.d -> rc.d/rc4.d
    lrwxrwxrwx  1 root root    10 Jun 17  2008 rc5.d -> rc.d/rc5.d
    lrwxrwxrwx  1 root root    10 Jun 17  2008 rc6.d -> rc.d/rc6.d
    -rw-r--r--  1 root root    25 Nov 23  2007 redhat-release
    -rw-r--r--  1 root root    25 Apr  8 01:05 resolv.conf
    lrwxrwxrwx  1 root root    33 Oct 29  2008 rndc.conf -> /var/named/run-root/etc/                            rndc.conf
    -rw-r--r--  1 root named  113 Jun 17  2008 rndc.key
    -rw-r--r--  1 root root  1.6K Aug 30  2001 rpc
    drwxr-xr-x  2 root root  4.0K Nov 11  2007 rpm
    -rw-r--r--  1 root root   671 Nov 10  2007 rwtab
    drwxr-xr-x  2 root root  4.0K Nov 10  2007 rwtab.d
    drwxr-xr-x  2 root root  4.0K Jun 17  2008 samba
    drwxr-xr-x  2 root root  4.0K Jan  7  2007 sasl2
    -rw-r--r--  1 root root  7.2K Mar 21  2007 screenrc
    -rw-r--r--  1 root root   666 Nov 11  2007 scsi_id.config
    -rw-------  1 root root   122 Feb 17  2003 securetty
    drwxr-xr-x  5 root root  4.0K Jun 17  2008 security
    drwxr-xr-x  2 root root  4.0K Jun 17  2008 selinux
    -rw-r--r--  1 root root   73K Jan  6  2007 sensors.conf
    -rw-r--r--  1 root root  354K Feb 23  2006 services
    -rw-r--r--  1 root root   216 Nov 10  2007 sestatus.conf
    drwxr-xr-x  2 root root  4.0K Jun 17  2008 setuptool.d
    -r--------  1 root root  2.3K Apr  7 21:08 shadow
    -rw-------  1 root root  2.3K Mar 26 12:32 shadow-
    -rw-r--r--  1 root root   101 Oct 29  2008 shells
    drwxr-xr-x  2 root root  4.0K Jun 17  2008 skel
    drwxr-xr-x  2 root root  4.0K Mar 15  2007 smrsh
    drwxr-xr-x  2 root root  4.0K Jun 17  2008 snmp
    drwxr-xr-x  2 root root  4.0K Oct 29  2008 ssh
    drwxr-xr-x  2 root root  4.0K Jan  6  2007 stunnel
    -r--r-----  1 root root  3.2K Jun 17  2008 sudoers
    drwxr-xr-x  8 root root  4.0K Apr  8 01:05 sysconfig
    -rw-r--r--  1 root root  1010 Jun 17  2008 sysctl.conf
    -rw-r--r--  1 root root   707 Oct 29  2008 syslog.conf
    -rw-r--r--  1 root root  789K Jan  6  2007 termcap
    drwxr-xr-x  5 root root  4.0K Jun 17  2008 udev
    -rw-r--r--  1 root root   127 Mar 14  2007 updatedb.conf
    -rw-r--r--  1 root root  1.5K May 10  2007 vimrc
    -rw-r--r--  1 root root  1.5K May 10  2007 virc
    drwxr-xr-x  4 root root  4.0K Oct 29  2008 vz
    -rw-r--r--  1 root root  2.6K Mar 14  2007 warnquota.conf
    -rw-r--r--  1 root root   24K Jan  9  2007 webalizer.conf
    -rw-r--r--  1 root root  4.2K Mar 15  2007 wgetrc
    -rw-r--r--  1 root root  1001 Mar 15  2007 xinetd.conf
    drwxr-xr-x  2 root root  4.0K Oct 29  2008 xinetd.d
    drwxr-xr-x  2 root root  4.0K Jun 17  2008 yum.repos.d
    

    Can anyone help me with the next step of finding the relevant imap files so I can increase the number of connections..?

    Thanks in advance!


Comments

  • Registered Users Posts: 3,886 ✭✭✭cgarvey


    I assume that IMAP of some form is installed (and working for the existing sites). So, if
    /etc/psa/psa.conf does exist, what value does it set for $COURIER_IMAP_ROOT_D?

    In your session above, you changed to $COURIER_IMAP_ROOT_D/etc/, but as seen as (in the shell environment) $COURIER_IMAP_ROOT_D wasn't set, then it simply changed to /etc/. Courier config files are often outside of /etc/ (like, for example /usr/lib/courier-imap/etc/), so the psa.conf is meant to tell you where that location is.

    You could also try locate (or slocate, if that's what's on your OS) to find the IMAP config file.

    Try
    locate imapd
    
    and look for files that end in "imapd" (rather than the plenty of other entries, like "imapd.pem". That should give you a clue.


Advertisement