• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue Emails bounce on Postfix or Qmail

JohnnyU

Basic Pleskian
I can send mail from this domain account and receive it in gmail in seconds
When i send mail from a gmail account to the same Plesk email it bounces back with different errors for Postfix and Qmail.

Gmail Error Messages

Postfix: 'Status: 5.1.1b Diagnostic-Code: X-Postfix; User unknown in virtual alias table'
QMAIL: 'Sorry, no mailbox here by that name. (#5.1.1) qmail 7745 invoked from network)'

Plesk Error messages

PHP:
postfix/trivial-rewrite[1161]: warning: do not list domain domain.com in BOTH mydestination and virtual_alias_domains
postfix/trivial-rewrite[1161]: warning: do not list domain domain.com in BOTH mydestination and virtual_mailbox_domains
postfix/qmgr[1044]: CB4071220: from=<mail@gmail.com>, size=2439, nrcpt=1 (queue active)
postfix/smtpd[1592]: disconnect from mail-qt0-f175.google.com[209.85.216.175]
postfix/smtp[2551]: connect to gmail-smtp-in.l.google.com[2607:f8b0:4003:c03::1a]:25: Network is unreachable
postfix/error[1601]: CB4071220: to=<admin@mydomain.com>, relay=none, delay=0.47, delays=0.34/0.06/0/0.07, dsn=5.1.1, status=bounced (User unknown in virtual alias table)

Error from log is described here: https://support.plesk.com/hc/en-us/articles/213910865
Another error is described here https://support.plesk.com/hc/en-us/...OTH-mydestination-and-virtual-mailbox-domains


Strange thing is that it works to send and receive from another domain i have in plesk!
 
Last edited:
I checked and it is different but i did not touch it so probably because of the settings done in Plesk, tried everything
And since i have another server on Plesk Onyx i checked that one too and the mydestination line is different but similar to the backup file found on both servers

server 1: mydestination = localhost.$mydomain, localhost, localhost.localdomain
server 2 & backup file: mydestination = $myhostname, localhost.$mydomain, localhost

tried the backup file and the error is: Diagnostic-Code: X-Postfix; unknown user: "admin" instead of the usual: Diagnostic-Code: X-Postfix; User unknown in virtual alias table


Code:
/var/qmail/bin/relaylock[27247]: /var/qmail/bin/relaylock: mail from 209.85.216.169:32936 (mail-qt0-f169.google.com)
qmail-queue-handlers[27249]: Handlers Filter before-queue for qmail started ...
qmail-queue-handlers[27249]: from=user@gmail.com
qmail-queue-handlers[27249]: to=admin@mydomain.com
qmail-queue-handlers[27249]: handlers_stderr: SKIP
qmail-queue-handlers[27249]: SKIP during call 'check-quota' handler
qmail-queue-handlers[27249]: starter: submitter[27251] exited normally
1295354762.310109 new msg 2784541
1295354762.310344 info msg 2784541: bytes 2392 from <user@gmail.com> qp 27251 uid 2020
1295354762.322790 starting delivery 8: msg 2784541 to local admin@mydomain.com
qmail: 1295354762.322820 status: local 1/10 remote 0/20
qmail: 1295354762.329194 delivery 8: failure: Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/
qmail: 12953547622.329241 status: local 0/10 remote 0/20
qmail-queue-handlers[27254]: Handlers Filter before-queue for qmail started ...
qmail-queue-handlers[27254]: from=
qmail-queue-handlers[27254]: to=user@gmail.com
qmail-queue-handlers[27254]: Unable to get sender domain by sender mailname



EDIT: I found a resolve: in Plesk - Tools & Settings - Server Settings i changed the 'Full hostname' to another domain i have on plesk but i do not use.
Not sure if this has any implication but in Tools & Settings - Mail Server Settings - i changed to 'Send from domain IP addresses and use domain names in SMTP greeting'

Now in Postfix config file main.cf i have that domain shown on 'myhostname = NEWDOMAIN.COM'. Tested with forwarding, i can send & receive mail, everything works as expected


------------------------------------------------

Another 'fix' i found here: https://support.plesk.com/hc/en-us/...-BOTH-mydestination-and-virtual-alias-domains

In main.cf i removed mydestination & disabled virtual_alias_maps: #virtual_alias_maps = $virtual_maps, hash:/var/spool/postfix/plesk/virtual
 
Last edited:
Back
Top