Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • 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 41
    • Merge requests 41
  • 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
  • Issues
  • #1239

Closed
Open
Created Oct 28, 2010 by Till Brehm@tbrehmOwner

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