View Single Post
Old 2nd January 2012, 19:25
Bushytea Bushytea is offline
Junior Member
Join Date: Dec 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

Originally Posted by cbj4074 View Post
I understand the need to protect your privacy and scrub personal information from your posts, so we'll need to be clear as to when you're using "" literally and when you're using it as a generic placeholder.

In your most recent post, does the log literally say

postfix/smtpd[31014]: warning: IP: address not listed for hostname
or is your real domain name present (instead of

My setup works perfectly well, and while I use ISPConfig, I would think that your Postfix settings should not be all that different.

Here are my equivalent settings for the items that seem relevant:

myhostname =
myorigin = /etc/mailname
mydestination = localhost, localhost.localdomain
relayhost =
mynetworks = [::1]/128
Naturally, the following line will be different because I am using virtual mailboxes with MySQL, but it's worth posting (because yours looks unusually restrictive):

smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, check_recipient_access mysql:/etc/postfix/, reject_unauth_destination
At this point, my questions are:

1.) Is your untouched? In other words, did you make any changes to it between the time Postfix was installed and this problem occurred?

2.) Did you insert the IP address, or was that done automatically during Postfix setup?

3.) What Linux distro are you using? Do you have the file /etc/mailname?
Yes, is just a placeholder for my real domain name.

1.) My has been edited but the problem was there before I ever made any changes and I had a huge amount of spam being sent from my server. That sense stopped once I added all the restrictions. I also did a blacklist search which my server is not on.

2.) The IP was done automatically during the setup. However, it seemed to have helped when I stopped using mynetworks and used mysetworks_style = subnet.

3.) I am using CentOS 5.2. I do not have a file called mailname in my etc directory.

Originally Posted by cbj4074 View Post
Before you spend too much time fiddling, try commenting-out

smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination reject_invalid_hostname reject_non_fqdn_hostname reject_non_fqdn_sender reject_non_fqdn_recipient reject_unknown_sender_domain reject_unknown_recipient_domain reject_rbl_client permit
and using the following it its place

smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
Does the problem persist? If not, the issue is clearly with one or more of the recipient restrictions. I'm not suggesting that you should remove all of them, but you may need to remove some of them.

How did the entry make its way into your configuration file? It's not necessarily a problem, but it seems that you (or something you installed) must have modified this line.

I noticed also that a) you lack commas between each directive on that line, and b) you seem to have an orphaned "permit" at the end of the line.

If the problem still is not resolved, what values do you have for these two directives?

smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/
smtpd_client_restrictions = check_client_access mysql:/etc/postfix/
When I switched my smtpd_recipient_restrictions to the shorter list that you gave me, I am now able to get a successful test through outlook now.

A lot of the restrictions I had I put in due to all the spam using my server.

I may have to make a new thread but thought I would ask here. My reverse DNS keeps showing up as which is not correct. When I run host or nslookup my IP shows to be reversed to my domain so I am unsure why that other domain keeps showing up.


Last edited by Bushytea; 2nd January 2012 at 19:35.
Reply With Quote