Re: [qmailtoaster] Re: vqadmin

2012-08-08 Thread Postmaster

On 06/08/2012 17:26, Maxwell Smart wrote:


On 08/06/2012 06:47 AM, Dan McAllister wrote:

On 8/6/2012 2:24 AM, Maxwell Smart wrote:

Maxwell Smart wrote:


You're right.  I went back through some e mails and found a note 
from Dan about short tags in php.ini file.  By default it's off in 
php5.3 install.  It needs to be on according to Dan.  I switched it 
on, restarted Apache and everything works as expected.


Is there any security issue with having shot tags set to on?


_*You mean someone actually READS these??? *_

OMG! I'll have to make sure I'm /RIGHT /more often! :-)

FWIW: Short tags are not a real security issue unless you're in a 
mixed-scripting environment, in which case short tags can result in 
some odd (and sometimes extremely difficult to trace) problems -- 
especially with XML interoperability!


The elimination of short tags in PHP5.3 is actually a change (ok, 
maybe a migration) in the language syntax However, according to 
some documentation, elimination of short tags may be REQUIRED in the 
next major revision (PHP6)... there does seem to be some push-back in 
the PHP community (regarding the deprecation of even allowing short 
tags - the community appears to strongly favor keeping at least the 
option available, so I wouldn't be surprised to see it re-enabled as 
an option...).


However, as we (as a computing community) continue to move toward a 
platform-independent model, we're going to have to live better with 
other languages (like xml), and thus/as a coding style/, short tags 
need to be phased out as we maintain our PHP scripts (and templates). 
(It should be as easy as a global replace in php-only files!)


Just my thoughts! Before you complain, remember how much you paid for 
them!


Dan McAllister

--

IT4SOHO, LLC
PO Box 507
St. Petersburg, FL 33731-0507

CALL TOLL FREE:
   877-IT4SOHO

We have support plans for QMail!



Not just read saved for reference!

Not complaining, just sharing.

Alex mentioned to simply change the tags which I did and they still 
don't work with short tags off.  I am sure it's something simple, but 
with the tag changed and short tags off it doesn't work, switch them 
on with no changes to the php code and it works.





- 
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com 
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com 


This is strange - are you sure you have checked all files for 

Re: [qmailtoaster] Re: vqadmin

2012-08-08 Thread Maxwell Smart

  
  

On 08/08/2012 06:40 AM, Postmaster
  wrote:


  
  On 06/08/2012 17:26, Maxwell Smart
wrote:
  
  


On 08/06/2012 06:47 AM, Dan
  McAllister wrote:


  
  On 8/6/2012 2:24 AM, Maxwell
Smart wrote:
  
  


Maxwell Smart wrote:

  
  
  
  You're right.  I went back through some e mails and found
  a note from Dan about short tags in php.ini file.  By
  default it's off in php5.3 install.  It needs to be on
  according to Dan.  I switched it on, restarted Apache and
  everything works as expected.
  
  Is there any security issue with having shot tags set to
  on?
  

  
  You mean someone actually READS these??? 
  
  OMG! I'll have to make sure I'm RIGHT more often! :-)
  
  FWIW: Short tags are not a real security issue unless you're
  in a mixed-scripting environment, in which case short tags can
  result in some odd (and sometimes extremely difficult to
  trace) problems -- especially with XML interoperability!
  
  The elimination of short tags in PHP5.3 is actually a change
  (ok, maybe a migration) in the language syntax However,
  according to some documentation, elimination of short tags may
  be REQUIRED in the next major revision (PHP6)... there does
  seem to be some push-back in the PHP community (regarding the
  deprecation of even allowing short tags - the community
  appears to strongly favor keeping at least the option
  available, so I wouldn't be surprised to see it re-enabled as
  an option...). 
  
  However, as we (as a computing community) continue to move
  toward a platform-independent model, we're going to have to
  live better with other languages (like xml), and thus as a
coding style, short tags need to be phased out as we
  maintain our PHP scripts (and templates). (It should be as
  easy as a global replace in php-only files!)
  
  Just my thoughts! Before you complain, remember how much you
  paid for them!
  
  Dan McAllister
  
  -- 

IT4SOHO, LLC
PO Box 507
St. Petersburg, FL 33731-0507

CALL TOLL FREE:
  877-IT4SOHO

We have support plans for QMail!




Not just read saved for reference!

Not complaining, just sharing.

Alex mentioned to simply change the tags which I did and they
still don't work with short tags off.  I am sure it's something
simple, but with the tag changed and short tags off it doesn't
work, switch them on with no changes to the php code and it
works.




-
To

unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
  
  
  This is strange - are you sure you have checked all files for
  


No, I started with one, the index file.  It didn't work so I didn't
bother to go any farther.  
  


-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com



[qmailtoaster] Re: vqadmin

2012-08-08 Thread Eric Shubert

On 08/08/2012 08:03 AM, Maxwell Smart wrote:

This is strange - are you sure you have checked all files for 

No, I started with one, the index file.  It didn't work so I didn't
bother to go any farther.


