Ramblings from MostlyChris

Tech stuff and a bit more

Browsing Posts published in April, 2009

I may be wrong here, but I believe the default queue lifetime for a message sitting in the qmail queue is 7 days. To me, that's entirely too long to wait to deliver a defunct message considering most of them are probably SPAM bounces anyway. Here is how to shorten the lifetime. Change to the [...]

Change to the Postfix configuration directory. Usually this is in /etc/postfix. cd /etc/postfix Open the sender_access file or create it if it doesn't exist. vi sender_access Add the email address you want rejected on a new line in the file followed by REJECT. email@address.com REJECT Save the file. Create the server_access database with the postmap [...]

First, copy the smtp_psa file. cp /etc/xinetd.d/smtp_psa /etc/xinetd.d/smtp_additional Edit the newly copied file and replace the first line. Replace 'service smtp' with 'service submission' vi /etc/xinetd.d/smtp_additional Restart xinetd.d service xinetd restart Check that port 587 is listening on the server netstat -ltnp

NOTE: Most of this is now deprecated. You can use the autoupdater included in the ~[plesk]/bin directory to do the updates. Just make sure you back things up first! Back everything up! ifconfig eth0; hostname cat /etc/hosts ## Verify that the primary IP matches hostname and hosts file     Backups mkdir plesk_upgrade cp -a [...]

When having to migrate hugh numbers of IP addresses on Plesk, here is a way to manipulate the database to do it without having to use the panel to do them one at a time. mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa mysql> SELECT * FROM IP_Addresses; mysql> UPDATE Repository SET component_id = [new ip id] WHERE [...]