[[email protected] jinhu]# wget http://sourceforge.net/projects/msmtp/files/msmtp/1.4.28/msmtp-1.4.28.tar.bz2 [[email protected] jinhu]# tar xvf msmtp-1.4.28.tar.bz2 [[email protected] jinhu]# cd msmtp-1.4.28 [[email protected] msmtp-1.4.28]# ./configure --prefix=/usr/local/msmtp [[email protected] msmtp-1.4.28]# make && make install [[email protected] msmtp]# cd /usr/local/msmtp [[email protected] msmtp]# mkdir etc [[email protected] msmtp]# cd etc/ [[email protected] etc]# vim msmtprc account default host smtp.163.com port 25 from [email protected] auth login tls off user [email protected] password mima123457. logfile /var/log/mmlog [[email protected] etc]# /usr/local/msmtp/bin/msmtp [email protected] sdfsdfsdfsdfsdsdf sdfsdfsd [[email protected] etc]# yum install mutt [[email protected] etc]# more /etc/Muttrc set sendmail="/usr/local/msmtp/bin/msmtp" set use_from=yes set realname="[email protected]" set editor="vim" [[email protected] etc]# echo "testmail" |mutt -s "zhengwen" [email protected]
时间: 2024-11-25 13:44:35