Category: Plesk 11

  • postfix-delete.pl scipt

    #!/usr/bin/perl $REGEXP = shift || die “no email-adress given (regexp-style, e.g. bl.*@yahoo.com)!”; @data = qx</usr/sbin/postqueue -p>; for (@data) { if (/^(w+)(*|!)?s/) { $queue_id = $1; } if($queue_id) { if (/$REGEXP/i) { $Q{$queue_id} = 1; $queue_id = “”; } } } #open(POSTSUPER,”|cat”) || die “couldn’t open postsuper” ; open(POSTSUPER,”|/usr/sbin/postsuper -d -“) || die “couldn’t open postsuper”…

  • How to troubleshoot spamming activities on postfix mail server.

    1. To see the mail queue: mailq 2. To flush the mail queue: postfix flush or postfix -f 3. To remove all mails from the queue: postsuper -d ALL 4. To remove all mails in the deferred queue: postsuper -d ALL deferred 5. To delete all queued messages from or to the domain called webserverpage.com:…

  • Plesk 12.0 Installation in Centos 6.5

    1. Download the plesk installer from their website. wget http://autoinstall.plesk.com/plesk-installer 2. Change the permission to executable. chmod +x plesk-installer 3. Run the script. ./plesk-installer To start the installation or upgrade, press N and then press Enter. To quit the installer, press Q and then press Enter. —— IMPORTANT —— * Before installing or upgrading Parallels…

  • How to get a list of domains hosted in Plesk control panel.

    How to get a list of domains hosted in Plesk control panel.

  • Fix: Windows Plesk 11 not accessble

    1. Login to your server using RDP. 2. Open command prompt. 3. Run the command below. “%plesk_bin%”websrvmng.exe –configure-plesk-website”

  • Horde is not showing inbox messages

    1) Backup horde database (/hordebackup.sql). mysqldump -uadmin -p`cat /etc/psa/.psa.shadow` horde > horde_backup.sql 2) Run the below mysql queries for horde database. mysql> select * from horde_prefs where pref_uid=’test@domain.com’ and pref_name=’sortpref’; mysql> delete from horde_prefs where pref_uid=’test@domain.com’ and pref_name=’sortpref’;

  • How to enable port 587 (submission) in postfix

    To enable port 587, edit the file /etc/postfix/master.cf vi /etc/postfix/master.cf and remove the # in front of the line: #submission inet n – n – – smtpd so that it looks like this: submission inet n – n – – smtpd and restart postfix: /etc/init.d/postfix restart

  • How to find which domain spamming via PHP script?

    PLESK 1) Create a /var/qmail/bin/sendmail-wrapper script with the following content: #!/bin/sh (echo X-Additional-Header: $PWD ;cat) | tee -a /var/tmp/mail.send|/var/qmail/bin/sendmail-qmail “$@” Note, it should be two lines including ‘#!/bin/sh’. 2) Create a log file /var/tmp/mail.send and grant it “a+rw” rights; make the wrapper executable; rename old sendmail; and link it to the new wrapper: ~# touch…

  • How to repair mail server configuration in Plesk?

    Use mchk utility to repair/rebuild mail server configuration and restore settings for all mailboxes created in Parallels Plesk Panel. Plesk for Linux: ~# /usr/local/psa/admin/sbin/mchk –help Restore settings for all mailboxes. Usage: /usr/local/psa/admin/sbin/mchk [OPTION] OPTIONS: –without-spam restore all settings except for SpamAssassin configuration –with-spam restore all settings –spam-only restore only SpamAssassin settings ~# /usr/local/psa/admin/sbin/mchk –with-spam Plesk…