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 9th June 2008, 10:07
blocker blocker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 177
Thanks: 9
Thanked 4 Times in 4 Posts
Default

Hi, thanks for the reply,

that was of course the first thing i have done regarding the perfect debian setup, but unfortunately it doesnt seem to work...

Please help, i should move to maildir ASAP, mbox is making troubles, on the server there are 500 domains and more than 5000 mailboxes, every day some mailbox gets locked...

Regards
Reply With Quote
Sponsored Links
  #12  
Old 9th June 2008, 10:13
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

1) Post the output of:

netstat -tap

2) Post a excerpt of your mail log, that shows when a message is received.
3) Check with repquota -avug, that the user and group quota of the accounts is not full.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #13  
Old 9th June 2008, 10:42
blocker blocker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 177
Thanks: 9
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by till View Post
1) Post the output of:

netstat -tap

2) Post a excerpt of your mail log, that shows when a message is received.
3) Check with repquota -avug, that the user and group quota of the accounts is not full.
Thanks for the very quick response!!!

netstat -tap (established connections are excluded):

Code:
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 *:imaps                 *:*                     LISTEN     2617/inetd
tcp        0      0 *:mysql                 *:*                     LISTEN     569/mysqld
tcp        0      0 *:pop3                  *:*                     LISTEN     26840/popa3d
tcp        0      0 *:imap2                 *:*                     LISTEN     2617/inetd
tcp        0      0 *:sunrpc                *:*                     LISTEN     2112/portmap
tcp        0      0 *:81                    *:*                     LISTEN     343/ispconfig_httpd
tcp        0      0 *:auth                  *:*                     LISTEN     2617/inetd
tcp        0      0 *:ftp                   *:*                     LISTEN     7606/proftpd: (acce
tcp        0      0 *:54869                 *:*                     LISTEN     2754/rpc.statd
tcp        0      0 *:smtp                  *:*                     LISTEN     20447/master
tcp6       0      0 *:www                   *:*                     LISTEN     22021/apache2
tcp6       0      0 *:ssh                   *:*                     LISTEN     2707/sshd
tcp6       0      0 *:smtp                  *:*                     LISTEN     20447/master
tcp6       0      0 *:https                 *:*                     LISTEN     22021/apache2
a piece of the mail.log

Code:
Jun  9 10:28:01 server1 postfix/qmgr[20457]: 94FE5A8F58C: from=<donation@stlzoo.org>, size=4268, nrcpt=1 (queue active)
Jun  9 10:28:01 server1 procmail[26485]: Suspicious rcfile "/var/www/web_ID/user/user_domain.com/.procmailrc"
Jun  9 10:28:01 server1 postfix/local[25488]: 94FE5A8F58C: to=<user_domain@server1.example.com>, orig_to=<user@domain.com>, relay=local, delay=0.96, delays=0.94/0/0/0.02, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -f-)
Jun  9 10:28:01 server1 postfix/qmgr[20457]: 94FE5A8F58C: removed
quota should be not full, as i have made the test i have adjusted the quota of the test domain and the test user very high but the mailsystem still saved the mails in /var/mail/username not in $HOME/Maildir, so i decided to revert the settings back to mbox. Now i have the uw-imap daemon and the popa3d, because with courier installed and mbox enabled users are unable to login to their mail accounts.
BTW - some hint. In 1 of the posts above i have mentioned that the server is moved from another machine - on the old machine mailsystem was mbox. On the new i have set it to Maildir, but EVERY mailaccount of a user that was moved from the old to the new gets the mails in /var/mail/username, BUT newly created users got their mails in $HOME/Maildir, it was not the .procmailrc - i have pasted above an example of the .procmailrc file of an old a user which was setuped to get his mails in $HOME/Maildir but still got them in /var/mail/username

Thanks!!!
Reply With Quote
  #14  
Old 13th June 2008, 11:06
blocker blocker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 177
Thanks: 9
Thanked 4 Times in 4 Posts
Default

Ok, now my server uses Maildir and it works perfect. The next problem approaches: converting /var/mail/username to $home/Maildir. In the archives i have found this:
http://http://www.howtoforge.com/for...p/t-10775.html

