0

Happy Holidays and Merry Christmas!


#!/bin/bash

christmas=`date +%m/\%e`

nextchristmas=$((($(date +%s -d "2009-12-25" ) - $(date +%s -d now ))/86400))

if [ "$christmas" = '12/25' ]
then
echo "Merry Christmas and Happy Holidays!"
else
echo "Today is `date +%D` so it isn't Christmas yet! Only $nextchristmas days left until Christmas in 2009!"
fi

0

How many catch-all addresses are set up in Plesk?

To find out *approximately* how many domains have catch-all accounts set up, you can run the following on your server via SSH:

mysql -uadmin -p`cat /etc/psa/.psa.shadow` -Dpsa -e"select name, type, value from domains inner join DomainServices on DomainServices.dom_id=domains.id inner join Parameters on Parameters.id=DomainServices.parameters_id where parameter='catch_addr';"

I say approximately because once you enable this feature in Plesk, the Parameters table in the psa database gets updated with the value specified in the catch-all field. If you were to revert this change, say to reject incoming emails that are being sent to a non-specified email address, the changes don’t get written to the psa database and the results from running the command above can result in false-positives.

Copyright © 2010 — | Site design by Trevor Fitzgerald