Originally Posted by cbj4074
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
postfix/smtpd: 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:
myhostname = example.com
myorigin = /etc/mailname
mydestination = localhost, localhost.localdomain
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):
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 18.104.22.168/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 22.214.171.124/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.
Originally Posted by cbj4074
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 zen.spamhaus.org 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 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?
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.