Posts Tagged ‘mail’

Plesk: Upgrade to 8.4 causes “no such user” error in maillog

If you have a Plesk server where short mail names are enabled, upgrading to Plesk 8.4 can cause some issues. Valid logins may be rejected, and they’ll appear in your /usr/local/psa/var/log/maillog as “no such user”. You can correct the issue by switching to long mail names (click Server -> Mail in Plesk), or [...]

Forcing qmail to process e-mail in the queue

Normally, qmail will be able to process the mail queue without any interaction from the system administrator, however, if you want to force it to process everything that is in the queue right now, you can do so:
kill -ALRM `pgrep qmail-send`
If for some peculiar reason you don’t have pgrep on your server, you can go [...]

mchk: Unable to initialize quota settings for someuser@somedomain.com

If you’re working in Plesk and you receive this error:
mchk: Unable to initialize quota settings for someuser@somedomain.com
Run this command to fix the issue, but be patient:
find /var/qmail/mailnames -type d -name ‘.*’ ! -name ‘.spamassassin’ -ls -exec touch ‘{}’/maildirfolder \; -exec chown popuser:popuser ‘{}’/maildirfolder \;
Thanks to Mike Jackson for this one.

Setting the maximum mail size in qmail

On a Plesk server, the maximum size for an individual e-mail sent through qmail is unlimited. You can limit this size by adding a number to the /var/qmail/control/databytes file.
If you wanted to limit this to something like 10MB, you can just run the following command:
echo “10485760″ > /var/qmail/control/databytes
This will limit the size of messages [...]

Reduce iowait in Plesk: put qmail’s queue on a ramdisk

I really dislike qmail. But, since I use Plesk, I’m stuck with it. However, I found a way to improve it’s awful mail queue performance by putting the mail queue onto a ramdisk. This is actually pretty darned easy to do.
First, toss a line like this into your /etc/fstab:

none [...]