• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Workarounds

Status
Not open for further replies.
Cannot use DNSBL & SMTP auth with Postifx

Plesk 9.x

The main problem when you enable DNSBL with Postifx if that it will generate a conf like:

smtpd_client_restrictions = reject_rbl_client pbl.spamhaus.org, permit_mynetworks, permit_sasl_authenticated

The problem is that 'reject_rbl_client pbl.spamhaus.org' appears in first, so most people using their normal ISP DSL connection cannot even get a chance to authenticate.

'reject_rbl_client pbl.spamhaus.org' should be placed at the end of the line, not at the beginning.

SOLUTION:

Patch for all OSes - http://download1.sw-soft.com/Plesk/Autoupdate/updateDNSBL.tar.gz
 
Mails from own users are rejected

Plesk 9.5.2
Initially problem - http://forum.parallels.com/showthread.php?t=100955

just setup Plesk 9.5.1 on last saturday and tried to enable greylisting like on 9.3.
It works fine, except it rejects the emails an authorized user tries to send.
How can I fix this?

Apr 19 07:06:03 essen124 postfix/smtpd[31178]: connect from unknown[188.98.94.237]
Apr 19 07:06:03 essen124 postfix/smtpd[31215]: connect from unknown[127.0.0.1]
Apr 19 07:06:03 essen124 postfix/smtpd[31178]: NOQUEUE: client=unknown[188.98.94.237], sasl_method=PLAIN, sasl_username=<LOCALY HOSTED>
Apr 19 07:06:03 essen124 postfix/smtpd[31215]: 2C3E2F285FB: client=unknown[188.98.94.237]
Apr 19 09:06:03 essen124 before-queue[31315]: check handlers for addr: <LOCALY HOSTED>
Apr 19 09:06:03 essen124 before-queue[31315]: check handlers for addr: <LOCALY HOSTED>
Apr 19 09:06:03 essen124 before-queue[31315]: Processing handlers...
Apr 19 09:06:03 essen124 before-queue[31315]: hook_dir = '/usr/local/psa/handlers/before-queue'
Apr 19 09:06:03 essen124 before-queue[31315]: call_handlers: call executable = '/usr/local/psa/handlers/info/05-grey-CHxMh8/executable'
Apr 19 09:06:03 essen124 greylisting filter[31317]: Starting greylisting filter...
Apr 19 09:06:03 essen124 before-queue[31315]: handlers_stderr: DEFER
Apr 19 09:06:03 essen124 before-queue[31315]: call_handlers: DEFER during call '/usr/local/psa/handlers/info/05-grey-CHxMh8/executable' handler
Apr 19 09:06:03 essen124 before-queue[31315]: call_handlers: stop call handlers from dir '/usr/local/psa/handlers/before-queue/global'
Apr 19 07:06:03 essen124 postfix/smtpd[31215]: disconnect from unknown[127.0.0.1]

SOLUTION:

Fixed postfix-queue for all OSes.
http://download1.sw-soft.com/Plesk/Autoupdate/update5.zip
 
Last edited:
Only 3 Items in postfix Whitelist

Plesk version 9.5.x
OS: debian-5-x86_64

How-to reproduce:

add 3 or more IPs on the server:

# ifconfig | grep inet
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255
inet addr:10.55.62.85 P-t-P:10.55.62.85 Bcast:0.0.0.0 Mask:255.255.255.255
inet addr:10.55.62.83 P-t-P:10.55.62.83 Bcast:0.0.0.0 Mask:255.255.255.255
inet addr:10.55.62.88 P-t-P:10.55.62.88 Bcast:0.0.0.0 Mask:255.255.255.255


Add any IP into whitelist:

# /opt/psa/admin/bin/mailmng '--add-whitelist' '--ip-address=100.0.0.1' '--netmask=24'
Reloading Postfix configuration...done.

looks ok:

# grep ^mynetworks /etc/postfix/main.cf
mynetworks = 127.0.0.0/8, 10.55.62.85/32, 100.0.0.1/24

however if we add one more IP to whitelist it will overwrite the last value:

# /opt/psa/admin/bin/mailmng '--add-whitelist' '--ip-address=200.0.0.1' '--netmask=24'
Reloading Postfix configuration...done.

# grep ^mynetworks /etc/postfix/main.cf
mynetworks = 127.0.0.0/8, 10.55.62.85/32, 200.0.0.1/24

However if a server has 1 IP, the problem is not reproducible:

# /opt/psa/admin/bin/mailmng '--add-whitelist' '--ip-address=200.0.0.1' '--netmask=24'

# grep ^mynetworks /etc/postfix/main.cf
mynetworks = 127.0.0.0/8, 10.55.62.85/32, 100.0.0.1/24, 200.0.0.1/24

all 4 IPs are in white list.

SOLUTION:

patched binary mailmng for deb50x64 is attached
 

Attachments

  • mailmng.zip
    372.1 KB · Views: 0
Plesk 8.x, 9.x

Following error after restoring backup:

==
Execution of /usr/local/psa/admin/plib/api-cli/domadmin.php --update domain.org -passwd failed with return code 1.
Stderr is Password should not be longer then 14 symbols

Execution of /usr/local/psa/admin/plib/api-cli/domadmin.php --update domain.com -passwd -multiple-sessions true -status true -allow_ftp_backups false -allow_local_backups false -manage_anonftp false -manage_crontab false -manage_dashboard true -manage_dns false -manage_domain_aliases false -manage_ftp_password false -manage_log false -manage_maillists false -manage_phosting false -manage_quota false -manage_spamfilter false -manage_subdomains false -manage_virusfilter false -manage_webapps false -manage_webstat true -select_db_server false -site_builder false -country TH -locale en-US failed with return code 1.
Stderr is
Password should not be longer then 14 symbols
==

