首页 > 开发 > 综合 > 正文

如何在拨号环境下使用postfix

2024-07-21 02:34:55
字体:
来源:转载
供稿:网友

  有台拨号上网的机器,如何在它上面设置postfix使之在拨号成功后可以发送队列中的信件?
  在postfix站点上有个讨论主题,解决方法是在main.cf中做如下设置:
  # your ISP's SMTP server name or ip address goes here
  relayhost = smtPRelay.someprovider.com
  #
  # this line disables spontaneous PPP connections
  defer_transports = smtp
  #
  # this line disables dns lookups for mail. As you are using a relay you really don't need DNS. If you use this you should use an ip address for $relayhost.
  disable_dns_lookups = yes
  并在拨号脚本中加入:
  /usr/sbin/sendmail -q

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表