Problem with Postfix and Gmail redirection

October 13, 2014 1.1k 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 = [::ffff:]/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[]
Oct 13 16:55:30 prolinesaude postfix/smtpd[10708]: BDE5CC3E52: client=mail-qg0-f47.google.com[]
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[]
Oct 13 16:56:00 prolinesaude postfix/smtp[10713]: connect to gmail-smtp-in.l.google.com[]:25: Connection timed out
Oct 13 16:56:30 prolinesaude postfix/smtp[10713]: connect to alt1.gmail-smtp-in.l.google.com[]:25: Connection timed out

What am I doing wrong?

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.

Have another answer? Share your knowledge.