Ubuntu – can’t send emails to gmail accounts from postfix

emailgmailpostfix

Hi I have a VPS running Ubuntu 14.04 configured as email box using this guide

http://www.krizna.com/ubuntu/setup-mail-server-ubuntu-14-04/

and then install and configure spamassasin with this documentation

https://help.ubuntu.com/community/PostfixAmavisNew

everything seems to be working ok I was able to send and receive mails from several accounts using the squirrel webmail and with outlook client, including yahoo and hotmail accounts, but I cant send emails to gmail accounts, I'm able to send, but no error is displayed in fact I see the email as sent, but in the google account the mail is never received also note the same for other mails domains server.

Please any help or clue will be appreciated, thanks in advance.

here is my postfix main.cf

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
append_dot_mydomain = no
readme_directory = no
smtpd_tls_cert_file = /etc/ssl/certs/server.crt
smtpd_tls_key_file = /etc/ssl/private/server.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = carindustry.com.ar
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = carindustry.com.ar, localhost.com.ar, , localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
home_mailbox = Maildir/
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtp_tls_security_level = may
smtpd_tls_security_level = may
smtp_tls_note_starttls_offer = yes
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
content_filter = smtp-amavis:[127.0.0.1]:10024

Best Answer

I'd like to provide a better answer, but without knowing how you're doing DNS (for example, using godaddy or someone) I can't say exactly how it's done, but I can say that you need to configure DNS with forward and reverse pointers for your domain and IP address.

See here and read through Step 1: DNS Setup. You may be lacking the PTR record for your domain.

Edit: Namecheap Provides Screenshots

Related Question