How to clean the Exim Mail Server Queue?

Sometimes it is necessary to clean out the mail queue on your server. Emails being stuck cause the complete mail flow to stop or to dramatically slow down. Customers will complain and the server performance goes down hill. Time to look at the mail queue a little closer.

To flush the exim queue from the command line do the following:

1. Login to your dedicated server via ssh and switch to the root user.

2. At the command line prompt type: exim -qff

That is it. If you need to turn on debugging for a more detailed picture when flushing the mail queue use the following command:

At the command line type: exim -qff -d9

If you have a cPanel server you can also clean the mail queue from the WHM control panel. Login to your WHM control panel and scroll down to “Email”. Click on “Manage Mail Queue” and you will see the current messages in your mail queue. You look at messages, delete messages or try to deliver messages. Very important is the part that shows you how long messages are already sitting in your mail queue. In most cases anything sitting there for more than 30 hours cannot be delivered – period. We usually delete anything older than 24 hours from our servers. In WHM you can choose to delete single messages or all messages at once.

Make sure that you check mail queue every once in a while and do a clean up. Only a clean system will run smoothly.

Gửi phản hồi

Mời bạn điền thông tin vào ô dưới đây hoặc kích vào một biểu tượng để đăng nhập:

WordPress.com Logo

Bạn đang bình luận bằng tài khoản WordPress.com Log Out / Thay đổi )

Twitter picture

Bạn đang bình luận bằng tài khoản Twitter Log Out / Thay đổi )

Facebook photo

Bạn đang bình luận bằng tài khoản Facebook Log Out / Thay đổi )

Google+ photo

Bạn đang bình luận bằng tài khoản Google+ Log Out / Thay đổi )

Connecting to %s

%d bloggers like this: