詢問mailserver收發信gmail

請問一下,目前公司環境是有架設mailserver。遇到一個問題想請教~
環境:
1.有用網域 加過SPF "v=spf1 a mx ip4:59.X.X.191 ~all"
2.mailserver對外IP:59.X.X.191 ;192.168.50.155
3.網站對外IP:59.X.X.191;192.168.50.150

請問以下問題
gmail寄送時收信可以找到 但是我要寄給gmail卻無法成功出現我的IP為210.X.X.X不匹配(正確是59.X.X.191)
防火牆上,也有導port到對應相對應的位置

請問我該如何解?還是說我需要把mailserver給予另外一組固定IP 59.X.X.192 在網域上追加設定"v=spf1 a mx ip4:59.X.X.192 ~all"
=======================================================================
The original message was received at Thu, 14 Aug 2025 14:02:27 +0800 from [10.199.216.87]

----- The following addresses had permanent fatal errors ----- <xxxxxxx@gmail.com>
(reason: 550-5.7.26 Your email has been blocked because the sender is unauthenticated.)

----- Transcript of session follows ----- ... while talking to gmail-smtp-in.l.google.com.:
>>> DATA
<<< 550-5.7.26 Your email has been blocked because the sender is unauthenticated.
<<< 550-5.7.26 Gmail requires all senders to authenticate with either SPF or DKIM.
<<< 550-5.7.26
<<< 550-5.7.26 Authentication results:
<<< 550-5.7.26 DKIM = did not pass
<<< 550-5.7.26 SPF [網域] with ip: [203.69.X.X] = did not pass <<< 550-5.7.26 <<< 550-5.7.26 For instructions on setting up authentication, go to <<< 550 5.7.26 https://support.google.com/mail/answer/81126#authentication d2e1a72fcca58-76e321be931si636677b3a.808 - gsmtp
554 5.0.0 Service unavailable
</xxxxxxx@gmail.com>
2025-08-14 9:33 發佈
dicky19812 wrote:
但是我要寄給gmail卻無法成功出現我的IP為210.X.X.X不匹配


您應該是有一路以上Internet,而FW/頻寬管理器把outbound的25/tcp SNAT成210.x.x.x了,所以要從FW/頻寬管理器調整,另外SPF當然可以包括一個以上IP,在同一行中加上ip4:210.x.x.x就是了,不過鵝還是建議您先把貴公司的網路架構弄清楚比較好....
wangcm wrote:
FW/頻寬管理器調整


gmail寄信進來有正確找到,但是 寄出給gmail卻變成

Mail Delivery Subsystem <mailer-daemon@cmsr-t-3.hinet.net>
</mailer-daemon@cmsr-t-3.hinet.net>
大量收發信給gmail 建議申請SSL.

有免費的SSL. 申請好設到mailserver上.

小量一開始沒問題 , 大量收發後 gmail 就會開始退沒設SSL的信.
dicky19812 wrote:
機器是Vigor系列 確實是有3WAN(兩條固定IP的寬頻


那就是在Vigor上設只要來源是mail server的內網IP,或是連到外網的SMTP(25/tcp),就轉成59.x.x.x後上Internet(一般FW/頻寬管理器沒設定的話會轉成default interface的IP,也就是210.x.x.x),不過鵝沒用過Vigor的設備,不清楚Vigor的設定長怎樣,您得自己研究了,若懶得研究的話,那就把210.x.x.x加入SPF比較省事吧....

謝謝各位大大解答目前已經排除,問題是出在中繼點上。導致google判定問題。
問CHAT GPT比較快阿
至尊魔法師 wrote:
問CHAT GPT比較快阿


鵝猜樓主的mail server是把外寄轉到ISP提供的SMTP relay(ms?.hinet.net),八成是早期ISP會跟user說user自己的domain的信可以透過其SMTP relay轉發以降低失敗的機率,但此時收件端看到的是ms?.hinet.net,反而和SPF兜不起來.其實這類問題只有user自己最清楚自己的狀況,問所謂"AI"有很大機率只會得到一本正經講幹話的回覆而已....
內文搜尋
X
評分
評分
複製連結
Mobile01提醒您
您目前瀏覽的是行動版網頁
是否切換到電腦版網頁呢?