+ -
当前位置:首页 → 问答吧 → 怎么用mailx?

怎么用mailx?

时间:2007-09-21

来源:互联网

ssmtp 有装不知道怎么用,我理解 ssmtp 跟 postfix 都是个 MTA 吧?

代码:
emerge mailx 
cat some_txt | mailx -s "subject" [email protected]
send-mail: Cannot open mail:25
Can't send mail: sendmail process failed with error code 1
应该怎么设置?

作者: iblicf   发布时间: 2007-09-21

/etc/ssmtp/ssmtp.conf
代码:
mailhub=smtp.gmail.com:587
[email protected]
AuthPass=password
UseSTARTTLS=yes
这样可以用 gmail 的 smtp ...

作者: iblicf   发布时间: 2007-09-22