History log of /plugin/smtp/helper.php (Results 1 – 4 of 4)
Revision Date Author Comments
# ae907de1 11-Sep-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 acc

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.

show more ...


# 27827474 26-Jul-2015 Andreas Gohr <andi@splitbrain.org>

prepared ehlo setting


# 0b7ac7c9 26-Jul-2015 Andreas Gohr <andi@splitbrain.org>

some initial simple working state


# 4dc22474 26-Jul-2015 Andreas Gohr <andi@splitbrain.org>

wizard generated initial checkin