The SMTP server configured in sendmail is restricted by the company's intranet firewall. when GitLab sends an email to Gmail or another Internet mailbox via SendMail, the following error occurs: [plain] Jul1406: 48: 14gitlabsm-mta [12379]: r6C7HnCZ024915: to & lt; mmm... the SMTP server configured in sendmail is restricted by the company's intranet firewall. when GitLab sends an email to Gmail or another Internet mailbox via SendMail, the following error occurs: [plain] Jul 14 06:48:14 gitlab sm-mta [12379]: r6C7HnCZ024915: to = , Delay = 1 + 15: 30: 25, xdelay = 00:00:00, mailer = esmtp, pri = 21452479, relay = mx1.pku.edu.cn ., dsn = \ 4.0.0, stat = Deferred: Connection timed out with mx1.pku.edu.cn. the solution is to configure SendMail so that it can use the company's internal SMTP server to send an email. The configuration is very simple, in/etc/mail/sendmail. add a line at the end of the mc File: [plain] define ('smart _ host', 'smtp .mycompany.com ') and perform a test To create a text file: [plain] To: csfreebird@gmail.com Subject: test sendmail in esri From: gitlab@mycompany.com test gmail run command: [plain] root @ gitlab:/opt # sendmail-vt </opt/mail.txt check mailbox, sent successfully. Now GitLab can send emails to all mailboxes without interruption.
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