Applicable to:
- Plesk for Linux
- Plesk for Windows
Symptoms
-
Attempts to send a message from the Plesk server to a mailbox on
example.com
fails with one of the errors below:# tail -f /usr/local/psa/var/log/maillog | grep 'unknown in virtual mailbox'
550 5.1.1 jdoe@example.com: Recipient address rejected: User unknown in virtual mailbox table; from=test@pleskdomain2.com to=jdoe@example.com
CONFIG_TEXT: example.com postfix-local[23040]: cannot chdir to mailname dir contact: No such file or directory
example.com postfix-local[23040]: Unknown user: jdoe@example.com
CONFIG_TEXT: ME-E0103: [1076] Local Delivery: Failure - Domain for ([SMTP:jdoe@example.com]) is locally serviced, but recipient is not defined in address map.
-
In webmail, the following error might occur:
CONFIG_TEXT: Could not send message to SMTP server. Check you have access to send messages via the server and that all To/CC/BCC addresses are valid
Error: SMTP Server rejected email. Returned:550 sorry, no mailbox here by that name. (#5.7.17)
CONFIG_TEXT: Error SMTP (500): The following recipient could not be reached "jdoe@example.com" (sorry, no mailbox here by that name. (#5.7.17)).
CONFIG_TEXT: There was an error sending your message: Message could not be delivered - the address was not found, is unknown, or is not receiving messages.
CONFIG_TEXT: 550 5.1.1 jdoe@example.com ... User unknown (in reply to MAIL FROM command))
-
Plesk emails notifications are not delivered
-
The bounce message shows that there was a failed delivery attempt within the Plesk server, without an attempt to contact the external mail server that hosts the example.com mail service.
Cause
The domain example.com
is hosted on the Plesk server but the mail for the domain is hosted on an external mail server/service.
Mail server treats example.com
as a local domain and tries to send emails locally.
Resolution
Note: In some cases, the mail service is necessary locally and externally.
Vote the UserVoice request as top-voted suggestions are likely to be implemented in future Plesk updates.
Disable the mail service per domain or subscription:
-
Go to Domains > example.com > Mail Settings and uncheck Activate mail service on this domain and click OK.
Or disable mail service at the subscription level going to Subscriptions > example.com > Mail tab > Mail Settings tab > Select domains from the subscription > Click on Activate/Deactivate Services.
To disable the mail service on the subscription using command-line utility (run this on the server via CMD):
C:\> plesk bin mail --off example.com
Disable the mail service per domain or subscription:
-
Go to Domains > example.com > Mail Settings and uncheck Activate mail service on this domain and click OK.
Or disable mail service at the subscription level going to Subscriptions > example.com > Mail tab > Mail Settings tab > Select domains from the subscription > Click on Activate/Deactivate Services.
Mail service on the subscription can also be disabled using the
mail
utility:# plesk bin mail --off example.com
To disable the mail service for every subscription on the server, use the following command:
# plesk bin subscription --list | while read i; do plesk bin mail --off $i && echo "Mail service for $i subscription has been disabled" ;done
If the previous steps did not help, check the postfix configuration:
-
Execute the following command:
# postconf | grep mydomain
append_dot_mydomain = yes
mydestination = localhost, localhost.localdomain, localhost.$mydomain, $mydomain = example.com
mydestination
parameter contains the list of domains that are delivered via the $local_transport
mail delivery transport. For additional information, see the official postfix documentation .
In case the domain name is there, to process example.com
as an external domain, $mydomain removal from the postfix configuration is required:
-
Create a backup of the current Postfix configuration
/etc/postfix/main.cf
.# cp /etc/postfix/main.cf{,.bak}
-
Remove $mydomain from the mydestination list in the configuration file
/etc/postfix/main.cf
using a text editor. -
Reload the
postfix
service to apply the changes:# systemctl reload postfix.service
If the external mail service is used for all subscriptions, it is possible to modify Postfix configuration to exclude domains which exist in Plesk from the local delivery:
-
Create a backup of the current Postfix configuration
/etc/postfix/main.cf
.# cp /etc/postfix/main.cf{,.bak}
-
Open file
/etc/postfix/main.cf
and comment out the following lines by prepending it with '#' sign:CONFIG_TEXT: #virtual_mailbox_domains = $virtual_mailbox_maps, hash:/var/spool/postfix/plesk/virtual_domains
#virtual_alias_maps = $virtual_maps, hash:/var/spool/postfix/plesk/virtual
#virtual_mailbox_maps = hash:/var/spool/postfix/plesk/vmailbox -
Reload the
postfix
service to apply the changes:# systemctl reload postfix.service
Comments
0 comments
Please sign in to leave a comment.