Skip to content

Postmaster no delete#248

Open
Udera wants to merge 3 commits into
vexim:masterfrom
Udera:postmaster_no_delete
Open

Postmaster no delete#248
Udera wants to merge 3 commits into
vexim:masterfrom
Udera:postmaster_no_delete

Conversation

@Udera

@Udera Udera commented Nov 25, 2017

Copy link
Copy Markdown
Collaborator

Fixes #228

I have created two commits:

  • Do not allow to delete postmaster account (don't show delete button, and even if the id is given manually to the deletion script, the postmaster account is not deleted).
  • If no postmaster-account exists, the mails are automatically forwarded to all admin accounts. This is a fallback for setups without postmaster account.

Comment thread vexim/adminuserdelete.php
include_once dirname(__FILE__) . '/config/httpheaders.php';

# Do not allow to delete the postmaster (RFC5321)
if ($_GET['localpart']==='postmaster') {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While this approach should work, don't you think it would be better to just fetch the record by id from the DB and check if its localpart is not postmaster instead?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Always accept postmaster email for virtual domains

3 participants