Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 13th July 2006, 08:08
djtremors djtremors is offline
Senior Member
 
Join Date: Apr 2006
Location: Sydney
Posts: 278
Thanks: 0
Thanked 12 Times in 10 Posts
Default cleanup problems with 2.2.3

Hey all,

more issues with ISPconfig 2.2.3 I've been seeing.

I've noticed that there seems to be non cleaning up of things.

eg.
I setup MX and setup a user, postfix all works. I now remove the user and empty the recycle bin and then remove the MX as well as set the Local Mailserver set to now be External Server but I still see postfix is managing the mail and virtusertable is still showing the user account address there.

Another one is I created a site and then once it's visible, I change the name from test.domain.com to www.domain.com
All works fine but I noticed this :

PHP Code:
lrwxrwxrwx  1 root               root   13 Jul 13 13:25 test.domain.com -> /var/www/web4
drwxr
-xr-x  8 web2_user1     web2 4096 Jul 13 15:23 web2
drwxr
-xr-x  8 web4_user2     web4 4096 Jul 13 14:08 web4
drwxr
-xr-x  8 web5_test       web5 4096 Jul 13 14:36 web5
lrwxrwxrwx  1 root               root   13 Jul 11 13
:26 www.domain.com -> /var/www/web2 
so even though that test is now www, the symbolic link still exists. Not big drama but can get quite confusing.

I've been seeing similar things in other places too which i haven't noted down yet.
Reply With Quote
Sponsored Links
  #2  
Old 13th July 2006, 12:55
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,185 Times in 3,202 Posts
Default

Quote:
Originally Posted by djtremors
Hey all,

more issues with ISPconfig 2.2.3 I've been seeing.

I've noticed that there seems to be non cleaning up of things.

eg.
I setup MX and setup a user, postfix all works. I now remove the user and empty the recycle bin and then remove the MX as well as set the Local Mailserver set to now be External Server but I still see postfix is managing the mail and virtusertable is still showing the user account address there.
Did you set the co-domain of this website to external mailserver too?

Quote:
Another one is I created a site and then once it's visible, I change the name from test.domain.com to www.domain.com
All works fine but I noticed this :

PHP Code:
lrwxrwxrwx  1 root               root   13 Jul 13 13:25 test.domain.com -> /var/www/web4
drwxr
-xr-x  8 web2_user1     web2 4096 Jul 13 15:23 web2
drwxr
-xr-x  8 web4_user2     web4 4096 Jul 13 14:08 web4
drwxr
-xr-x  8 web5_test       web5 4096 Jul 13 14:36 web5
lrwxrwxrwx  1 root               root   13 Jul 11 13
:26 www.domain.com -> /var/www/web2 
so even though that test is now www, the symbolic link still exists. Not big drama but can get quite confusing.
Yes, thats a known Issuse. The problem is that the server script does not "know" the old domain so it can not remove the smlink correctly and checking all symlinks every time a domain is changed costs to much processing time.Maybe we will solve it with a cronjob that cleans up the symlinks from time to time.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 13th July 2006, 13:09
djtremors djtremors is offline
Senior Member
 
Join Date: Apr 2006
Location: Sydney
Posts: 278
Thanks: 0
Thanked 12 Times in 10 Posts
Default

PHP Code:
Did you set the co-domain of this website to external mailserver too
Yeah I noticed there's 2 sets of MXs, the www+domain and the domain itself.. both are set to "External Mailserver". Both MXs are turned off and the DNS is showing that it's correct but the /etc/postfix/local-host-names still shows the domain.
So now my webserver is sending emails to itself instead of the real mailserver for the domain, which then bounces.
There's aldo virtualusertable entries.
Reply With Quote
  #4  
Old 13th July 2006, 13:12
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,185 Times in 3,202 Posts
Default

Quote:
Originally Posted by djtremors
PHP Code:
Did you set the co-domain of this website to external mailserver too
Yeah I noticed there's 2 sets of MXs, the www+domain and the domain itself.. both are set to "External Mailserver". Both MXs are turned off and the DNS is showing that it's correct but the /etc/postfix/local-host-names still shows the domain.
So now my webserver is sending emails to itself instead of the real mailserver for the domain, which then bounces.
There's aldo virtualusertable entries.
I'am not talking about MX records, as they are not connected to the postfix configuration.

