Issue Emails to postmaster@ not delivered without root@ (custom `adminAliases`)

jnthn

New Pleskian
Server operating system version
AlmaLinux 10.1
Plesk version and microupdate number
18.0.77
Per the guide, I tried updating the mail aliases to only have postmaster@ enabled:
Code:
[mail]
adminAliases = postmaster
However, when I then try to send an email to postmaster@ on some domain, the email doesn't get delivered to the administrator's address, and I see the following errors in the Postfix logs:
cannot chdir to mailname dir root: No such file or directory
Unknown user: root@[hostname.com]
After some debugging, it appears everything works when adding root@ as mail alias:
Code:
[mail]
adminAliases = postmaster root
Is it intended behaviour (that root@ is required for other aliases to function)? If yes, it may be good to mention this in the guide. If not, maybe this bug could be resolved?
 
I believe the issue you are encountering could be relate to the emails that are sent to the default mailboxes, which go to [email protected]. However, if you have the option, please open a support ticket for further investigation on what emails exactly fail with the reported error.
 
@Sebahat.hadzhi I don't have a support plan unfortunately.

Perhaps the following steps would help you reproduce the issue:
  1. Add a domain on the server (example.com)
  2. Create a mailbox on that domain ([email protected])
  3. Set that email address in the Plesk admin user's profile
  4. Update panel.ini with:
    Code:
    [mail]
    adminAliases = postmaster
  5. Send an email to [email protected]
    1. ❌ It is not delivered to the mailbox [email protected]
    2. ❌ The Postfix logs show:
      Code:
      cannot chdir to mailname dir root: No such file or directory
      Unknown user: root@[hostname.com]
  6. Now update panel.ini with:
    Code:
    [mail]
    adminAliases = postmaster
  7. Again send an email to [email protected]
    1. ✅ It is now delivered to the mailbox [email protected]
I would expect it to also work for the case with only adminAliases = postmaster; i.e., the ❌ failures are bugs.
 
@Kaspar Oops, you are fully right! I did do that, but I forgot to mention it in my reproduction steps above. So the correct steps are:
  1. Add a domain on the server (example.com)
  2. Create a mailbox on that domain ([email protected])
  3. Set that email address in the Plesk admin user's profile
  4. Update panel.ini with:
    Code:
    [mail]
    adminAliases = postmaster
  5. Run plesk repair mail -y to apply
  6. Send an email to [email protected]
    1. ❌ It is not delivered to the mailbox [email protected]
    2. ❌ The Postfix logs show:
      Code:
      cannot chdir to mailname dir root: No such file or directory
      Unknown user: root@[hostname.com]
  7. Now update panel.ini with:
    Code:
    [mail]
    adminAliases = postmaster
  8. Run plesk repair mail -y to apply
  9. Again send an email to [email protected]
    1. ✅ It is now delivered to the mailbox [email protected]
I would expect it to also work for the case with only adminAliases = postmaster; i.e., the ❌ failures are bugs.
 
Back
Top