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

Quote:
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 "domain.com" literally and when you're using it as a generic placeholder.

In your most recent post, does the log literally say

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

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:

Code:
myhostname = example.com
myorigin = /etc/mailname
mydestination = localhost, localhost.localdomain
relayhost =
mynetworks = 127.0.0.0/8 [::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):

Code:
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf, reject_unauth_destination
At this point, my questions are:

1.) Is your main.cf 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 168.100.189.2/32, or was that done automatically during Postfix setup?

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

1.) My main.cf 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 168.100.189.2/32 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.




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

Code:
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 zen.spamhaus.org permit
and using the following it its place

Code:
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 zen.spamhaus.org 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?

Code:
smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf
smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf
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 www1communicqationsgalores.com 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.


Thanks

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