Postfix clear the deferred Queue (the queue cannot be reached)

Source: Internet
Author: User

Link: http://jk.aiwaly.com/wp/postfix-clean-deferred.html

Postfix is a powerful and powerful email post office software with three times faster performance than sendmail. yueda pengpeng recently launched product promotion activities by email.
The email server disk is full, and too many emails cannot be reached in the deferred directory are found. The following method can be used to clear the inaccessible email queue.

Clear deferred queue

# Cd/var/spool/Postfix // switch to the Postfix mail queued folder
# Find defer deferred-type f // display the Postfix mail queued letter
# Find defer deferred-type F-delete // delete a postfix mail queued letter

Delete email
# // Postsuper-D 7b94a3a810f
To delete all similar emails.

# Mailq | grep online@Webspan.net | awk '{print $1 }'
| While read a; do/../Postfix/sbin/postsuper-d $ A; done

The email path of deferred is/var/spool/Postfix/defer/
/Var/spool/Postfix/deferred/is said to be deleted directly.

Start the server

[Root @ sample
~] #/Sbin/chkconfig saslauthd on startup set SMTP-auth to self-start

[Root @ sample ~] #/Sbin/chkconfig -- list saslauthd
Confirm SMTP-auth service status
Saslauthd 0: off 1: off 2: On 3: On 4: On 5: on 6: Off
Token confirmation 2 ~ 5. If the status is on, OK.

[Root @ sample ~] #/Etc/rc. d/init. d/saslauthd start
← Start SMTP-auth

Starting saslauthd: [OK]

[Root @ sample ~] #/Sbin/chkconfig Postfix on
Configure Postfix to self-start

[Root @ sample ~] #/Sbin/chkconfig -- list Postfix
Confirm the Postfix service status
Postfix 0: off 1: off 2: On 3: On 4: On 5: on 6: Off
Token confirmation 2 ~ 5. If the status is on, OK.

[Root @ sample ~] #/Etc/rc. d/init. d/Postfix start
← Start Postfix

Starting Postfix: [OK]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.