"Linux" Ubuntu stmp server Configuration

Source: Internet
Author: User

Source: http://blog.itpub.net/786540/viewspace-1002077/

sudo apt-get install SendMail (which already contains the Sendmail-bin)

sudo apt-get install Sasl2-bin

---------------

The next two steps are not necessarily necessary, but I did

After the installation is complete, in the file/etc/default/saslauthd file, locate the Start=no, and modify it to Start=yes
/ETC/INIT.D/SASLAUTHD Start After modification

Verify:

Telnet localhost 25, in the console that appears, enter command EHLO localhost

Note: localhost is mainly looking at/etc/hosts files, general (not specifically, My machine is localhost:127.0.0.1, and specifically to do mail service is ubuntu:192.168.20.6) is playing aliases name, such as the IP address is not recognized.

To view the output information:

250-enhancedstatuscodes
250-pipelining
250-expn
250-verb
250-8bitmime
250-size
250-dsn
250-etrn
250-auth digest-md5 LOGIN PLAIN
250-deliverby
+ Help

If the above word appears, it is already available.

You can then use the local server directly to send mail via the Python smtplib module.

"Linux" Ubuntu stmp server Configuration

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.