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