Saturday, July 25, 2009

Plesk 9.2 and files starting with dot

After the default setup of Plesk 9.2 for Unix, the default FTP config hides the files starting with dot. To resolve this problem with the latest versions of ProFTPd, you have to add the following line to the /etc/proftpd.conf:

ListOptions “-a”

More information on this directive

Thursday, July 23, 2009

Plesk 9.2 and the postmaster

My company uses Plesk to provide hosting services to our Clients. We faced with the problem of creating the default domain e-mail addresses for all domains. I mean postmaster@domain.com, root@domain.com, and abuse@domain.com.

To create these e-mail addresses the easiest way is to create a script which copies the .qmail-postmaster file into each domain’s mailnames (/var/qmlail/mailnames) folder. So I wrote the following little script to do this updated, and I called it from crontab periodically.

#!/bin/bash for domain in `ls /var/qmail/mailnames/ | xargs`; do if [ ! -f "/var/qmail/mailnames/$domain/.qmail-postmaster" ] then echo "Updating postmaster account for $domain domain" cp /var/qmail/alias/.qmail-postmaster /var/qmail/mailnames/$domain/.qmail-root cp /var/qmail/alias/.qmail-postmaster /var/qmail/mailnames/$domain/.qmail-abuse cp /var/qmail/alias/.qmail-postmaster /var/qmail/mailnames/$domain/.qmail-postmaster fi done

But it not works with the Domain Aliases (as Plesk calls them). These are the virtual domains in the Qmail’s language. So I will try to dig how it works fine with these virtual ones.

After a couple of days…

I found the answer for my question. I wrote a script which queries the Plesk’s database for domains with aliases and creates a symbolic link to the domain’s folder in the mailnames QMail folder.