You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
thank you for your work, this has taken a lot of work off my hands.
I had problems with the Catch-All alias. In the original version there is the alias table. A null for the source_username stands for "Forward all mails that cannot be mapped to destination". This does not work or me. Maybe this should not work for security reasons. But if it should work is here what I changed:
The schema for the alias table is located at roles/mariadb/files/schema.sql and has
The fix is to allow the source_username to be NULL
There is also a query in roles/postfix/templates/sql/aliases.jq:
select concat(destination_username, '@', destination_domain) as destinations from aliases where source_username = '%u' and source_domain = '%d' and enabled = true;
I used the original query
SELECT DISTINCT concat(destination_username, '@', destination_domain) AS destinations FROM aliases
WHERE (source_username = '%u' OR source_username IS NULL) AND source_domain = '%d'
AND enabled = true
AND NOT EXISTS (SELECT id FROM accounts WHERE username = '%u' and domain = '%d');
After this changes, Catch-All Support works for me, but the mailserver is not in production use. So maybe this fix creates some side effects.
Please check the fix and if this is good, it can be adopted.
If it's not good, or makes a security hole possible, feel free to tell me why.
The text was updated successfully, but these errors were encountered:
Thomas has a changelog (compared to the stretch version) in the buster version, where he explicitly mentions the enablement of Catch-All.
@mubn doesn't seem to react on the latest pull requests, but maybe it might be a good idea to fork this repo and update it according to the German version
Hello,
thank you for your work, this has taken a lot of work off my hands.
I had problems with the Catch-All alias. In the original version there is the alias table. A
null
for thesource_username
stands for "Forward all mails that cannot be mapped to destination". This does not work or me. Maybe this should not work for security reasons. But if it should work is here what I changed:The schema for the alias table is located at
roles/mariadb/files/schema.sql
and hasThe fix is to allow the
source_username
to beNULL
There is also a query in
roles/postfix/templates/sql/aliases.jq
:I used the original query
After this changes, Catch-All Support works for me, but the mailserver is not in production use. So maybe this fix creates some side effects.
Please check the fix and if this is good, it can be adopted.
If it's not good, or makes a security hole possible, feel free to tell me why.
The text was updated successfully, but these errors were encountered: