Skip to content

Add IP address to the initSetup endpoint

As a followup to #290 (closed), which has been implemented on !287 (merged), we should extend the /settings/?setting=initSetup endpoint to accept the postfix IP address, and set all initial options in a transaction way.

Currently the initial setup does two HTTP requests to set such values, and there's the risk of inconsistent behaviour in case either of such calls fails.

The inconsistency in this case consists on the Postfix IP address set in the form not being persisted in the settings.

Requirements:

  • The initSetup endpoint should accept an additional mandatory value called postfix_public_ip that should be validated and stored accordingly.
  • As a consequence, one HTTP request can be eliminated.