I don't know php very well at all (yet), but I'm guessing that the index 
file may have "included" other files (which could have "included other 
files, etc.). Some of that stuff's written in C as well, which I suppose 
could be generating php code dynamically and might include short tags.


Don't sweat this. If you're really interested in debugging it, let's 
resume on the devel list, as it really concerns php53/Cos6. I'll be 
getting to Cos6 stuff in the next few days.


--
-Eric 'shubes'




-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com



RE: [qmailtoaster] Re: vqadmin

2012-08-08 Thread Helmut Fritz
Can someone send me a sample of the offending code?  I have a resource that
might be able to help.

-Original Message-
From: Eric Shubert [mailto:e...@shubes.net] 
Sent: Wednesday, August 08, 2012 8:14 AM
To: qmailtoaster-list@qmailtoaster.com
Subject: [qmailtoaster] Re: vqadmin

On 08/08/2012 08:03 AM, Maxwell Smart wrote:
>> This is strange - are you sure you have checked all files for 
> No, I started with one, the index file.  It didn't work so I didn't
> bother to go any farther.

I don't know php very well at all (yet), but I'm guessing that the index 
file may have "included" other files (which could have "included other 
files, etc.). Some of that stuff's written in C as well, which I suppose 
could be generating php code dynamically and might include short tags.

Don't sweat this. If you're really interested in debugging it, let's 
resume on the devel list, as it really concerns php53/Cos6. I'll be 
getting to Cos6 stuff in the next few days.

-- 
-Eric 'shubes'




-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com



-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com



[qmailtoaster] Re: vqadmin

2012-08-08 Thread Eric Shubert

On 08/08/2012 09:23 AM, Helmut Fritz wrote:

Can someone send me a sample of the offending code?  I have a resource that
might be able to help.

-Original Message-
From: Eric Shubert [mailto:e...@shubes.net]
Sent: Wednesday, August 08, 2012 8:14 AM
To: qmailtoaster-list@qmailtoaster.com
Subject: [qmailtoaster] Re: vqadmin

On 08/08/2012 08:03 AM, Maxwell Smart wrote:

This is strange - are you sure you have checked all files for 

No, I started with one, the index file.  It didn't work so I didn't
bother to go any farther.


I don't know php very well at all (yet), but I'm guessing that the index
file may have "included" other files (which could have "included other
files, etc.). Some of that stuff's written in C as well, which I suppose
could be generating php code dynamically and might include short tags.

Don't sweat this. If you're really interested in debugging it, let's
resume on the devel list, as it really concerns php53/Cos6. I'll be
getting to Cos6 stuff in the next few days.



I'm taking this to the devel list.

--
-Eric 'shubes'




-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com



Re: [qmailtoaster] Re: vqadmin

2012-08-08 Thread xaf
|--> Maxwell Smart, le 08/08/2012 17:03, a dit :

> 
> No, I started with one, the index file.  It didn't work so I didn't
> bother to go any farther. 

grep result, file + line number where is short tag to change
./htdocs/admin/index.php:1
./htdocs/admin/index.php:55
./htdocs/admin/index.php:71
./htdocs/admin/index.php:81
./htdocs/admin/index.php:89
./htdocs/admin/index.php:117
./htdocs/mrtg/index.php:1
./htdocs/mrtg/index.php:87
./htdocs/mrtg/index.php:97
./htdocs/mrtg/index.php:108
./htdocs/mrtg/index.php:119
./htdocs/mrtg/index.php:130
./htdocs/mrtg/index.php:142
./htdocs/mrtg/index.php:154
./htdocs/mrtg/index.php:165
./htdocs/mrtg/index.php:176
./htdocs/mrtg/index.php:187
./htdocs/mrtg/index.php:198
./htdocs/mrtg/index.php:210
./htdocs/mrtg/index.php:221
./htdocs/mrtg/index.php:233
./htdocs/mrtg/index.php:244
./htdocs/mrtg/index.php:257
./htdocs/mrtg/index.php:268
./htdocs/mrtg/index.php:279
./htdocs/mrtg/index.php:290
./htdocs/mrtg/index.php:299
./htdocs/mrtg/index.php:310
./htdocs/mrtg/index.php:323
./include/admin.inc.php:1

or
change short tag in php.ini, but it's for everybody and sucks xml parsing

or change /etc/httpd/conf/toaster.conf
add
php_value short_open_tag On
under



if your default charset is utf-8
add also
AddDefaultCharset iso-8859-1
php_value default_charset iso-8859-1

xaf




-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com



[qmailtoaster] Re: vqadmin

2012-08-08 Thread Eric Shubert

On 08/08/2012 10:12 AM, xaf wrote:

|--> Maxwell Smart, le 08/08/2012 17:03, a dit :



No, I started with one, the index file.  It didn't work so I didn't
bother to go any farther.


