[PATCH]: IPv6 SMTP proxy with XCLIENT
Brane F. Gračnar
brane.gracnar at najdi.si
Mon Aug 22 12:45:19 UTC 2011
Hello!
There is a issue with XCLIENT support when nginx listener is IPv6 enabled.
Nginx sends the following command to upstream SMTP server:
XCLIENT ADDR=2001:15c0:65ff:xxxx::yyyy NAME=[UNAVAILABLE]
According to postfix docs (http://www.postfix.org/XCLIENT_README.html) IPv6
client addresses should be prefixed with "IPV6:" string, so nginx should send
the following xclient command to upstream:
XCLIENT ADDR=IPV6:2001:15c0:65ff:xxxx::yyyy NAME=[UNAVAILABLE]
Attached patch fixes this issue. It would be great if it would be included in
upstream after careful review.
Best regards, Brane
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nginx-mail-proxy-xclient-ipv6.diff
Type: text/x-patch
Size: 1439 bytes
Desc: nginx-mail-proxy-xclient-ipv6.diff
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20110822/a17c5850/attachment.bin>
More information about the nginx
mailing list