MUTT+MSMTP Mail Client Configuration

Source: Internet
Author: User

I. Environment

System CentOS 6.4x64 Minimized installation

Two. Installing MSMTP

#下载软件包 [[email protected] ~]# wget http://sourceforge.net/projects/msmtp/files/msmtp/1.4.30/msmtp-1.4.30.tar.bz2/ Download[[email protected] ~]# tar xf msmtp-1.4.30.tar.bz2 [[email protected] ~]# CD Msmtp-1.4.30[[email protected] msmtp- 1.4.30]#./configure--prefix=/usr/local/msmtp[[email protected] msmtp-1.4.30]# make && make install

Creating a configuration file

[Email protected] ~]# mkdir/usr/local/msmtp/etc[[email protected] ~]# Cat/usr/local/msmtp/etc/msmtprcaccount Defaulthost smtp.163.com #发件箱邮件服务器地址port 25from [email protected] #从哪个邮箱发出auth LOGINTLS offuser [email Protected]password Aisin_giorologfile/var/log/mmlog

Three. Installing Mutt

[[email protected] ~]# Yum install mutt-y# edit configuration file [[email protected] ~]# vim/etc/muttrcset sendmail= "/usr/local/msmtp/bin /msmtp "Set Use_from=yesset realname=" [email protected] "set editor=" Vim "

Test

[Email protected] ~]# echo "Testmail" | Mutt-s "Ceshi" [email protected][[email protected] ~]# echo "Ceshi" |mutt-s "Hello" [email protected]-a/etc/fstab #这里的 -a refers to adding an attachment, if it is multiple attachments, add a few-a file name


This article is from the "ly36843" blog, please be sure to keep this source http://ly36843.blog.51cto.com/3120113/1672959

MUTT+MSMTP Mail Client 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.