grep result, file + line number where is short tag to change
./htdocs/admin/index.php:1
./htdocs/admin/index.php:55
./htdocs/admin/index.php:71
./htdocs/admin/index.php:81
./htdocs/admin/index.php:89
./htdocs/admin/index.php:117
./htdocs/mrtg/index.php:1
./htdocs/mrtg/index.php:87
./htdocs/mrtg/index.php:97
./htdocs/mrtg/index.php:108
./htdocs/mrtg/index.php:119
./htdocs/mrtg/index.php:130
./htdocs/mrtg/index.php:142
./htdocs/mrtg/index.php:154
./htdocs/mrtg/index.php:165
./htdocs/mrtg/index.php:176
./htdocs/mrtg/index.php:187
./htdocs/mrtg/index.php:198
./htdocs/mrtg/index.php:210
./htdocs/mrtg/index.php:221
./htdocs/mrtg/index.php:233
./htdocs/mrtg/index.php:244
./htdocs/mrtg/index.php:257
./htdocs/mrtg/index.php:268
./htdocs/mrtg/index.php:279
./htdocs/mrtg/index.php:290
./htdocs/mrtg/index.php:299
./htdocs/mrtg/index.php:310
./htdocs/mrtg/index.php:323
./include/admin.inc.php:1

or
change short tag in php.ini, but it's for everybody and sucks xml parsing

or change /etc/httpd/conf/toaster.conf
add
php_value short_open_tag On
under



if your default charset is utf-8
add also
AddDefaultCharset iso-8859-1
php_value default_charset iso-8859-1

xaf

-


Thanks, xaf. Bharath is already taking care of this.

Can we PLEASE keep this discussion on the devel list. It has nothing to 
do with the current stock (supported) release.


Thank you.

--
-Eric 'shubes'




-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com



Re: [qmailtoaster] Re: Check data in vpopmail/dir_control table

2012-08-08 Thread xaf
|--> Alessio Cecchi, le 06/08/2012 09:42, a dit :

> One last question, in dir_control the dom_89 row report in "domains" 
> filed "51" and "0" in all other fields. i do not think is correct.
> 
> How can fix it? If someone explain me what the fileds means I can try to 
> correct it manually.

domains 51 is the total number of domains
for 51 domains
default values
level_cur 0
level_max 3
level_start0 0
level_start1 0
level_start2 0
level_end0 61
level_end1 61
level_end2 61
level_mod0 0
level_mod1 2
level_mod2 4
level_index0 0
level_index1 0
level_index2 0
the_dir nothing

the_dir indicate where to put the next domain in the directory structure

Directory structure in the manual
The default directory setup allows for 62 directories in 3 levels and
100 user directories per directory. The total number of user directories
is equal to
100 + (62 * 100) + (62 * 62 * 100) + (62 * 62 * 62 * 100)
= over 24 million directories.

1st level 1st directory
/home/vpopmail/domains/ the_dir nothing
100 domains go here
2nd directory
/home/vpopmail/domains/0/ the_dir = 0
100 domains go here
... 1-9 then A-Z then a-z
so 62th
/home/vpopmail/domains/z/ the_dir = z

2nd & 3rd level
/home/vpopmail/domains/0/0/
/home/vpopmail/domains/0/0/0/
so for 7001th domain
/home/vpopmail/domains/0/7/
level_cur = 1 level_index0 = 7 the_dir = 7

xaf






-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com



[qmailtoaster] Re: Check data in vpopmail/dir_control table

2012-08-08 Thread Eric Shubert

On 08/08/2012 11:12 AM, xaf wrote:

|--> Alessio Cecchi, le 06/08/2012 09:42, a dit :


One last question, in dir_control the dom_89 row report in "domains"
filed "51" and "0" in all other fields. i do not think is correct.

How can fix it? If someone explain me what the fileds means I can try to
correct it manually.


domains 51 is the total number of domains
for 51 domains
default values
level_cur 0
level_max 3
level_start0 0
level_start1 0
level_start2 0
level_end0 61
level_end1 61
level_end2 61
level_mod0 0
level_mod1 2
level_mod2 4
level_index0 0
level_index1 0
level_index2 0
the_dir nothing

the_dir indicate where to put the next domain in the directory structure

Directory structure in the manual
The default directory setup allows for 62 directories in 3 levels and
100 user directories per directory. The total number of user directories
is equal to
100 + (62 * 100) + (62 * 62 * 100) + (62 * 62 * 62 * 100)
= over 24 million directories.

1st level 1st directory
/home/vpopmail/domains/ the_dir nothing
100 domains go here
2nd directory
/home/vpopmail/domains/0/ the_dir = 0
100 domains go here
... 1-9 then A-Z then a-z
so 62th
/home/vpopmail/domains/z/ the_dir = z

2nd & 3rd level
/home/vpopmail/domains/0/0/
/home/vpopmail/domains/0/0/0/
so for 7001th domain
/home/vpopmail/domains/0/7/
level_cur = 1 level_index0 = 7 the_dir = 7

xaf

-


Please keep in mind that QMT uses this configuration setting:
 user dir hashing  = OFF --disable-users-big-dir
so a good deal of this (all of it?) does not come into effect.

--
-Eric 'shubes'




-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com



[qmailtoaster] Issue with Double Emails

