Reading about the Apache UseCanonicalName configuration directive. Don’t think I’ll be using it.
Apache ServerSignature and ServerTokens configuration options
Reading a few articles that recommend hiding your Apache system details from generated web pages. Not sure I care.
How (and why) to disable apache server signature on your web pages and Improve Apache Web Server Security: Use ServerTokens and ServerSignature to Disable Header.
Apache Performance Tuning
Reading about Apache Performance Tuning. Don’t get the feeling like I’ve learned any tricks that will make much difference.
HTTP Content Negotiation in Apache
Reading about HTTP Content Negotiation support in Apache.
Differences between /tmp and /var/tmp
Reading about the differences between /tmp and /var/tmp. Not sure I feel like I know more than I did when I started reading.
Online Certificate Status Protocol
Reading about the Online Certificate Status Protocol, which is RFC 2560.
Overall it just pisses me off.
Apache and SSL (HTTPS)
According to NameBasedSSLVHosts it’s possible to configure Apache so that it supports both SSL and name based virtual hosts. There’s notes on another method at HTTPS Virtual Hosts in Apache.
In other news: on my reading list is the SSL/TLS Strong Encryption: FAQ.
SpamAssassin whitelist and blacklisting
Today I figured out how to specify whitelist and blacklist email addresses in SpamAssassin.
At the end of /etc/spamassassin/local.cf I added two lines:
include whitelist include blacklist
Then in the /etc/spamassassin/whitelist file I added some email specifications, e.g.:
jj5@sixsigma:~$ cat /etc/spamassassin/whitelist # Allow email from system services, e.g. from # logwatch@hope.progclub.net or root@charity.progclub.org whitelist_from *@*.progclub.* # Similarly for blackbrick: whitelist_from *@*.blackbrick.com
The /etc/spamassassin/blacklist file exists and is ready to go, but I haven’t blacklisted anything yet:
jj5@sixsigma:~$ cat /etc/spamassassin/blacklist # No email addresses blacklisted yet. #blacklist_from someone@example.com
Too easy.
There’s some more information on Whitelising a user.
At some point I hope to write a script that processes my users’ maildirs and whitelists everyone they’ve emailed.
Viewing and manipulating the postfix mail queue
Today I learned about the ‘mailq’ and ‘postqueue’ commands.
The ‘mailq’ command will list the contents of the Postfix mail queue.
The command ‘postqueue -f’ will process all items in the Postfix mail queue.
There’s more information in this article, View the Sendmail or Postfix mail queue.
Bash wait
Today I learned about the ‘wait’ command. It waits for background processes to terminate before returning, so you can fire off a bunch of jobs to be run in parallel and then wait for all of them to complete before continuing, like in this take-ownership.sh script I wrote tonight:
#!/bin/bash
if [ -n "$1" ]; then
pushd "$1" > /dev/null 2>&1
if [ "$?" -ne "0" ]; then
echo "Cannot change dir to '$1'.";
exit 1;
fi
fi
sudo chown -R jj5:jj5 . &
sudo find . -type d -exec chmod u+rwx {} \; &
sudo find . -type f -exec chmod u+rw {} \; &
if [ -n "$1" ]; then
popd > /dev/null 2>&1
fi
wait
exit 0