有臺撥號上網的機器,如何在它上面設置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