2012-08-08 Thread Domnick Eger
I have one account that seems to get double emails, but no one else does. What 
could be causing this ?, I am using the latest version on CentOS 6x, with 
DoveCot.


[qmailtoaster] Re: Issue with Double Emails

2012-08-08 Thread Eric Shubert

On 08/08/2012 01:09 PM, Domnick Eger wrote:

I have one account that seems to get double emails, but no one else
does. What could be causing this ?, I am using the latest version on
CentOS 6x, with DoveCot.



I'm guessing that qmailadmin erroneously modified the associated .qmail 
file when it changed the user's name, or perhaps something else. There's 
a known bug in that area.


Check the user's .qmail file, and delete the extra line.

--
-Eric 'shubes'




-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com



Re: [qmailtoaster] Re: vqadmin

2012-08-08 Thread Postmaster

On 08/08/2012 19:23, Helmut Fritz wrote:

Can someone send me a sample of the offending code?  I have a resource that
might be able to help.

-Original Message-
From: Eric Shubert [mailto:e...@shubes.net]
Sent: Wednesday, August 08, 2012 8:14 AM
To: qmailtoaster-list@qmailtoaster.com
Subject: [qmailtoaster] Re: vqadmin

On 08/08/2012 08:03 AM, Maxwell Smart wrote:

This is strange - are you sure you have checked all files for 
No, I started with one, the index file.  It didn't work so I didn't
bother to go any farther.

I don't know php very well at all (yet), but I'm guessing that the index
file may have "included" other files (which could have "included other
files, etc.). Some of that stuff's written in C as well, which I suppose
could be generating php code dynamically and might include short tags.

Don't sweat this. If you're really interested in debugging it, let's
resume on the devel list, as it really concerns php53/Cos6. I'll be
getting to Cos6 stuff in the next few days.

FYG I followed this advice here - 
http://wiki.qmailtoaster.com/index.php/Troubleshooting#No_Menus_etc

and my problem with no menus in vqadmin has been resolved.

-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com



[qmailtoaster] Re: vqadmin

2012-08-08 Thread Eric Shubert

On 08/08/2012 01:53 PM, Postmaster wrote:

FYG I followed this advice here -
http://wiki.qmailtoaster.com/index.php/Troubleshooting#No_Menus_etc
and my problem with no menus in vqadmin has been resolved.


Are you sure it was vqadmin that was having trouble? Those files both 
belong to the control-panel-toaster package.


--
-Eric 'shubes'




-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com



Re: [qmailtoaster] Re: vqadmin

2012-08-08 Thread Postmaster

On 09/08/2012 00:06, Eric Shubert wrote:

On 08/08/2012 01:53 PM, Postmaster wrote:

FYG I followed this advice here -
http://wiki.qmailtoaster.com/index.php/Troubleshooting#No_Menus_etc
and my problem with no menus in vqadmin has been resolved.


Are you sure it was vqadmin that was having trouble? Those files both 
belong to the control-panel-toaster package.


Sorry, Eric, you are right - this is related to /admin-toaster/ not 
showing anything -> recent post by Cecil/Maxwell.



In relation to vqadmin, I fixed my issue with vqadmin by going to 
vpopmail->dir_control->cur_users or cur_level in mysql

(you can use phpMyAdmin for easy navigation) had a meaningless
number of 12203203804 ;)) It was some kind of a buffer overflow in the 
browser and hence


Log into http://yourdomain.com/admin-toaster/
click: Vqadmin
click: List Domains

did not work.

As soon as that number has been changed to zero vqadmin started working.


-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com



Re: [qmailtoaster] Re: vqadmin

2012-08-08 Thread Cecil Yother, Jr.


On 08/08/2012 02:45 PM, Postmaster wrote:

On 09/08/2012 00:06, Eric Shubert wrote:

On 08/08/2012 01:53 PM, Postmaster wrote:

FYG I followed this advice here -
http://wiki.qmailtoaster.com/index.php/Troubleshooting#No_Menus_etc
and my problem with no menus in vqadmin has been resolved.


Are you sure it was vqadmin that was having trouble? Those files both 
belong to the control-panel-toaster package.


Sorry, Eric, you are right - this is related to /admin-toaster/ not 
showing anything -> recent post by Cecil/Maxwell.



In relation to vqadmin, I fixed my issue with vqadmin by going to 
vpopmail->dir_control->cur_users or cur_level in mysql

(you can use phpMyAdmin for easy navigation) had a meaningless
number of 12203203804 ;)) It was some kind of a buffer overflow in the 
browser and hence


Log into http://yourdomain.com/admin-toaster/
click: Vqadmin
click: List Domains

did not work.

As soon as that number has been changed to zero vqadmin started working.

I have an account that is having the same issue, but when I change the 
value to 0 I get the following message:



 /Internal Server Error/

/The server encountered an internal error or misconfiguration and was 
unable to complete your request./


/Please contact the server administrator, root@localhost and inform them 
of the time the error occurred, and anything you might have done that 
may have caused the error./


/More information about this error may be available in the server error 
log./


I don't see anything in the logs that would indicate what's happening.