Please check the options tab of the website of this domain and the co-domains if they are set to external mailserver (in ISPManager).
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 13th July 2006, 13:19
djtremors djtremors is offline
Senior Member
 
Join Date: Apr 2006
Location: Sydney
Posts: 278
Thanks: 0
Thanked 12 Times in 10 Posts
Default

Yeha I know MX isn't to do with Postfix but was making sure as I don't want the MX to point to itself as the Mail server anyway.

OK, i figured what it was.. it's in the Users & Emails section. I removed this account but now that I've done that, the emails are gone but so has access to the FTP.

I can't create an FTP user that doesn't require an email address? I think this is where I'm getting confused.
Oh, I'm talking about real ftp and not via the Web-FTP which is useless when copying 10 folders with multiple subfolders and no CHMOD functions.

Last edited by djtremors; 13th July 2006 at 13:28.
Reply With Quote
  #6  
Old 13th July 2006, 13:29
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,185 Times in 3,202 Posts
Default

Quote:
Originally Posted by djtremors
Yeha I know MX isn't to do with Postfix but was making sure as I don't want the MX to point to itself as the Mail server anyway.

OK, i figured what it was.. it's in the Users & Emails section. I removed this account but now that I've done that, the emails are gone but so has access to the FTP.

I can't create an FTP user that doesn't require an email address? I think this is where I'm getting confused.
You can create an FTP user without an email address by setting the email domain to external. Make sure you set it to external on the options tab of the website and the options tab of the co-domain.

If the domain is set to external mailserver, ISPConfig does not add this domain to the postfix configuration.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 13th July 2006, 13:34
Ben Ben is offline
Moderator
 
Join Date: Jul 2006
Posts: 1,016
Thanks: 7
Thanked 56 Times in 51 Posts
Default

Quote:
I can't create an FTP user that doesn't require an email address? I think this is where I'm getting confused.
Actually no, I asked that already, because I was confused about that, also.
Reply With Quote
  #8  
Old 13th July 2006, 13:40
djtremors djtremors is offline
Senior Member
 
Join Date: Apr 2006
Location: Sydney
Posts: 278
Thanks: 0
Thanked 12 Times in 10 Posts
Default

OK, double checked that both domain and co-domain have both external mailserver on.
created a new user and getting

Field: Email
The email address must contain between 1 and 60 letters or numbers.

What other things does it check besides External Mailserver that triggers this? Or tell me which php code and where abouts, I'll could figure out whats triggering the error.

@Ben: nothings impossible. Just needs patching But if it truely suppose to do it then so be it....

Last edited by djtremors; 13th July 2006 at 14:05.
Reply With Quote
  #9  
Old 13th July 2006, 14:29
djtremors djtremors is offline
Senior Member
 
Join Date: Apr 2006
Location: Sydney
Posts: 278
Thanks: 0
Thanked 12 Times in 10 Posts
Default

I could try finding this in code but not only the lack of comments but it's in german.. argh... he he...
Reply With Quote
  #10  
Old 14th July 2006, 11:21
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
 
Default

Quote:
Originally Posted by djtremors
OK, double checked that both domain and co-domain have both external mailserver on.
created a new user and getting

Field: Email
The email address must contain between 1 and 60 letters or numbers.

What other things does it check besides External Mailserver that triggers this? Or tell me which php code and where abouts, I'll could figure out whats triggering the error.
The code is in /home/admispconfig/ispconfig/lib/plugins/isp_username.plugin.php in the functions insert() and update(), something like this:

Code:
if(!preg_match("/^[a-zA-Z][\w\.\-\_]{0,60}$/",$email)) {
__________________
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

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
Problems with groups/grpconv linuxfast General 28 21st April 2008 09:35
Empty Recycle Bin jon335 General 40 6th May 2006 11:56
Help! Real newbie having problems installing Linux t-kiss Kernel Questions 5 4th April 2006 15:14
Suse 10.0 Installation Problems protocol Installation/Configuration 16 9th February 2006 05:07
Problems with postfix-mysql Pelle Installation/Configuration 39 13th November 2005 23:25


All times are GMT +2. The time now is 08:55.


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