Question

Problem with Postfix and Gmail redirection

Posted October 13, 2014 2.6k views

I’m trying to configure Postfix to redirect all mail to @prolinesaude.com.br to my Gmail, but without success.

Here’s my /etc/postfix/virtual file:

@prolinesaude.com.br prolinesaude@gmail.com

Here’s my /etc/postfix/main.cf file:

smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = prolinesaude.com.br
virtual_alias_maps = hash:/etc/postfix/virtual
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = prolinesaude.com.br, localhost.com.br, , 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
transport_maps = hash:/etc/postfix/transport

Here’s the mail.log:

Oct 13 16:55:30 prolinesaude postfix/smtpd[10708]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Oct 13 16:55:30 prolinesaude postfix/smtpd[10708]: connect from mail-qg0-f47.google.com[209.85.192.47]
Oct 13 16:55:30 prolinesaude postfix/smtpd[10708]: BDE5CC3E52: client=mail-qg0-f47.google.com[209.85.192.47]
Oct 13 16:55:30 prolinesaude postfix/cleanup[10712]: BDE5CC3E52: message-id=<CAM_jHZegvOiOTaYaQ8oMh4LQ+a2JGfa5tucxCxL7hmDMe4tNfg@mail.gmail.com>
Oct 13 16:55:30 prolinesaude postfix/qmgr[10687]: BDE5CC3E52: from=<adrianostanley@gmail.com>, size=3316, nrcpt=1 (queue active)
Oct 13 16:55:30 prolinesaude postfix/smtpd[10708]: disconnect from mail-qg0-f47.google.com[209.85.192.47]
Oct 13 16:56:00 prolinesaude postfix/smtp[10713]: connect to gmail-smtp-in.l.google.com[74.125.196.26]:25: Connection timed out
Oct 13 16:56:30 prolinesaude postfix/smtp[10713]: connect to alt1.gmail-smtp-in.l.google.com[74.125.139.27]:25: Connection timed out

What am I doing wrong?

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.

×
1 answer

I have no experience with postfix, but as you are only using one email address why don’t you try zoho.com? is like Google Apps but free up to 10 users.

Submit an Answer