cannot reach to email bounce email not found

Hello there.
I have cyberpanel installed on my vps and I created an email named info@mydomain.com and my wordpress contact form was sending emails to info@mydomain.com and it was working just fine.

But once I moved my info@mydomin.com to g suite emails being sent by my wordpress does not show up in g suite gmail, while other emails being sent to info@mydomain.com shows in g suite.

So if anyone send an email to info@mydomain.com I would get that email in g suite but if I send the email from the server which is hosting my domain it does not show in g suite. (rainloop was receiving those emails cause they were internal) + ( g suite is setup correctly as email provider for info@mydomain.com)

My guess is: when i try to send email using code from my server who hosts my domain it will try to search for the email internally in my own server and since there is no email named info@mydomain.com defined in my server then it gives this error:

Jan 24 23:06:54 cyberpanel-ubuntu-s postfix/pickup[13985]: 7DB64FEE97: uid=1004 from=
Jan 24 23:06:54 cyberpanel-ubuntu-s postfix/cleanup[15800]: 7DB64FEE97: message-id=84414e9de6a25cedc0e6b7a376f0ec30@mydomain.com
Jan 24 23:06:54 cyberpanel-ubuntu-s postfix/qmgr[343]: 7DB64FEE97: from=mmail01@mydomain.com, size=679, nrcpt=1 (queue active)
Jan 24 23:06:54 cyberpanel-ubuntu-s postfix/pipe[15803]: 7DB64FEE97: to=info@mydomain.com, relay=dovecot, delay=0.08, delays=0.03/0.01/0/0.04, dsn=5.1.1, status=bounced (user unknown. Command output: lda(info@mydomain.com): Error: net_connect_unix(/var/run/dovecot/stats-writer) failed: Permission denied )
Jan 24 23:06:54 cyberpanel-ubuntu-s postfix/cleanup[15800]: 8E7F1FEE98: message-id=20200124230654.8E7F1FEE98@mydomain.com
Jan 24 23:06:54 cyberpanel-ubuntu-s postfix/bounce[15807]: 7DB64FEE97: sender non-delivery notification: 8E7F1FEE98
Jan 24 23:06:54 cyberpanel-ubuntu-s postfix/qmgr[343]: 8E7F1FEE98: from=<>, size=2620, nrcpt=1 (queue active)
Jan 24 23:06:54 cyberpanel-ubuntu-s postfix/qmgr[343]: 7DB64FEE97: removed
Jan 24 23:06:54 cyberpanel-ubuntu-s postfix/pipe[15803]: 8E7F1FEE98: to=mmail01@mydomain.com, relay=dovecot, delay=0.02, delays=0/0/0/0.02, dsn=5.1.1, status=bounced (user unknown. Command output: lda(mmail01@mydomain.com): Error: net_connect_unix(/var/run/dovecot/stats-writer) failed: Permission denied )
Jan 24 23:06:54 cyberpanel-ubuntu-spostfix/qmgr[343]: 8E7F1FEE98: removed


how can i solve this? I should make it so that my server would not look for info@mydomain.com and look externally

Any Help is appreciated

Bump anyone have any idea? Im kinda in hurry. and where you think I can find the answer thanks

UP, i have this problem too
I send from gmail to my main info@mydomain.com
and email come succesfull, than i try to send from my mail to gmail, and it’s fail

thanks but my issue is not like that. my info@mydomain.com is a g suite email. so its like my gmail but instead of @gmail its @mydomain.com thats a g suite thing.

so for me info@mydomain.com works fine. but when i want to send an email from my server which hosts mydomain.com to info@mydomain.com it does not reach to g suite (info@mydomain.com) cause its trying to find the info@mydomain.com inside my server while its not there so it gives me error saying email not found. i want to know how can i make my server (which is cyberpanel image from digitalocean) to reach out to outside for info@mydomain.com instead of searching for it on my own server.

Hi, I encountered the same problem, take a look here https://devanswers.co/postfix-statusbounced-unknown-user-user/ this solved the problem for me