2018-03-10 15:05:49 +02:00
|
|
|
{% call macros.panel("info", "Step 2 - expose Mailu to the world") %}
|
|
|
|
<p>A mail server must be exposed to the world to receive emails, send emails,
|
|
|
|
and let users access their mailboxes. Mailu has some flexibility in the way
|
|
|
|
you expose it to the world.</p>
|
|
|
|
|
|
|
|
<p>Among Mailu services, the <em>front</em> server is the one accepting connections,
|
|
|
|
be it directly from the outside world, through a reverse proxy or in any
|
|
|
|
complex configuration that you might want to setup. It needs to listen on some
|
|
|
|
IP addresses in order to expose its public services. You must at least setup
|
|
|
|
an IPv4 or an IPv6 address if you wish to access Mailu.</p>
|
|
|
|
|
|
|
|
<p><span class="label label-warning">Warning</span> You must use specific addresses, please
|
2018-04-22 11:53:18 +02:00
|
|
|
avoid generic all-interfaces addresses like <code>0.0.0.0</code> or <code>::</code>.</p>
|
2018-03-10 15:05:49 +02:00
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label>IPv4 listen address</label>
|
2018-10-17 14:11:55 +02:00
|
|
|
<!-- Validates IPv4 address -->
|
|
|
|
<input class="form-control" type="text" name="bind4" value="127.0.0.1" required
|
|
|
|
pattern="^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$">
|
2018-03-10 15:05:49 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label>IPv6 listen address</label>
|
2018-10-17 14:11:55 +02:00
|
|
|
<!-- Validates IPv6 address -->
|
|
|
|
<input class="form-control" type="text" name="bind6" value="::1"
|
|
|
|
pattern="/^(((?=.*(::))(?!.*\3.+\3))\3?|([\dA-F]{1,4}(\3|:\b|$)|\2))(?4){5}((?4){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})\z/i">
|
2018-03-10 15:05:49 +02:00
|
|
|
</div>
|
|
|
|
|
2018-04-22 16:09:26 +02:00
|
|
|
<p>You server will be available under a main hostname but may expose multiple public
|
|
|
|
hostnames. Every e-mail domain that points to this server must have one of the
|
|
|
|
hostnames in its <code>MX</code> record. Hostnames must be coma-separated.</p>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label>Public hostnames</label>
|
2018-10-17 14:11:55 +02:00
|
|
|
<!-- Validates hostname or list of hostnames -->
|
|
|
|
<input class="form-control" type="text" name="hostnames" placeholder="my.host.name,other.host.name" multiple required
|
|
|
|
pattern="^(?:(?:\w+(?:-+\w+)*\.)+[a-z]+)*(?:,(?:(?:\w+(?:-+\w+)*\.)+[a-z]+)\s*)*$">
|
2018-04-22 16:09:26 +02:00
|
|
|
</div>
|
2018-03-10 15:05:49 +02:00
|
|
|
{% endcall %}
|