存档

文章标签 ‘crontab’

linux使用Msmtp mutt shell自动发邮件(备份mysql)

2009年8月21日 没有评论

linux使用Msmtp shell发邮件(备份mysql)
因为数据库有插件自动备份到邮箱,本例示范web数据备份。
需要用到mutt 和 这两款软件
1.编译安装软件

  1. tar jxvf msmtp-1.4.16.tar.bz2
  2. ./configure --prefix=/usr/local/msmtp &&make &&make install
  3. tar -xzvf mutt-1.5.11.tar.gz
  4. ./configure --prefix=/usr/local/mutt &&make &&make install

2.查看msmtp配置文件路径

  1. [root@vi bin]# ./msmtp --ver
  2. msmtp version 1.4.16
  3. TLS/SSL library: OpenSSL
  4. Authentication library: GNU SASL
  5. Supported authentication methods:
  6. plain cram-md5 digest-md5 gssapi external login
  7. IDN support: enabled
  8. NLS: enabled, LOCALEDIR is /usr/local/msmtp/share/locale
  9. System configuration file name: /usr/local/msmtp/etc/msmtprc
  10. User configuration file name: /root/.msmtprc
  11.  
  12. Copyright (C) 2008 Martin Lambers and others.
  13. This is free software. You may redistribute copies of it under the terms of
  14. the GNU General Public License .
  15. There is NO WARRANTY, to the extent permitted by law.

阅读全文…

分类: √linux 标签: , , , , ,