Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • I ISPConfig 3
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 597
    • Issues 597
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 46
    • Merge requests 46
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Model experiments
  • 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
  • Issues
  • #1239

Disable automatic creation of maildirs in courier setups

Currently, maildrop creates maildirs for users automatically when they dont exist. This is normally ok as postfix normally checks if a mailbox exists and forwards only mails to the lda when theere is a mailbox record in the database, but this results in problems with domain aliases as maildrop will create mailboxes for non existing accounts when the email is sent to the domain alias. But this also means that the code to send the welcome email has to be changed so that sending of this email is delayed until the maildir was created by ispconfig.

Autocreate maildir, if not existant

#test -e /var/vmail/$HOST #if ( $RETURNCODE != 0 ) #{

mkdir /var/vmail/$HOST

#}

#test -e /var/vmail/$HOST/$USER #if ( $RETURNCODE != 0 ) #{

maildirmake /var/vmail/$HOST/$USER

chmod -R 0700 /var/vmail/$HOST

#}

test -e /var/vmail/$HOST/$USER if ( $RETURNCODE != 0 ) {

available exitcodes: EX_NOUSER=67, EX_TEMPFAIL=75

EXITCODE = 67 exit }

This will also affect the welcome emails.

Assignee
Assign to
Time tracking