linux使用Msmtp mutt shell自动发邮件(备份mysql)
2009年8月21日
没有评论
linux使用Msmtp mutt shell发邮件(备份mysql)
因为数据库有插件自动备份到邮箱,本例示范web数据备份。
需要用到mutt 和 msmtp 这两款软件
1.编译安装软件
- tar jxvf msmtp-1.4.16.tar.bz2
- ./configure --prefix=/usr/local/msmtp &&make &&make install
- tar -xzvf mutt-1.5.11.tar.gz
- ./configure --prefix=/usr/local/mutt &&make &&make install
2.查看msmtp配置文件路径
- [root@vi bin]# ./msmtp --ver
- msmtp version 1.4.16
- TLS/SSL library: OpenSSL
- Authentication library: GNU SASL
- Supported authentication methods:
- plain cram-md5 digest-md5 gssapi external login
- IDN support: enabled
- NLS: enabled, LOCALEDIR is /usr/local/msmtp/share/locale
- System configuration file name: /usr/local/msmtp/etc/msmtprc
- User configuration file name: /root/.msmtprc
- Copyright (C) 2008 Martin Lambers and others.
- This is free software. You may redistribute copies of it under the terms of
- the GNU General Public License .
- There is NO WARRANTY, to the extent permitted by law.