Meidokon Wiki
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Useful(?) links

  • furinkan's stuff

  • Postfix snippets


  • SystemInfo

  • This sidebar

Navigation

  • FrontPage
  • RecentChanges
  • FindPage
  • HelpContents

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment

Revision 2 as of 2010-02-04 07:31:51
MeidokonWiki:
  • Postfix
  • Spammers_with_localhost_ptr_dns_records

Postfix/Spammers_with_localhost_ptr_dns_records

From http://archives.neohapsis.com/archives/postfix/2009-08/0350.html

Some spammers set their PTR records to return localhost, which can bypass some anti-spam measures. You can use PostConf:check_reverse_client_hostname_access and PostConf:check_helo_access to deal with these.


I use somthing like this:

smtpd_recipient_restrictions =
       ...
       check_reverse_client_hostname_access ${hash}/access_host
       check_helo_access ${hash}/access_host
       ...

to reject things like:

localhost
unreachable
.localhost
.arpa
.invalid
.inv
.test
.local
.lokaal
.localdomain
.lan
.private
.root
.adsl
.firewall
.speedportw700v
.belkin
.kornet
...

be them found in helo or in the PTR. I also use a pcre version to reject "." as PTR (among other things).

  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01
MoinMoin Release 1.9.11 [Revision release], Copyright by Juergen Hermann et al.