Add an option to disable reserved mailnames like root, postmaster, anonymous for domains
If the option What to do with mail for non-existent users set to Forward to address (also known as catch-all address) in Domains > example.com > Mail Settings, then email messages to mailboxes below are not being delivered to the forwarding email address:
anonymous@example.com
mailer-daemon@example.com
drweb@example.com
kluser@example.com
postmaster@example.com
root@example.com
Such mailboxes are present in the file /var/spool/postfix/plesk/virtual.db and mapped to be delivered to @localhost.localdomain:
/usr/sbin/postmap -s /var/spool/postfix/plesk/virtual | grep example.com
anonymous@example.com anonymous@localhost.localdomain
mailer-daemon@example.com mailer-daemon@localhost.localdomain
drweb@example.com drweb@localhost.localdomain
kluser@example.com kluser@localhost.localdomain
postmaster@example.com postmaster@localhost.localdomain
root@example.com root@localhost.localdomain
Please consider to add an option to disable reserved mailnames like root, postmaster, anonymous for domains in Plesk web interface
Starting Plesk 18.0.66 we added the ability to stop accepting mail sent to preconfigured aliases such as root, postmaster, or anonymous on Plesk servers using Postfix or qmail as the mail server. By default, such emails are delivered to the Plesk administrator’s mailbox.
To allow accepting mail sent to one or more specific aliases, add the following lines to the panel.ini file, listing the desired aliases:
[mail] adminAliases = alias1 alias2 .. aliasNMail sent to aliases that are not listed will no longer be delivered to the Plesk administrator’s mailbox. For example, to allow accepting mail sent to the root and postmaster aliases, but not to any others, add the following:
[mail] adminAliases = root postmasterand then run the following command:
plesk repair mail -yThank you everyone for your suggestion and help to make Plesk better.
-- SH
-
Robin Labadie commented
It's unclear to me how to fully disallow these emails.
Can we set "adminAliases =" to empty?
Thanks -
Victor W Perry commented
I can not use Roundcube for Web Mail page does not load at all.
-
Bitpalast GmbH commented
Hi guys, please check the comments in https://support.plesk.com/hc/en-us/articles/13499859483799-Mail-sent-to-Postfix-default-accounts-localhost-localdomain-is-routed-to-Plesk-Administrator-s-email . I'm seeing the same on our servers recently for which I filed ticket 95352337. Support was very helpful as always, yet I think this could deserve attention as a feature, because now that spammers started targeting Plesk users via these aliases, they won't stop. It could become a global issue for Plesk systems.
-
Marco Marsala commented
these mailboxes are often used to deliver spam
-
Marco Marsala commented
these addrssses are often used to deliver spam