This release adds the ability to disable the catch-all feature on custom domains. Each domain now has a toggle so you can enable/disable catch-all.
- You can also now create aliases with a "custom" format. This means you can type anything you like as the aliases local part.
- Make sure that you run
php aritsan migrate
when updating to add thecatch_all
column to the domains table - You must also update your query in
/etc/postfix/mysql-recipient-access-domains-and-additional-usernames.cf
file to the following in order for the catch-all feature to work:
query = SELECT (SELECT 'DISCARD' FROM additional_usernames WHERE (CONCAT(username, '.example.com') = SUBSTRING_INDEX('%s','@',-1)) AND active = 0) AS usernames, (SELECT CASE WHEN NOT EXISTS(SELECT NULL FROM aliases WHERE email='%s') AND catch_all = 0 THEN 'REJECT' WHEN active=0 THEN 'DISCARD' ELSE NULL END FROM domains WHERE domain = SUBSTRING_INDEX('%s','@',-1)) AS domains LIMIT 1;
- If you have catch-all disabled for a domain and someone sends an email to an alias that does not already exist then it will be
REJECTED
.