Postfix configuration

I am using the following guide: https://www.linode.com/docs/email/postfix/email-with-postfix-dovecot-and-mysql/

I followed everything, and it's a very good guide, but there is no mention of whether a user, e.g, /home/jack, needs any mailbox configuration. Do I need to do anything, such as "touch /home/jack/mbox" or add jack to a mail group, etc? Other than that, it seems like it's working for outgoing mail, but when I sent an email (via Gmail or by Gmail Smarthost configuraiton on my home laptop, I get the following error:

The recipient server did not accept our requests to connect. Learn more at https://support.google.com/mail/answer/7720
[lifepngcare.org. 2400:8900::f03c:91ff:fedb:8c14: timed out]
[lifepngcare.org. 172.105.228.235: generic::failed_precondition: connect error (111): Connection refused]
[mail.lifepngcare.org. 2400:8900::f03c:91ff:fedb:8c14: timed out]
[mail.lifepngcare.org. 172.105.228.235: generic::failed_precondition: connect error (111): Connection refused]

Any ideas given the error message? Thanks.

2 Replies

This error message is one that has been perplexing quite a few people, but I think I may have found an answer. The following error is a bounce message that is specific to Gmail and is appearing either due to an SPF failure or because Gmail's sending IP was blacklisted. For further explanation of this error message I suggest reviewing this site, How to handle this strange Gmail bounce.

Whether it's the SPF record or a blacklisting of the Gmail IP, the remote server is rejecting the email which is why you're getting this message. If the SPF record is the issue, you can verify this by checking your DNS Manager. I'd recommend that you review this site that has many good directions on How to create an SPF TXT record?

You will want to ensure that SPF is set up correctly for the domain which means configuring the DNS to allow email to be sent by Gmail servers. For specific Google directions on how to add an SPF TXT record, you can review this site, Help prevent email spoofing with SPF.

If a blacklisted Gmail IP is the issue, then there is very little you can do and this vague message was sent simply because Google doesn't want the end user to know that they have a blacklisted mailer IP. Hopefully, Google will take measures to get that IP removed from whichever blacklist(s) it is on, but that could take some time. If a blacklisted Gmail IP is the issue, then you should look into other mail clients. Good Luck!

Check your Firewall. We were getting delays from 1-48 hours from some google.com servers. Firewall can find google IP a blacklist and connections could be dropped. We confirmed SPF and Amavis / Spamassassin added google domains and servers to white lists before we realized the firewall was blocking first.
sudo grep “google” /var/log/mail.log returns lost connection after CONNECT from…
Removing firewall RBL protection from the email server resolved the issue since it has its own amavis protection

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct