How to send external mail under Linux

Source: Internet
Author: User

Test of the Linux self-brought mail command

Step 1:

Send mail through the Mail command, found unable to send to the external mailbox, find the relevant instructions on the Internet, check the mail and MAILX version

[Email protected] ~]# Rpm-qa|grep MAILX
mailx-8.1.1-44.2.2

You must have more than 12 versions to send messages externally. Reference

Step 2:

Download mailx-12.4 and install. Reference

Decompression: TAR-JXVF mailx-12.4.tar.gz2

Installation: Make;

This process can be referenced, and the process has been verified to be feasible.

Reason for failure:

Following the process, the final tip is that you cannot connect, considering that the test environment may not be able to connect to the production environment and you cannot test the feature.

[[email protected] ~]# could not connect:connection timed out
"/root/dead.letter" 10/306
... message not sent.

Start testing the crontab function tomorrow.

Complete the crontab test.

Escape implementation

Think of the ability to send e-mails in an automated release script, and you can email them directly under ant, and consider using this method to implement the email function.

Step1 is tested on an Automation server to implement XML that only sends an attachment message.

Step2 install ant environment on 130, configure, implement the function of sending mail on 130.

How to send a message under ant

File Features:

1. run.sh Main Executive Build_scv_pro.xml

2.build_scv_pro.xml Call _build.xml

3._build.xml the entire release process is performed according to the steps.

4. Scv_pro.properties the various parameters used in the _build.

Test the bug

BuildFile:/home/weblogic/autorelease/deployprod_cif/sendmail/build_scv_pro.xml
Duplicated project name in import. Project Autodeploy defined first In/home/weblogic/autorelease/deployprod_cif/sendmail/build_scv_pro.xml and again in/ Home/weblogic/autorelease/deployprod_cif/sendmail/_build.xml

Run
[Echo] Deploy is native
Duplicated project name in import. Project Autodeploy defined first In/home/weblogic/autorelease/deployprod_cif/sendmail/build_scv_pro.xml and again in/ Home/weblogic/autorelease/deployprod_cif/sendmail/_build.xml

BUILD FAILED
/home/weblogic/autorelease/deployprod_cif/sendmail/_build.xml:33:the following error occurred while executing this Line
Target "deploy.native" does not exist in the project "Autodeploy".

After testing the use of ant to send mail has been completed, put the results of crontab into the development log folder can be.

How to send external mail under Linux

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.