Mails not received by postfix mail server

Ubuntu
18.0:
Hi I have created a new setup of Postfix mail server on webmin. Everything is working perfectly fine. The mails are sent successfully to gmail accounts from my postfix mail server but when I am sending an email from my gmail account to my mail server. This the error occurring. Can anybody help me resolve this issue

Reporting-MTA: dns; = example domain
X-Postfix-Queue-ID: 000C5E339A
X-Postfix-Sender: rfc822; example email
Arrival-Date: Tue, 23 Mar 2021 13:35:01 +0000 (UTC)

Final-Recipient: rfc822; support-example@example
Original-Recipient: rfc822 ;support@example
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; User unknown in virtual alias table

@dollysingh197,

The answer is in the “Diagnostic-Code”…

User unknown in virtual alias table

This means the domain you are sending to, and/or mailbox/alias is NOT setup correctly to receive email on your server.

Best Regards,
Peter Knowles | TPN Solutions

Make sure that in /etc/postfix/virtual you have:

mydomain.com mydomain.com
email@mydomain.com email-mydomain.com

Go to Postfix Mail Server → Virtual Domains

If No map set, set to hash:/etc/postfix/virtual

Restart postfix after saving.

I solved this with simply removing myorigin line from main.cf file of postfix mail server. By the way thank you @tmiland for your answer also…

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.