SOLUTION:

Replace /usr/local/psa/admin/plib/api-common/cuDomAdmin.php file with attached.
 

Attachments

  • cuDomAdmin.php.zip
    24.8 KB · Views: 8
  • cuDomAdmin.php.860.zip
    24.8 KB · Views: 4
Last edited:
Upgrade to 9.5.2 failed due to syslog reload on CentOS 5.5

http://forum.parallels.com/showthread.php?t=102530

----
i have a problem upgrading a box to 9.5.2 on CentOS 5.5
The OS itself is fully up2date which is the problem i assume, a few weeks back centos switched the syslogger from sysklogd to syslog-ng, i assume that is where the installer fails...
Any Ideas or Workaround would be greatly appreciated.

Trying to reload service syslog...
ERROR while trying to Unable to handle syslog
Check the error reason(see log file: /tmp/psa-qmail_1.03_cos5.build95100504.10_upgrade.100624.15 .18.log), fix and try again

Aborting...

error: %post(psa-qmail-1.03-cos5.build95100504.10.x86_64) scriptlet failed, exit status 1
Error: An error occurred during installation of packages.
Attention! Your software might be inoperable.
Please, contact product technical support.
-----

SOLUTION:

Update Plesk with packages from attach before upgrade.
 

Attachments

  • psa-qmail-1.03-cos5.build95100504.10.x86_64.rpm.zip
    582.1 KB · Views: 12
  • psa-qmail-1.03-cos5.build95100504.12.i586.rpm.zip
    507.4 KB · Views: 11
  • psa-selinux-9.5.2-cos5.build95100504.12.noarch.rpm.zip
    38.1 KB · Views: 9
  • psa-mail-qc-driver-1.0.0-cos5.build95100504.10.x86_64.rpm.zip
    614.7 KB · Views: 12
  • psa-mail-qc-driver-1.0.0-cos5.build95100504.12.i586.rpm.zip
    589.4 KB · Views: 7
Last edited:
phpMyAdmin 2.9.11 Security Issue. Upgrade.

The built in phpMyAdmin 2.9.11 provided for Plesk 9.5 has several security issues that requires a patch or an upgrade. Links to the security alerts below.

http://www.phpmyadmin.net/home_page/security/PMASA-2010-4.php
http://www.phpmyadmin.net/home_page/security/PMASA-2010-3.php

According to the links above, the solution is upgrading to to phpMyAdmin 2.11.10.1.

SOLUTION:

Currently Plesk Panel 9.5.x for Linux provides phpMyAdmin 2.11.9.6 (not 2.9.11)

The patch to upgrade phpMyAdmin from version 2.11.9.6 to 2.11.10.1 is attached.
Don't forget to backup previous version of /usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin directory before applying the patch.

To apply the patch go to /usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin and run the following command (assume that the patch was uploaded to /root directory):
# patch -p1 < ~/51314.patch
 

Attachments

  • 51314.zip
    38.7 KB · Views: 45
Enable custom php.ini configuration for PHP/FastCGI

Ability for PHP when working in FastCGI mode to use custom php.ini config on per-domain basis (e.g. VHOST_ROOT/conf/php.ini) since options passed in vhost.conf (such as 'php_value include_path "."') only work with mod_php but not with mod_fcgid.

SOLUTION:

1. Replace cgi_wrapper to path $CGI_PHP_BIN(see psa.conf) with attached wrapper
2. cp {original php.ini} $HTTPD_VHOSTS_D/<domain>/conf/
3. chmod 0755 $HTTPD_VHOSTS_D/<domain>/conf
4. get the fun.

Example for centos5 Plesk 9.5.2. domain name - "test.domain.com":

1. cp cgi_wrapper /var/www/cgi-bin/cgi_wrapper
2. cp /etc/php.ini /var/www/vhosts/test.domain.com/conf
3. chmod 0755 /var/www/vhosts/test.domain.com/conf
 

Attachments

  • cgi_wrapper.zip
    1,020 bytes · Views: 25
Spam training/bayes displays 0

Spam training "spammng" process occupies all memory on the Plesk server and as a result Spam Filter Training tab is depicted incorrectly.

SOLUTION:

Try attached file for all OSes. Replace file into /usr/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/
 

Attachments

  • CmdManageSA3.zip
    9.4 KB · Views: 20
"Forgot your password" does not work in IE8

Open IE8 and go to Plesk control panel->"Forgot your password" like

https://domain.com:8443/get_password.php?

try to retrieve the password for any user (type any information in the field, event if the user does not exist). You will not get any information that password was set to email. It you try to repeat the steps and resent the password again, you will get:

ERROR: PleskPermissionDeniedException Up Level
Permission denied.
--------------------------------------------------------------------------------
0: auth.php3:603

Everything works fine in Firefox.

SOLUTION:

Hotfixes for 10.0.1,and 10.1 in attach.
 

Attachments

  • auth.php3.10.0.1.unix.zip
    20.7 KB · Views: 3
  • auth.php3.10.0.1.windows.zip
    20 KB · Views: 1
  • auth.php3.10.1.0.unix.zip
    20.2 KB · Views: 2
  • auth.php3.10.1.0.windows.zip
    20.2 KB · Views: 6
How to generate 'Usage by services' for 'Disk space used'?

Login to subscriber's Control Panel and change to tab Statistics. Disc space is overused on the domain:

Disk space used: 2.00 GB
2.60 GB used 0 B allowed :

Usage by services
The data were not collected yet.

SOLUTION:

For Win and Lin in attach.
 

Attachments

  • StatisticsController.tar.bz2
    18.4 KB · Views: 6
Status
Not open for further replies.
Back
Top