Postfix whitelisting by recipient address?
Hi,
I am using a Postfix mail server using MySQL for virtual users and have several rules for blocking UCE configured. In addition, I am using an SQL table for whitelisting sender email addresses which works very well. However I have a customer who receives email from a wide variety of clients and doesn't know in advance what their email address will be. Typically, many of these get blocked by my blackhole filters. Does anyone know of a method by which I can apply a whitelist based on recipient address rather than on sender address? Just had a thought on the subject: I suspect that I could use smtpd_restriction_classes eg: smtpd_restriction_classes= filtered, unfiltered However all of my domains etc. are virtual and change often. Does anyone have an idea as to how to read class members from an SQL database? Cheers, Carl. |
Performing a simple reverse lookup should validate your domain's existense and thus if it exists, it won't be suspected as being used by spammers since spammers do usually use fake domains or short-lived domains.
The first example shows that it can't resolve to what domain that IP is pointed to. @webmaster:~$ host your.internet.ip.add Host your.internet.ip.add.in-addr.arpa not found: 3(NXDOMAIN) This one next is what should be expected. @webmaster:~$ host your.internet.ip.add your.internet.ip.add.in-addr.arpa domain name pointer your.domain.com. |
Sorry, I've mistaken sending this reply to this thread. It should not be here.
I've never noticed that my browser window is on the wrong thread. Sorry guys... |
Not a problem gani!
Hope you sort someone's problem, even if it's not mine! Carl. |
I've come across with this file on my server that came from a contribution from a Japanese developer regarding tarpiting patch for postgrey. It is named whitelist_recipient with example lines included as
Code:
# *** whitelist recipient *** This should be included in smtpd_recipient_restrictions in main.cf as ordered Code:
smtpd_recipient_restrictions = # postfix reload -Gani |
All times are GMT -5. The time now is 10:37 PM. |