BUT it works only "whole" usernames, usernames containing "_" which are 90% of my usernames do not get converted. I need some help to understand why this happens...

Thanks!
Reply With Quote
  #15  
Old 13th June 2008, 11:30
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

I used the mb2md script to convert mailbox files:

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

I used the following small php shell script to convert all mbox files at once with the mb2md script:

Code:
<?

// This script converts the content of mailboxes in /var/spool/mail
// to mail directories

$dir = "/var/spool/mail/";

if (is_dir($dir)) {
        if ($dh = opendir($dir)) {
        while (($file = readdir($dh)) !== false) {
                if($file != '.' && $file != '..' && filesize("/var/spool/mail/".$file) > 0 && $file != 'Maildir') {
                        exec('mkdir /tmp/mb2md_temp');
                        $sourcefile = "/var/spool/mail/".$file;
                        $userid = fileowner($sourcefile);
                        $userinfo = posix_getpwuid($userid);
                        $username = $userinfo["name"];
                        $homedir = $userinfo["dir"];
                        $command = "/usr/bin/mb2md -s $sourcefile -d /tmp/mb2md_temp";
                        echo $command."\n";
                        exec($command);
                        $command = "chown $username /tmp/mb2md_temp/cur/*";
                        echo $command."\n";
                        exec($command);
                        $command = "mv /tmp/mb2md_temp/cur/* $homedir/Maildir/new/";
                        echo $command."\n";
                        exec($command);
                        exec("rm -rf /tmp/mb2md_temp");
                        exec("rm -f $sourcefile");
                }
        }
        closedir($dh);
        }
}



?>
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
blocker (13th June 2008)
  #16  
Old 13th June 2008, 12:03
blocker blocker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 177
Thanks: 9
Thanked 4 Times in 4 Posts
Default

YOU MADE MY DAY DUDE

thanks it works PERFECT!!!
Reply With Quote
  #17  
Old 13th June 2008, 12:59
blocker blocker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 177
Thanks: 9
Thanked 4 Times in 4 Posts
Default

I still have problems with the move, some users/domains are receiving in the Maildir some are still receiving in /var/mail

users that receive in /var/mail have a .procmailrc which is containing Mildir!, i have also tried removing the .procmailrc file but without it the mails still goes to /var/mail

Please help!
Reply With Quote
  #18  
Old 13th June 2008, 13:16
blocker blocker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 177
Thanks: 9
Thanked 4 Times in 4 Posts
Default

i remember now something...

the current server is moved from an old ispconfig server, which had the remoting tool installed (stable+remoting tool). I think the domains/users that still receive their mail in /var/mail are created all with the remoting tool...
So i think the problem should be somewhere in the DB of ispconfig, but where should i seek...

thanks
Reply With Quote
  #19  
Old 13th June 2008, 15:42
blocker blocker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 177
Thanks: 9
Thanked 4 Times in 4 Posts
Default

Yes, whole domains are "jumping" over the global postfix config and over their users .procmailrc - this is really wired
its like pain in the a$$
Reply With Quote
  #20  
Old 13th June 2008, 16:20
blocker blocker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 177
Thanks: 9
Thanked 4 Times in 4 Posts
 
Default

deleting the user and then recreate it, does the trick, afterwards the user receives in $HOME/Maildir

but why is that, i see myself like deleting thousands of users and restoring them

Last edited by blocker; 13th June 2008 at 16:43.
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
SP-Server Setup - Ubuntu 5.10 "Breezy Badger" - Page 6 (changes) LuisC-SM HOWTO-Related Questions 0 21st April 2006 15:16
Installing ISPConfig ssl installation certificate to a site? lyndros Installation/Configuration 6 20th March 2006 03:54
Problem installing ISPConfig, then with MySQL... ctroyp Installation/Configuration 7 26th September 2005 16:37
Changing values on ISPConfig installation Luciano Installation/Configuration 4 16th August 2005 23:32
Convert mbox to Maildir? tommyboy Server Operation 1 19th April 2005 16:43


All times are GMT +2. The time now is 07:51.


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