Archive for the ‘Plesk’ Category

Adding a secondary SMTP port in Plesk

Choose an unused port and add it to the /etc/services file, for example: smtp_alt 2525/tcp # new SMTP port Make a copy of /etc/xinetd.d/smtp_psa to /etc/xinetd.d/smtp_psa_alt and correct service line within new file: service smtp_alt Restart xinetd `/etc/init.d/xinetd restart` Edit the firewall, adding port 25025

Adding a second FTP account in Plesk

Sometimes it’s necessary to have two FTP users on a domain with access to the httpdocs and/or subdirectories, which Plesk doesn’t allow by default. # Create a web user in Plesk # Change the default directory to the required one and the userid to the same as the main FTP user grep ftpuser1 /etc/passwd usermod […]

Plesk SQL Queries

A few queries I put together to grab info from the Plesk database for troubleshooting: #FTP ACCOUNTS #———— SELECT account_id AS ‘ID’, login AS ‘USERNAME’, password AS ‘PASSWORD’, home AS ‘HOMEDIR’ FROM sys_users S, accounts A WHERE S.account_id =; #MAIL ACCOUNTS #————- SELECT account_id AS ‘ID’, mail_name AS ‘USERNAME’, password AS ‘PASSWORD’, postbox as […]