Troubleshoot spamming in qmail server

ARUN Posted in ATTACK, MAIL, PLESK BACKEND
0

How to get the mail statistics :

[root@ qmail]# /var/qmail/bin/qmail-qstat
messages in queue: 23024
messages in queue but not yet preprocessed: 0
[root@ qmail]#

 

Plesk log files

ARUN Posted in LOG FILES, PLESK BACKEND
0

HTTPD LOGS

/etc/httpd/logs/error_log

EMAIL LOG

/usr/local/psa/var/log/maillog

PLESK ERROR LOG

/var/log/sw-cp-server/error_log

Plesk showing offline management error

ARUN Posted in PLESK BACKEND, PLESK FRONTEND
0

Solution :

[   vzctl set VEID --save --offline_management yes --offline_service vzpp   ]

Backend path where the plesk emails are stored

ARUN Posted in MAIL, PLESK BACKEND, QMAIL
0

Plesk mail directory path :

/var/qmail/mailnames/DOMAIN.com/USERNAME

When we create a folder from within the webmail its created at the backend on

/var/qmail/mailnames/DOMAIN.com/USERNAME/Maildir/.FOLDER_NAME

ITS A HIDDEN FILE

How to run backup on plesk 10+ servers

ARUN Posted in BACKUP, PLESK BACKEND
0

cd /usr/local/psa/bin/

./pleskbackup –help

TAKE BACKUP SERVER WIDE :

./pleskbackup server -vv

TAKE BACKUP DOMAIN WISE :

./pleskbackup domain-name

A message with the following attributes was not delivered because it contains an object which cannot be checked by antivirus. Relaying such messages is blocked by administrator.

ARUN Posted in FIREWALL, PLESK BACKEND, PLESK FRONTEND
0

Getting the below bounce message while trying to send emails to plesk server with drweb enabled.

================

A message with the following attributes was not delivered because it contains an object which cannot be checked by antivirus.
Relaying such messages is blocked by administrator.

================

Or

==================================

Getting the below message while trying to stop drweb from within plesk >> service management

Unable to make action: Unable to manage service by dr mgr: Empty error message from utility. (‘–stop’, ‘drweb’)

====================================

Solution :

/etc/init.d/drwebd restart

If that doesnot work kill all drweb process.

pgrep drwebd | xargs kill -9
Then check emails and if that work try enabling dr web again using
/etc/init.d/drwebd restart

 

View files in server using IP in PLESK server

ARUN Posted in PLESK BACKEND, PLESK FRONTEND
0

/var/www/vhosts/default/htdocs/

You can call using  IP/file.txt

How to start running mail server in plesk

ARUN Posted in PLESK BACKEND
0

[  /usr/local/psa/admin/sbin/mailmng --start-service   ]
[  /usr/local/psa/admin/sbin/mailmng --stop-smtpd    ]

Domain expires in plesk automatically even when we set expiry period as unlimited.

ARUN Posted in PLESK BACKEND, PLESK FRONTEND
0

Domain aotomatically expires even if we have setup unlimited expiry period in plesk.

SOLUTION :

for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e “select name from domains”`; do /usr/local/psa/bin/domain_pref -u $i -expiration -1;done

NOTE: All the domains will be changed to unlimited domain expiry.

How to get the proper domain Include file in plesk

ARUN Posted in PLESK BACKEND
0

cat /usr/local/psa/admin/conf/vhosts_bootstrap.conf | grep your_domain

How to remove an IP address from plesk panel

ARUN Posted in PLESK BACKEND, PLESK FRONTEND
0

After a VPS migration if you happen to see old IP address in plesk even after the migration, you first need to remove the old IP address from VPS. For that login to NODE server.

 

/usr/local/psa/bin/ipmanage.sh -r OLD_IP

How to upgrade php in plesk safely

ARUN Posted in PHP, PLESK BACKEND, PLESK FRONTEND
0

wget -q -O – http://www.atomicorp.com/installers/atomic.sh | sh

[      yum update php* --exclude=php*5.3*     ]

Postfix mail queue management command.

ARUN Posted in MAIL, PLESK BACKEND, POSTFIX
0

Few postfix mail queue management commands.

Command to get the Id of emails to be printed on a file called remove.sh

mailq | grep “apache@” | awk ‘{print $1}’ | sed ‘s/!//g’ | sed ‘s/^/\/usr\/sbin\/postsuper -d /g’ > remove.sh

chmod +x remove.sh

./remove.sh


Plesk shows incorrect disk quota

ARUN Posted in DISK RELATED, PLESK BACKEND, PLESK FRONTEND
0

Plesk shows incorrect disk space usage while accessed through control panel

/usr/local/psa/admin/sbin/statistics –calculate-one –domain-name=<domain_name>

How to update drweb antivirus

ARUN Posted in PLESK BACKEND, VIRUS SCAN
0

/opt/drweb/update.pl