domain->webmail->isActive && !$VAR->domain->webmail->suspended) { echo "# Webmail is not enabled on the domain\n"; return; } if ($OPT['ssl'] && !$VAR->domain->webmail->sslCertificate) { return; } ?> domain->webmail->ipAddresses as $ipAddress): ?> server { listen escapedAddress . ':' . $OPT['frontendPort'] ?> quic; add_header Alt-Svc ; listen escapedAddress . ':' . $OPT['frontendPort'] . ($OPT['ssl'] ? ' ssl' : '') ?>; http2 on; server_name "webmail.domain->asciiName ?>"; domain->mailAliases as $alias): ?> server_name "webmail.asciiName ?>"; domain->webmail->sslCertificate; ?> ceFilePath): ?> ssl_certificate ceFilePath ?>; ssl_certificate_key ceFilePath ?>; client_max_body_size 128m; domain->webmail->type, ['atmail', 'horde', 'roundcube'])) { echo "# Using custom webmail type: '{$VAR->domain->webmail->type}'"; } ?> domain->webmail->nginxExtensionsConfigs?> location / { proxy_pass https://proxyEscapedAddress . ':' . $OPT['backendPort'] ?>; proxy_hide_header upgrade; proxy_ssl_server_name on; proxy_ssl_name $host; proxy_ssl_session_reuse off; proxy_pass http://proxyEscapedAddress . ':' . $OPT['backendPort'] ?>; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } }