一、讓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
----------------------------------------------------------------------------------------
沒有留言:
張貼留言