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