Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 2nd September 2006, 10:10
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,672
Thanks: 819
Thanked 5,317 Times in 4,170 Posts
Default

If you are laready using cyrus, it is not nescessary to install courier to use ipsconfig with maildir as cyrus supports maildir as well.

Just do this:

Quote:
mb2md command to convert mbox to maildir for each users mailbox
check the option to enable maildir in ISPConfig
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Sponsored Links
  #12  
Old 2nd September 2006, 19:09
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

Hey Till,

Thanks for the reply, but I still have a few questions. How would I install mb2md on my Mandriva 2006/ISPConfig box and where would I find the mbox file to convert?

Would it be the files located in var/mail/ or the files located at /var/spoo/mail/?

There is a Maildir in /var/www/web9/ and also one in /var/www/web9/user/john/.
Will my destination be /var/www/web9/Maildir/ or /var/www/web9/user/john/Maildir?

Assuming that the mbox file is under /var/mail/ and the destination is under /var/www/web9/Maildir/, does this syntax look correct?
mb2md -c -s /var/mail/john -d /var/www/web9/Maildir/john

Please help me out with this one because I'm confused.

Thanks,

Rocky
Reply With Quote
  #13  
Old 3rd September 2006, 17:50
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,672
Thanks: 819
Thanked 5,317 Times in 4,170 Posts
Default

Quote:
Originally Posted by Rocky
Thanks for the reply, but I still have a few questions. How would I install mb2md on my Mandriva 2006/ISPConfig box and where would I find the mbox file to convert?
IIf there is a mandriva package with the name mb2md, install that, if not, have a look here:

http://batleth.sapienti-sat.org/projects/mb2md/

Just download the mb2md script (the lonk is at the end of the page), unpack the tar.gz file and copy the mb2md file to your /usr/bin directory.


Quote:
Would it be the files located in var/mail/ or the files located at /var/spoo/mail/?
The directories are symlinked, so you can use one of the, e.g. /var/mail/ because its shorter

Quote:
There is a Maildir in /var/www/web9/ and also one in /var/www/web9/user/john/.
Will my destination be /var/www/web9/Maildir/ or /var/www/web9/user/john/Maildir?
Use always the directory inside the "user" directory, in this case:

/var/www/web9/user/john/Maildir

Quote:
Assuming that the mbox file is under /var/mail/ and the destination is under /var/www/web9/Maildir/, does this syntax look correct?
mb2md -c -s /var/mail/john -d /var/www/web9/Maildir/john
Try first without the -c option, if this wont work you can try with -c.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #14  
Old 5th September 2006, 16:44
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

Hey Till,

Thanks for pointing me in the right direction. I've done what you told me to by first downloading mb2md and placing it in the /usr/bin directory. I then ran the following command:

I was logged in a root
sudo -u john mb2md-3.20.pl -s /var/mail/john -d /var/www/web3/user/john/Maildir

It seemed to have worked because I noticed that it created 3 additional folder in /var/www/web3/user/john/Maildir:
cur
new
tmp

I then went into ISPConfig manager and check the box to use maildir and restarted ISPConfig. Unfortunately, when I sent a mail from the outside to John's account, it didn't come through. The log said it was delivered though. I then went back into ISPConfig manager and unchecked the box for maildir and restarted ISPConfig. I sent another mail and it came through.

I was wondering if I had to change all the mailboxes into maildir format before this could work. I have 3 additional mail account in my /var/mail/ folder. They are:
admispconfig
mail
postfix

Do I have to convert those as well? If so, what would the destination directory be?

Thanks,

Rocky
Reply With Quote
  #15  
Old 6th September 2006, 18:52
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

Which POP3 server do you currently use? I guess it's a POP3 server that uses mbox. What's the output of
Code:
netstat -tap
?
__________________
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
  #16  
Old 6th September 2006, 22:43
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

