Home
last modified time | relevance | path

Searched hist:ae907de1f1f7424d2984dffc04bc413eb0a30567 (Results 1 – 1 of 1) sorted by relevance

/plugin/smtp/
H A Dhelper.phpae907de1f1f7424d2984dffc04bc413eb0a30567 Sun Sep 11 07:04:07 UTC 2022 Moritz Raguschat <moritz.raguschat@web.de> Update helper.php

In the case that SERVER_ADDR is IPv6 (I think this is always the case when the remote visitor of the website is accessing it via IPv6), the string "IPv6:" needs to be prepended according to RFC 2821, or SMTP servers like postfix will reject the HELO due to "invalid ip address".
Visitors who connect via IPv4 would not encounter this error I think, because SERVER_ADDR would then also be the IPv4 address of the server.

Maybe even better would be to always use IPv4 if the server does have an IPv4 address, even if it is visited via IPv6 at the moment. But I don't know a PHP method to just get the IPv4 address. Only a few years ago I often encountered problems with IPv6, with many mail servers (incl. GMail) rejecting mail that was sent via IPv6 due to configuration errors. But one can hope that this should be a thing of the past now.