在RHEL6中使用mail命令发外部邮件
在RHEL6中使用mail命令发外部邮件首先,卸载掉系统自带的sendmail和postfix:yum remove sendmailyum remove postfix然后在/etc/mail.rc中添加下面几行:set from=123456@126.comset smtp=smtp.126.comset smtp-auth-user=123456set smtp-auth-password=xxxxxxxset smtp-auth=login说明:f...