Below is my netstat -tap result.

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:imaps *:* LISTEN 6450/xinetd
tcp 0 0 *:32769 *:* LISTEN -
tcp 0 0 *:nfs *:* LISTEN -
tcp 0 0 *op3s *:* LISTEN 6450/xinetd
tcp 0 0 linux.tech4you.org:10026 *:* LISTEN 9463/master
tcp 0 0 *:mysql *:* LISTEN 30754/mysqld
tcp 0 0 *:netbios-ssn *:* LISTEN 9851/smbd
tcp 0 0 *op3 *:* LISTEN 6450/xinetd
tcp 0 0 *:imap *:* LISTEN 6450/xinetd
tcp 0 0 *:sunrpc *:* LISTEN 2202/portmap
tcp 0 0 *:http *:* LISTEN 30144/httpd
tcp 0 0 *:10000 *:* LISTEN 8886/perl
tcp 0 0 *:x11 *:* LISTEN 2750/X
tcp 0 0 *:81 *:* LISTEN 29849/ispconfig_htt
tcp 0 0 *:692 *:* LISTEN 3057/rpc.mountd
tcp 0 0 *:ftp *:* LISTEN 9349/proftpd: (acce
tcp 0 0 192.168.1.6:domain *:* LISTEN 30302/named
tcp 0 0 192.168.1.5:domain *:* LISTEN 30302/named
tcp 0 0 linux.tech4you.org:domain *:* LISTEN 30302/named
tcp 0 0 linux.tech4you.org:5335 *:* LISTEN 2835/mDNSResponder
tcp 0 0 *:smtp *:* LISTEN 9463/master
tcp 0 0 *:https *:* LISTEN 30144/httpd
tcp 0 0 *:763 *:* LISTEN 2277/rpc.statd
tcp 0 0 *:microsoft-ds *:* LISTEN 9851/smbd
tcp 0 0 *:7741 *:* LISTEN 3797/lisa
tcp 0 0 *:x11 *:* LISTEN 2750/X
tcp 0 0 *:ssh *:* LISTEN 18990/sshd
Reply With Quote
  #17  
Old 7th September 2006, 10:30
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,672
Thanks: 819
Thanked 5,317 Times in 4,170 Posts
Default

You are still running a mbox pop3 and imap server over xinetd. Please uninstall your old imap / pop3 server or disable them in your xinetd configuration, then start / install courier or dovecot pop3 and imap.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #18  
Old 8th September 2006, 15:05
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

Contents of my xinetd.d file:
cvs
imap
imaps
ipop2
ipop3
pop3s
proftpd-xinetd
rsync
sshd-xinetd

Next step is to remove imap, imaps, ipop2, ipop3 and pop3s from my server Would I use the command urpme imap and so on?

Then when I tried installing courier, it said:
[root@linux etc]# urpmi courier
no package named courier
The following packages contain courier:
courier-authdaemond
courier-authlib-ldap
courier-authlib-mysql
courier-authlib-pgsql
courier-authlib-userdb
courier-imap
courier-imap-ldap
courier-imap-mysql
courier-imap-pgsql
courier-imap-pop
courier-imap-utils
libcourier-authlib0
libcourier-authlib0-devel

If I remove imap, imaps, ipop2, ipop3 and pop3s from my server, would courier become the default and turn on or would I have to turn it on manually?
Reply With Quote
  #19  
Old 8th September 2006, 18:34
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

Quote:
Originally Posted by Rocky
Contents of my xinetd.d file:
...
imap
imaps
ipop2
ipop3
pop3s
...
What's in those files? There's a setting in them (disable=yes or something like that) that lets you disable these services. Restart xinetd afterwards.
Quote:
Originally Posted by Rocky
Next step is to remove imap, imaps, ipop2, ipop3 and pop3s from my server Would I use the command urpme imap and so on?
You don't need to uninstall them when they are disabled in xinetd.

Quote:
Originally Posted by Rocky

If I remove imap, imaps, ipop2, ipop3 and pop3s from my server, would courier become the default and turn on or would I have to turn it on manually?
See
Code:
man chkconfig
to find out how to make Courier start at boot time.
__________________
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
  #20  
Old 13th September 2006, 15:56
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
 
Default

Hey Falko,

I've edited the ipop3 file and disabled it by adding disable = yes. I then installed courier-imap, which installed successfully. I start courier by running /etc/init.d/courier-imap start. I went into ISPConfig and changed my Mail server to use maildir. I then tried connected to my email and received the following error when loggin in:

Warning: fsockopen() [function.fsockopen]: unable to connect to localhost:110 (Connection refused) in /home/admispconfig/ispconfig/web/webmail/inc/class.uebimiau_mail.php on line 66

Warning: Cannot modify header information - headers already sent by (output started at /home/admispconfig/ispconfig/web/webmail/inc/class.uebimiau_mail.php:66) in /home/admispconfig/ispconfig/web/webmail/msglist.php on line 64


Any suggestions?
Reply With Quote
Reply

Bookmarks

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
postfix problems with smtp linkdeb Server Operation 13 15th March 2014 17:58
Bind, Postfix and possibly more problems from "http://" domain entry LunarNexus Installation/Configuration 5 5th April 2006 15:50
problems sending receiving mail on Postfix mavgh1 HOWTO-Related Questions 17 10th March 2006 12:43
Virtual Users and Domain with Postfix etc - Problems after updating postfix ryv HOWTO-Related Questions 7 22nd November 2005 23:56
Removed PostFix, Now MySql Problems!!! sapient Installation/Configuration 10 24th October 2005 07:11


All times are GMT +2. The time now is 18:43.


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