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

Version 1.61.0

Bugfix
Finished

Related to dovecot_proxy=1 feature: https://help.directadmin.com/item.php?id=2077 but combined with email sync feature where DA's multi-server setup can keep both ends synced: https://www.directadmin.com/features.php?id=1745 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/domain.com/passwd 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!