dovecot_proxy: action=rewrite&value=email_passwd was not setting the caller IP in email passwd

Version 1.61.0


Related to dovecot_proxy=1 feature: but combined with email sync feature where DA's multi-server setup can keep both ends synced: The issue was with master box A, issuing a local rewrite, eg: echo "action=rewrite&value=email_passwd" >> /usr/local/directadmin/data/task.queue where the slave box B was not setting the master box A's host=A-IP in the /etc/virtual/ file. It was incorrectly setting host=B-IP. This fix tracked down the missing proxy_ip=connection flag, being passed to B, thus having B correctly use the client IP in the host (A's IP). --- During the debug process, a similar bug was also found in the "modify" code, where changing a password or quota from GUI/API on A would also result in the wrong B-IP in B's passwd file.

Interested to try DirectAdmin? Get a 30-day Free Trial!