SendMail mail delivery in Linux causes server latency

Source: Internet
Author: User

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 *

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.