[php-src] Issue #13941: IMAP PHP function - send custom comands before login RFC 2971
| From: | bnchdan | Date: | Thu, 11 Apr 2024 13:05:31 +0000 |
| Subject: | [php-src] Issue #13941: IMAP PHP function - send custom comands before login RFC 2971 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-246741@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/13941
Author: bnchdan
### Description
Hi,
I have a question about the imap PHP function url.
Context: If you host an application ( with IP x.x.x.x ) that makes a login to an IMAP server with
imap_open() function from a client with IP y.y.y.y. The logs on the IMAP server will show the
x.x.x.x IP, not the IP from the client. If the IMAP server is Dovecot you can send a command before
the login process **ID ("x-originating-ip" "y.y.y.y" )** RFC 2971 url , and Dovecot will log the correct
IP. url
Is it possible to send the command **ID ("x-originating-ip" "y.y.y.y" )** on
imap_open() function or are you considering implementing it on a new version.?
Thanks