Configure GAMIT automatic email sending in CentOS System

Source: Internet
Author: User

Configure GAMIT automatic email sending in CentOS System

Preface

When you use the GAMIT/GLOBK software for automatic batch processing, you can enable the software to send emails after processing is completed. However, many of my friends said they have not received any emails. That's because GAMIT calls the mailx program to automatically send emails. The process. defaults file contains the following characters:

# Most machines

Set umail = 'mail-S'

# HP

# Set umail = 'mailx-S'

I recently implemented automatic sending of emails under CentOS in CentOS. The following is a summary of my configuration process. You can refer to it later. Let's talk about it.

First, I made the following configuration in the CentOS 6.5 operating system. The advantage of CentOS is that it installs the mailx program by default. In fact, as long as your mailx program is configured, GAMIT will naturally be able to send you an email smoothly.

Modify the algorithm control file proces. ults of GAMIT:

# Most machines

# Set umail = 'mail-S'

# HP

Set umail = 'mailx-S'

For CentOS6.5 or a later version, the preceding modification is unnecessary because the mail-s Command actually uses the mailx program.

Test your mailx

Run the following command on the terminal:

Mailx-s 'email topic 'recipient address # enter the email content after pressing enter, and press ctrl + d to end the input and send.

Send an email to your mailbox. If "command not found" is displayed, it means you have not installed the mailx program. Run the following command:

Yum install mailx

Install mailx.

After installation, run the preceding command again. If you receive the email next, congratulations (maybe in the spam folder). You can enter your email address in the process. defaults file to receive the email from GAMIT.

Configuration

If you do not receive the email through the above command. Run the following command on the terminal:

Mailx

You can see the failed emails. Like this:

This is probably because your IP address is mistaken for the spam source. Remove your IP address from the spam IP blacklist.

First, check your Internet IP address. command:

Curl ifconfig. me

Enter your IP address on the website to check that you are not in the blacklist.

If the query results show that your IP address has been included in the spam source, this will make most public mail services (such as Netease mail, Gmail, Hotmail, etc) reject emails sent from your IP address. The solution is to remove your IP address from the blacklist.

First, click the bottom link in the figure, apply to remove your IP from CBL, and click the bottom link of the newly opened page. Take Effect in about 10 minutes.

Then, apply to remove it from the PBL (Click PBL183882 ). This is troublesome and requires some information. It will take effect in 10 minutes.

Then, use the mailx-s command to send an email to you. Some people have already been able to use the mail service.

If not, use external smtp to send emails. This is the final solution. That's what I did. That is to say, do not use the local mail address (user@localhost.localdomain), but apply for another mailbox, through this mailbox to send mail. We recommend that you use Netease mailbox, which is the most convenient and quick to configure. Apply for an email address for your computer running GAMIT, such as a CentOSPC@163.com, centos1234 password. The following uses this mailbox as an example to introduce the configuration method. Do not use your own mailbox configuration, because the password is saved in plaintext in the mailx configuration file, which is not safe.

Open mail. rc in The/etc folder as an administrator and add the following characters in line 1:

# Set for 163 smtp

Setfrom = CentOSPC@163.com smtp = smtp.163.com

Setsmtp-auth-user = CentOSPC smtp-auth-password = centos1234

Set smtp-auth = login

After saving the email, you can use GAMIT to send emails to you.

 

------------------------------- 2014/10/28 update split ------------------------------------

With Ubuntu, you can install msmtp and mailx first. Run:

Sudo apt-get install msmtp

Sudo apt-get install bsd-mailx

After installation, you can use the mailx program. But no email is sent.

You can try to configure mailx and msmtp on the following website. But I think it should be successful. I have not tried it in detail, just as a way of thinking.

GAMIT reading: l

This article permanently updates the link address:

Related Article

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.