Re: [qmailtoaster] Re: Check data in vpopmail/dir_control table

2012-08-08 Thread xaf
|--> Eric Shubert, le 08/08/2012 20:53, a dit :

> On 08/08/2012 11:12 AM, xaf wrote:
>> |--> Alessio Cecchi, le 06/08/2012 09:42, a dit :
>>
>>> One last question, in dir_control the dom_89 row report in "domains"
>>> filed "51" and "0" in all other fields. i do not think is correct.
>>>
>>> How can fix it? If someone explain me what the fileds means I can try to
>>> correct it manually.
>>
>> domains 51 is the total number of domains
>> for 51 domains
>> default values
>> level_cur 0
>> level_max 3
>> level_start0 0
>> level_start1 0
>> level_start2 0
>> level_end0 61
>> level_end1 61
>> level_end2 61
>> level_mod0 0
>> level_mod1 2
>> level_mod2 4
>> level_index0 0
>> level_index1 0
>> level_index2 0
>> the_dir nothing
>>
>> the_dir indicate where to put the next domain in the directory structure
>>
>> Directory structure in the manual
>> The default directory setup allows for 62 directories in 3 levels and
>> 100 user directories per directory. The total number of user directories
>> is equal to
>> 100 + (62 * 100) + (62 * 62 * 100) + (62 * 62 * 62 * 100)
>> = over 24 million directories.
>>
>> 1st level 1st directory
>> /home/vpopmail/domains/ the_dir nothing
>> 100 domains go here
>> 2nd directory
>> /home/vpopmail/domains/0/ the_dir = 0
>> 100 domains go here
>> ... 1-9 then A-Z then a-z
>> so 62th
>> /home/vpopmail/domains/z/ the_dir = z
>>
>> 2nd & 3rd level
>> /home/vpopmail/domains/0/0/
>> /home/vpopmail/domains/0/0/0/
>> so for 7001th domain
>> /home/vpopmail/domains/0/7/
>> level_cur = 1 level_index0 = 7 the_dir = 7
>>
>> xaf
>>
>> -
> 
> Please keep in mind that QMT uses this configuration setting:
>   user dir hashing  = OFF --disable-users-big-dir
> so a good deal of this (all of it?) does not come into effect.
> 

--disable-users-big-dir is for users directories
here it's about domains directories

just a mistake, forget to count from 0 on the last line
so for 7001th domain
/home/vpopmail/domains/0/7/
level_cur = 1 level_index1 = 8 the_dir = 0/7

xaf




-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com



[qmailtoaster] Re: Hi Jake, pls help :|

2012-08-08 Thread Jake Vickers

On 08/08/2012 03:07 PM, nikolay mitev wrote:



First I want to congratulate you for a perfect job on the maintenance of
Qmail system truly perfect job, I would also ask you
little help "autorespond" system because when generating Re: body of the
email is kind of following aids:

"Hi, this is the e-mail server."
 Original Message 

 > 0LrQvtC90YLRgNC +0 LvQsCA2ICEK "

This text is in Cyrillic style, if you can please me how I can bring
correction so that the encoding is UTF8 or CP1251

- Installed software:
-
- Linux
- Autorespond-toaster-2.0.5 1.4.0
- Qmail-toaster-1.03




Looping in the support mailing list, where this question is better 
suited. Please join this list.
I'm not positive I understand what you're asking for. Is the message 
body in Cyrillic, and you want UTF-8, or vice versa? Or am I 
misunderstanding the question?


-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com



[qmailtoaster] Re: Check data in vpopmail/dir_control table

2012-08-08 Thread Eric Shubert

On 08/08/2012 03:57 PM, xaf wrote:

|--> Eric Shubert, le 08/08/2012 20:53, a dit :


On 08/08/2012 11:12 AM, xaf wrote:

|--> Alessio Cecchi, le 06/08/2012 09:42, a dit :


One last question, in dir_control the dom_89 row report in "domains"
filed "51" and "0" in all other fields. i do not think is correct.

How can fix it? If someone explain me what the fileds means I can try to
correct it manually.


domains 51 is the total number of domains
for 51 domains
default values
level_cur 0
level_max 3
level_start0 0
level_start1 0
level_start2 0
level_end0 61
level_end1 61
level_end2 61
level_mod0 0
level_mod1 2
level_mod2 4
level_index0 0
level_index1 0
level_index2 0
the_dir nothing

the_dir indicate where to put the next domain in the directory structure

Directory structure in the manual
The default directory setup allows for 62 directories in 3 levels and
100 user directories per directory. The total number of user directories
is equal to
100 + (62 * 100) + (62 * 62 * 100) + (62 * 62 * 62 * 100)
= over 24 million directories.

1st level 1st directory
/home/vpopmail/domains/ the_dir nothing
100 domains go here
2nd directory
/home/vpopmail/domains/0/ the_dir = 0
100 domains go here
... 1-9 then A-Z then a-z
so 62th
/home/vpopmail/domains/z/ the_dir = z

2nd & 3rd level
/home/vpopmail/domains/0/0/
/home/vpopmail/domains/0/0/0/
so for 7001th domain
/home/vpopmail/domains/0/7/
level_cur = 1 level_index0 = 7 the_dir = 7

