In the toss automatically back to the mailbox of the script, the implementation of the sudden VPs became very card, Ping found the delay of the VPS soared to the 2000+, from the Aliyun backstage monitoring to see the maximum uplink bandwidth has reached the 1mb/s,
Stop the SendMail service after the normal delay, restart after the problem is still, it is easy to determine the size of the attachment should be sent by the large amount of network resources caused by the problem, try to restart the SendMail problem still, you can determine the restart after the message is still sent in the queue, will resend, Mail commands are rarely used, so find answers after searching:
| The code is as follows |
Copy Code |
[ROOT@ABCCCCC ~]# SENDMAIL-BP /var/spool/mqueue (1 request) -----q-id-------Size-------q-time-----------------sender/recipient----------- s42cbblp002728 175369339 Fri May 2 20:11 <root@abccccc.info> <i@root@abccccc> Total Requests:1 |
You can view the queues that are to be sent, see the messages that are already in the queue, and we'll delete them. Message Queue file storage
In/var/spool/mqueue/, delete the corresponding file in the directory
| The code is as follows |
Copy Code |
[ROOT@ABCCCCC ~]# Cd/var/spool/mqueue [ROOT@ABCCCCC mqueue]# ls dfs42cbblp002728 qfs42cbblp002728 [ROOT@ABCCCCC mqueue]# RM-RF * |