MediaTemple E-mail Logs…

I’m always forgetting this command so I’m posting it here. This is the location of the mail log on mediatemple dv servers.

tail -f /usr/local/psa/var/log/maillog

Tech-Tidbit: Checking a sendmail queue

I recently had to research the source of some email issues which required me to check what may still be in a queue for sendmail. Since the source of the email was PHP, which was using the default mail method, the emails would be going through sendmail.

To check the queue, I used:


# mailq

(this checks /var/spool/mqueue, the primary queue)


# mailq -Ac

(this checks /var/spool/clientmqueue, which may or not be used on your server)

Unfortunately my queues were empty, but these commands will be very helpful to me in the future.

Optimizing ProFTPD Login/Transfer Speed

I run ProFTPD on both of my development machines - one is a Mandrake Linux 10.1 box and one is Fedora Core 5. The FC5 machine was recently setup as I needed a devoted PHP5 development machine, but the ftp server was taking up to three seconds per directory to perform an action. I needed to transfer some client code and it took about ten minutes just scan through all of the directories - this was completely unaccpetable.

I was curious as to what the differences were between the two machines - one worked very quickly and one did not. After a bit of a searching I discovered a few tweaks that solved all of the problems:

Adding the following to the config file really sped up the login process:

[html]
IdentLookups off
UseReverseDNS off

[/html]

However, my directory listings were still running slowly. When I added:

[html]

AllowOverride off

[/html]

To the global config file, it told ProFTPD to stop looking for an .ftpaccess file in every single directory.

Once I restarted the server, things were blazing along. All it took were a few minor changes to be back in business!