[2012-01-19 Update]
一、讓Plesk Webmail寄出郵件透過Mail
Getway
修改Plesk(qmail)寄信機制, 將寄信動作relay到 Mail Getway(192.168.1.254)
但
預設系統郵件以及
mail redirect到fm.greatkinggroup.com的郵件
由本機直接寄出(避免造成loop)
建立
/var/qmail/control/smtproutes
#vi /var/qmail/control/smtproutes
----------------------------------------------------------------------------------------
localhost.localdomain:
#本機郵件,此domain以預設smtp
mx.greatkinggroup.com:
#本機郵件,此domain以預設smtp
fm.greatkinggroup.com:
#redirect to fm,此domain以預設smtp
:192.168.1.254
#relay到Mail Getway
----------------------------------------------------------------------------------------
二、強制工廠(瓜瓜)webmail寄出郵件透過台北Mail Getway
修改postfix寄信機制,將寄信動作relay到Mail Getway(192.168.1.254)
在/etc/postfix/main.cf加上"
relayhost = gw.greatkinggroup.com"
#vi /etc/postfix/main.cf
----------------------------------------------------------------------------------------
relayhost = gw.greatkinggroup.com
----------------------------------------------------------------------------------------