xaf

-


Please keep in mind that QMT uses this configuration setting:
   user dir hashing  = OFF --disable-users-big-dir
so a good deal of this (all of it?) does not come into effect.



--disable-users-big-dir is for users directories
here it's about domains directories

just a mistake, forget to count from 0 on the last line
so for 7001th domain
/home/vpopmail/domains/0/7/
level_cur = 1 level_index1 = 8 the_dir = 0/7

xaf




Thanks for the correction. I wasn't paying close enough attention. 
Sometimes it says 'user' directories though, meaning 'domain' directories.


The vpopmail features web page says:
Support for 1 to 23 million virtual email domains using a "grow as it 
goes" balenced directory tree.
Support for 1 to 23 million email users per domain using the same 
balenced tree structure.


The --disable-users-big-dir turns it off for users, but not domains. 
There unfortunately is no --disable-domains-big-dir option (yet). 
There's not a whole lot involved with --disable-users-big-dir, so I 
presume that adding a --disable-domains-big-dir wouldn't be too tough.


Makes me wonder what the largest number of domains is on a QMT host. 
Probably < 1000. I expect that 10,000 would be stretching it.


I'm guessing this complexity is largely unnecessary in today's world. 
ext3 can have 32,000 subdirectories, and ext4 can have 64,000. I suppose 
it doesn't hurt to have the capability though (so long as it works). I'm 
inclined to have it go away for QMT though.


I just poked around the source a bit, and in the vauth.h file I found this:
#define MAX_USERS_PER_LEVEL 100

So it'd be trivial to patch this to, say, 3 on ext3 systems or 6 
on ext4 systems (with a configure option indicating the filesystem). 
This is the same code used regardless of hashed domains or users. Just 
thinking about possibilities.


If you have a QMT host with more than 100 domains, I'd like to hear from 
you. What do you think about this "feature"? Would you like to see it go 
away (like it has done with hashed user directories)?


P.S. This 'feature' needs to be kept in mind when writing scripts which 
do things in domain directories. I can think of a few scripts which will 
probably break when there are >100 domains.


Thanks for participating, everyone.

--
-Eric 'shubes'




-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com



[qmailtoaster] Re: Check data in vpopmail/dir_control table

2012-08-08 Thread Eric Shubert

On 08/08/2012 11:12 AM, xaf wrote:

|--> Alessio Cecchi, le 06/08/2012 09:42, a dit :


One last question, in dir_control the dom_89 row report in "domains"
filed "51" and "0" in all other fields. i do not think is correct.

How can fix it? If someone explain me what the fileds means I can try to
correct it manually.


domains 51 is the total number of domains
for 51 domains
default values
level_cur 0
level_max 3
level_start0 0
level_start1 0
level_start2 0
level_end0 61
level_end1 61
level_end2 61
level_mod0 0
level_mod1 2
level_mod2 4
level_index0 0
level_index1 0
level_index2 0
the_dir nothing

the_dir indicate where to put the next domain in the directory structure



51 is total number of domains? Alessio said originally that he had 
around 1300 domains. I expect this directory hashing has definitely 
kicked in if that's the case.


Alessio, do you have a good count? What does your present domains/ tree 
look like? Should have 12 or so level-0 domains in addition to 100 real 
domains. I'm guessing there could be holes though if domains have been 
deleted.


Man, what a mess. :(


--
-Eric 'shubes'




-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com



Re: [qmailtoaster] Re: vqadmin

2012-08-08 Thread Postmaster

On 09/08/2012 01:32, Cecil Yother, Jr. wrote:


On 08/08/2012 02:45 PM, Postmaster wrote:

On 09/08/2012 00:06, Eric Shubert wrote:

On 08/08/2012 01:53 PM, Postmaster wrote:

FYG I followed this advice here -
http://wiki.qmailtoaster.com/index.php/Troubleshooting#No_Menus_etc
and my problem with no menus in vqadmin has been resolved.


Are you sure it was vqadmin that was having trouble? Those files 
both belong to the control-panel-toaster package.


Sorry, Eric, you are right - this is related to /admin-toaster/ not 
showing anything -> recent post by Cecil/Maxwell.



In relation to vqadmin, I fixed my issue with vqadmin by going to 
vpopmail->dir_control->cur_users or cur_level in mysql

(you can use phpMyAdmin for easy navigation) had a meaningless
number of 12203203804 ;)) It was some kind of a buffer overflow in 
the browser and hence


Log into http://yourdomain.com/admin-toaster/
click: Vqadmin
click: List Domains

did not work.

As soon as that number has been changed to zero vqadmin started working.

I have an account that is having the same issue, but when I change the 
value to 0 I get the following message:



  /Internal Server Error/

/The server encountered an internal error or misconfiguration and was 
unable to complete your request./


/Please contact the server administrator, root@localhost and inform 
them of the time the error occurred, and anything you might have done 
that may have caused the error./


/More information about this error may be available in the server 
error log./


