我有一个运行RHEL 6.3的盒子,还有需要通过邮件发送报告的应用程序,为了使此function正常工作,必须在我的盒子中configuration邮件。 此外,我认为这将是很好的接收到我的普通电子邮件的根警报,而不必login到框。
我有一个Office 365帐户创build的唯一目的是作为中继使用。
Office 365 SMTP详细信息:
SMTP:pod51011.outlook.com端口:587encryption:TLS
我试过的:
- Defined the SMART_HOST in the sendmail.mc - Generated and configured sendmail certificates - Created the AuthInfo file with SMTP credentials - Eliminated from sendmail.mc localhost's loopback - Got frustrated because even thought I configured everything (using different guides) sendmail kept trying to send them throught localhost.
经过8个多小时的尝试:
- Gave up on sendmail and slept 12 hours due to a massive headache. - Decided to use SSMTP (because sendmail was a PITA) and people said SSMTP was easy to configure. - Configured SSMTP and for some reason SASLAUTH said it couldn't connect to the SMTP. - Got frustrated again and uninstalled SSMTP.
在这里,我正在寻求帮助,因为我想击败sendmail! 任何人都可以指向正确的方向吗?
我也试过用sendmail通过gmail进行转发,但是select使用postfix来代替,因为它似乎更容易设置。 您不必经历创build自签名证书等的过程。这个howto是用于gmail的,但是对于Office 365来说,这个过程应该是非常相似的。只需要找出服务器名称和authenticationscheme。 http://rs20.mine.nu/w/2011/07/gmail-as-relay-host-in-postfix/ Geo
在更改sendmail.mc之后,您是否运行/etc/mail/make来构buildsendmail.cf ? 生成新的sendmail.cf后,您是否也运行service sendmail restart ?
我无法连接到SMTP的原因是因为我的公司阻止SMTP访问。 结束使用本地SMTP和使用这些指示Postfix使其工作。
通过另一个邮件服务器的Postfix中继