Live Chat Software by Kayako
سولات متداول
حذف کلیه ایمیل های در لیست ارسال از exim از طریق ssh
منتشر شده توسط 4th d1 روشن 1394/7/1 - 06:25 PM

Question: I'm using Exim mail server under CentOS Linux. How do I remove all messages from the Exim mail queue using a shell prompt?

Answer: Exim is a mail transfer agent (MTA) used on Unix-like operating systems. It aims to be a general and flexible mailer with extensive facilities for checking incoming e-mail.

To print a list of the messages in the queue, enter:

# exim -bp

To remove a message from the queue, enter:

# exim -Mrm {message-id}

To remove all messages from the queue, enter:

# exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | bash
Dallas Marlow, suggested following clean command:
# exim -bp | exiqgrep -i | xargs exim -Mrm

(0 رای (ها))
مفید
مفید نیست

نظرات (0)
ارسال نظر جدید
 
 
نام کامل:
ایمیل:
نظرات: