Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • I ISPConfig 3
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 551
    • Issues 551
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 36
    • Merge requests 36
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ISPConfig
  • ISPConfig 3
  • Merge requests
  • !1613

Added support for leading dots in amavis wildcard user lookups

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Judah - MW requested to merge maximaweb/ispconfig3:5533-idn-encode-support-for-amavis-leading-dot into develop Jun 16, 2022
  • Overview 2
  • Commits 2
  • Pipelines 4
  • Changes 1

Amavisd supports wildcards by performing decreasingly specific SQL lookups:

9 - lookup for user+foo@sub.example.com
8 - lookup for user@sub.example.com
7 - lookup for user+foo
6 - lookup for user
5 - lookup for @sub.example.com
3 - lookup for @.sub.example.com
2 - lookup for @.example.com
1 - lookup for @.com
0 - lookup for @.       (catchall)

https://www.ijs.si/software/amavisd/README.lookups.txt

However idn_to_*() returns an empty string if the domain has a leading dot which means lookups 0-3 cannot be used. This is fixed by removing the leading dot before encoding or decoding and adding it back just before returning the domain.

Now all amavis SQL lookups are possible.

Closes #5533 (closed)

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: 5533-idn-encode-support-for-amavis-leading-dot