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]