I don't see anything in the logs that would indicate what's happening.



A little bit more debug information is required.
Can you please post your apache error log? Internal Server Error is can 
be anything


[qmailtoaster] Re: Blackberry Incoming Mail Issue

2012-08-08 Thread Eric Shubert

On 08/08/2012 10:05 PM, rajeshrudramani wrote:



Hi,



  One of my qmail mail server incoming mails from black berry
mail are marked as spam. I have adjusted the spam score and white listed
in local.cf . But still problem persist, can any ane
guide me in this.



My local.cf  file


# These values can be overridden by editing
~/.spamassassin/user_prefs.cf 
# (see spamassassin(1) for details)
# These should be safe assumptions and allow for simple visual sifting
# without risking lost emails.

ok_locales all
skip_rbl_checks 1

required_score 5
report_safe 0
rewrite_header Subject ***SPAM***


use_pyzor 1
#use_razor2 1
#razor_config /etc/mail/spamassassin/.razor/razor-agent.conf

use_auto_whitelist 1

use_bayes 1
use_bayes_rules 1
bayes_auto_learn 1


whitelist_from *blackberry.com 
whitelist_from *@srs.bis7.eu.blackberry.com

whitelist_from *.blackberry.com 
whitelist_from_rcvd *blackberry.com 
blackberry.com 
whitelist_from_rcvd *@blackberry.com 
whitelist_from @bis.na.blackberry.com 
whitelist_from *.blackberry.net 
whitelist_from *.blackberry.com 
whitelist_from *.bis.na.blackberry.com 
whitelist_from *@srs.*.*.blackberry.com 
whitelist_from_rcvd *.srs.*.*.blackberry.com 
whitelist_from *.srs.*.*.blackberry.com 
whitelist_from eu.blackberry.com 
whitelist_from bis.na.blackberry.com 
whitelist_from blackberry.com 
whitelist_from na.blackberry.com 
whitelist_from tmo.blackberry.net 
whitelist_from *@b3.c6.bise7.blackberry
whitelist_from *eu.blackberry.com 
whitelist_from *@smtp01.bis7.eu.blackberry.com

def_whitelist_from_rcvd *.srs.bis7.eu.blackberry.com

whitelist_from *@blackberry.net 


Regards,
Rajesh


Please post the spam headers from the email that was tagged. That will 
tell which rules fired, causing the score that resulted.


--
-Eric 'shubes'




-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com



Re: [qmailtoaster] Re: Blackberry Incoming Mail Issue

2012-08-08 Thread rajeshrudramani
Hi Eric,


  Below are the header part


Return-Path:

Delivered-To: x...@xxx.com
Received: (qmail 11333 invoked by uid 89); 26 Jul 2012 10:28:11 -
Delivered-To: x...@xxx.com
Received: (qmail 11326 invoked by uid 89); 26 Jul 2012 10:28:11 -
Received: by simscan 1.4.0 ppid: 11315, pid: 11321, t: 0.3416s
 scanners: attach: 1.4.0 clamav: 0.97.4/m:54/d:15180 spam: 3.2.5
X-Spam-Flag: YES
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on
mail.xxx.com
X-Spam-Level: **
X-Spam-Status: Yes, score=6.3 required=6.0 tests=FH_DATE_PAST_20XX,
MIME_BASE64_TEXT,RDNS_NONE autolearn=no version=3.2.5
X-Spam-Report:
*  3.4 FH_DATE_PAST_20XX The date is grossly in the future.
*  2.8 MIME_BASE64_TEXT RAW: Message text disguised using base64
encoding
*  0.1 RDNS_NONE Delivered to trusted network by a host with no rDNS
Received: from unknown (HELO smtp02.bis7.eu.blackberry.com) (178.239.85.7)
  by mail.xxx.com with SMTP; 26 Jul 2012 10:28:11 -
Received: from b3.c6.bise7.blackberry ([192.168.0.103])
by srs.bis7.eu.blackberry.com (8.13.7 TEAMON/8.13.7) with ESMTP id
q6QAS9TU028737
for ; Thu, 26 Jul 2012 10:28:09 GMT
Received: from 172.18.199.179 (cmp9.c6.bise7.blackberry [172.18.199.179])
by b3.c6.bise7.blackberry (8.13.7 TEAMON/8.13.7) with ESMTP id
q6QAS4X1028618
for ; Thu, 26 Jul 2012 10:28:04 GMT
X-rim-org-msg-ref-id: 887951908
Message-ID:
<887951908-1343298483-cardhu_decombobulator_blackberry.rim.net-2065457287-@b
28.c6.bise7.blackberry>
Content-Transfer-Encoding: base64
Reply-To: karthik...@xxx.com
X-Priority: Normal
Sensitivity: Normal
Importance: Normal
Subject: ***SPAM*** Fw: sap
To: ithelpd...@xxx.com
From: karthik...@xxx.com
Date: Thu, 26 Jul 2012 10:27:56 +
Content-Type: text/plain; charset="Windows-1252"
MIME-Version: 1.0
X-Spam-Prev-Subject: Fw: sap


