Skip to content

Exclude the "ALL" Domain for Postfix #916

Open

Description

@Ramalama2

mysql-virtual-domains.cf:
query = SELECT domain FROM domain WHERE domain='%s' AND active=1 AND domain != 'ALL';

because someone could send a mail to your mailserver/relayserver to example.user@all
and the mail will get through reject_unauth_destination

Not a high risk of anything, because @ALL wont get forwarded probably, but anyway this "ALL" Domain shouldnt be there for postfix.

Cheers

Activity

  1. DavidGoodwin commented on Mar 25, 2025

    @DavidGoodwin
    Member

    Hi @Ramalama2 - Thanks - so you so like the above changeset ? 61dce87

  2. Ramalama2 commented on Mar 26, 2025

    @Ramalama2
    Author

    @DavidGoodwin Thanks David, looks good to me!

  3. Ramalama2 commented on Mar 26, 2025

    @Ramalama2
    Author

    @rincorvid Yes, its a fake domain, for Superadmin Accounts. (Admins that have access to all Domains/Alias Users)
    Im not sure if there is another solution for Superadmin Accounts, im still on v5.0.2

  4. DavidGoodwin commented on Mar 26, 2025

    @DavidGoodwin
    Member

    @rincorvid nice spot! I'll wait for @cboltz to chip in at this point.

    I'd (unsurprisingly) forgotten 41d8bca etc (given it was from 2011!).

  5. cboltz commented on Mar 28, 2025

    @cboltz
    Member

    The "ALL" domain is indeed very old and shouldn't be needed anymore. Well, in theory ;-)

    However, surprisingly, there are a few usages in functions.inc.php left (which we should change/fix):

    • check_owner()
    • list_domains_for_admins()

    Ideally these functions should use AdminHandler to reduce the amount of duplicated logic.

    Please also check git grep ALL for some more places that will need to be changed or cleaned up if we finally get rid of the ALL domain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions