• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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=<[email protected]>, 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=<[email protected]>, 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]: [email protected]
qmail-queue-handlers[27249]: [email protected]
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 <[email protected]> qp 27251 uid 2020
1295354762.322790 starting delivery 8: msg 2784541 to local [email protected]
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]: [email protected]
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