-Original Message-
From: x...@xxx.com
Date: Thu, 26 Jul 2012 08:04:34
To: 
Reply-To: x...@xxx.com
Subject: sap


Regards,
Rajesh


On Thu, Aug 9, 2012 at 10:58 AM, Eric Shubert  wrote:

> On 08/08/2012 10:05 PM, rajeshrudramani wrote:
>
>>
>>
>> Hi,
>>
>>
>>
>>   One of my qmail mail server incoming mails from black berry
>> mail are marked as spam. I have adjusted the spam score and white listed
>> in local.cf . But still problem persist, can any ane
>> guide me in this.
>>
>>
>>
>> My local.cf  file
>>
>>
>>
>> # These values can be overridden by editing
>> ~/.spamassassin/user_prefs.cf 
>>
>> # (see spamassassin(1) for details)
>> # These should be safe assumptions and allow for simple visual sifting
>> # without risking lost emails.
>>
>> ok_locales all
>> skip_rbl_checks 1
>>
>> required_score 5
>> report_safe 0
>> rewrite_header Subject ***SPAM***
>>
>>
>> use_pyzor 1
>> #use_razor2 1
>> #razor_config /etc/mail/spamassassin/.razor/**razor-agent.conf
>>
>> use_auto_whitelist 1
>>
>> use_bayes 1
>> use_bayes_rules 1
>> bayes_auto_learn 1
>>
>>
>> whitelist_from *blackberry.com 
>> whitelist_from *@srs.bis7.eu.blackberry.com
>> >
>> whitelist_from *.blackberry.com 
>> whitelist_from_rcvd *blackberry.com 
>> blackberry.com 
>> whitelist_from_rcvd *@blackberry.com 
>> whitelist_from @bis.na.blackberry.com 
>> whitelist_from *.blackberry.net 
>> whitelist_from *.blackberry.com 
>> whitelist_from *.bis.na.blackberry.com 
>> whitelist_from *@srs.*.*.blackberry.com 
>> whitelist_from_rcvd *.srs.*.*.blackberry.com 
>> whitelist_from *.srs.*.*.blackberry.com 
>> whitelist_from eu.blackberry.com 
>> whitelist_from bis.na.blackberry.com 
>> whitelist_from blackberry.com 
>> whitelist_from na.blackberry.com 
>> whitelist_from tmo.blackberry.net 
>> whitelist_from *@b3.c6.bise7.blackberry
>> whitelist_from *eu.blackberry.com 
>> whitelist_from 
>> *@smtp01.bis7.eu.blackberry.**com
>> 
>> >
>> def_whitelist_from_rcvd *.srs.bis7.eu.blackberry.com
>> >
>> whitelist_from *@blackberry.net 
>>
>>
>> Regards,
>> Rajesh
>>
>
> Please post the spam headers from the email that was tagged. That will
> tell which rules fired, causing the score that resulted.
>
> --
> -Eric 'shubes'
>
>
>
>
> --**--**-
> To unsubscribe, e-mai

Re: [qmailtoaster] Re: Blackberry Incoming Mail Issue

2012-08-08 Thread Alessio Cecchi

Il 09/08/2012 07:56, rajeshrudramani ha scritto:

Hi Eric,


   Below are the header part


Return-Path:
http://.com>=r...@srs.bis7.eu.blackberry.com
>
Delivered-To: x...@xxx.com 
Received: (qmail 11333 invoked by uid 89); 26 Jul 2012 10:28:11 -
Delivered-To: x...@xxx.com 
Received: (qmail 11326 invoked by uid 89); 26 Jul 2012 10:28:11 -
Received: by simscan 1.4.0 ppid: 11315, pid: 11321, t: 0.3416s
  scanners: attach: 1.4.0 clamav: 0.97.4/m:54/d:15180 spam: 3.2.5
X-Spam-Flag: YES
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on
mail.xxx.com 
X-Spam-Level: **
X-Spam-Status: Yes, score=6.3 required=6.0 tests=FH_DATE_PAST_20XX,
 MIME_BASE64_TEXT,RDNS_NONE autolearn=no version=3.2.5
X-Spam-Report:
 *  3.4 FH_DATE_PAST_20XX The date is grossly in the future.
 *  2.8 MIME_BASE64_TEXT RAW: Message text disguised using base64
encoding
 *  0.1 RDNS_NONE Delivered to trusted network by a host with no
rDNS


Hi,

your problem is an older version of spamassassin (3.2.5). If you can 
upgrade to 3.3.


Another problem is the score of FH_DATE_PAST_20XX 
(http://wiki.apache.org/spamassassin/Rules/FH_DATE_PAST_20XX)


Set

score FH_DATE_PAST_20XX 0.0

in your local.cf and restart spamd.

Ciao
--
Alessio Cecchi is:
@ ILS -> http://www.linux.it/~alessice/
on LinkedIn -> http://www.linkedin.com/in/alessice
Assistenza Sistemi GNU/Linux -> http://www.cecchi.biz/
@ PLUG -> ex-Presidente, adesso senatore a vita, http://www.prato.linux.it

-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com