I tried to contact the support but it seems they can't help with config issues. I hope someone will be able to help here.
I followed this tutorial https://www.digitalocean.com/community/articles/how-to-install-postfix-on-centos-6 and I only have email redirects into /etc/postfix/virtual
I'm testing with the email address firstname.lastname@example.org (redirecting to email@example.com)
- send an email from ssh using the command line "mail firstname.lastname@example.org"
- receive this email on my Gmail account
- send an email from Gmail from email@example.com to firstname.lastname@example.org (I think so)
- send an email from Gmail from email@example.com to firstname.lastname@example.org (I think so)
but I can't :
- receive the emails from Gmail on my Gmail account
Also, the emails sent through the ssh are received with the sender email@example.com. Why not firstname.lastname@example.org?
This is my DNS config:
@ IN SOA NS1.DIGITALOCEAN.COM. hostmaster.xxxxxxxx.com. (
1384969598 ; last update: 2013-11-20 17:46:38 UTC
3600 ; refresh
900 ; retry
1209600 ; expire
1800 ; ttl
IN NS NS1.DIGITALOCEAN.COM.
MX 5 mail
MX 1 ASPMX.L.GOOGLE.COM.
MX 5 ALT1.ASPMX.L.GOOGLE.COM.
MX 5 ALT2.ASPMX.L.GOOGLE.COM.
MX 10 ASPMX2.GOOGLEMAIL.COM.
MX 10 ASPMX3.GOOGLEMAIL.COM.
@ IN A xxx.xxx.xxx.xxx
www CNAME @
@ TXT "v=spf1 ip4:xxx.xxx.xxx.xxx include:_spf.google.com -all"
I get this email back from google
Delivery to the following recipient failed permanently:
Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the server for the recipient domain xxxxxxxx.com by aspmx.l.google.com. [2607:f8b0:4002:c01::1a].
The error that the other server returned was:
550-5.1.1 The email account that you tried to reach does not exist. Please try
550-5.1.1 double-checking the recipient's email address for typos or
550-5.1.1 unnecessary spaces. Learn more at
550 5.1.1 http://support.google.com/mail/bin/answer.py?answer=6596 8si5260891yhq.157 - gsmtp
Thank you for your help
These answers are provided by our Community. If you find them useful, show some love by clicking the heart.
If you run into issues leave a comment, or add your own answer to help others.