mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-14 10:52:49 +02:00
e1a3313660
If a mailbox is allowed to send as any address under its domain (+ alias domains) and the domain itself has no aliases configured, no information about this fact is shown to the user. That is to say, the "Do not check sender access for the following domain(s) and its alias domains" field under mailbox details is empty. The above is happening because the second GROUP_CONCAT() returns NULL making the enclosing CONCAT() return NULL as well. Fix this by using CONCAT_WS() which correctly handles the case of zero domain aliases. Furthermore, move the IFNULL() to the first GROUP_CONCAT() because CONCAT_WS() returns an empty string when both GROUP_CONCAT()'s are NULL. We can be certain that when the first GROUP_CONCAT() is NULL the second one will be as well, so it's safe to use IFNULL() there. |
||
---|---|---|
.. | ||
ajax | ||
lib | ||
footer.inc.php | ||
functions.acl.inc.php | ||
functions.address_rewriting.inc.php | ||
functions.admin.inc.php | ||
functions.customize.inc.php | ||
functions.dkim.inc.php | ||
functions.docker.inc.php | ||
functions.domain_admin.inc.php | ||
functions.fail2ban.inc.php | ||
functions.fwdhost.inc.php | ||
functions.inc.php | ||
functions.mailbox.inc.php | ||
functions.mailq.inc.php | ||
functions.policy.inc.php | ||
functions.quarantine.inc.php | ||
functions.quota_notification.inc.php | ||
functions.ratelimit.inc.php | ||
functions.rsettings.inc.php | ||
functions.tls_policy_maps.inc.php | ||
functions.transports.inc.php | ||
header.inc.php | ||
init_db.inc.php | ||
prerequisites.inc.php | ||
sessions.inc.php | ||
spf.inc.php | ||
triggers.inc.php | ||
vars.inc.php |