Greylisting whitelist SPF with PTR mechanism

Issue #120 wontfix
created an issue

Some providers like Yahoo or OVH use PTR mechanism in SPF records:    1800    IN      TXT     "v=spf1 ?all"

Is it possible to add a reverse DNS based for greylisting in iRedAPD ?

Comments (6)

  1. Martin LEUSCH reporter

    This could solve some greylisting issue I have: For domain like Yahoo, I have to had in greylisting whitelist, so forged yahoo address are trusted. For mail domains hosted by OVH, I have to had domains one by one in greylisting whitelist when users report me long delay for mail delivery.

  2. Zhang Huangbin repo owner

    In iRedAPD, is whitelisted for greylisting service by default, because they don't have a useful SPF record.

    How would you like to handle PTR? Could you please share your thoughts and details please?

  3. Martin LEUSCH reporter

    In SPF with PTR mechanism, sender is trusted when its PTR and A record match with the pattern in spf record. For example for OVH:             600     IN      TXT     "v=spf1 ip4: ?all"

    So, server like or should be trusted.

  4. Zhang Huangbin repo owner

    Plugin wblst_rdns is what you're looking for: you can simply whitelist (with a prefixed dot which means all sub-domain names of like this:

    sql> USE iredapd;
    sql> INSERT INTO wblist_rdns (rdns, wb) VALUES ('', 'W');

    Plugin wblist_rdns has higher priority than greylisting, so this will work for you.

    BTW, plugin wblist_rdns is sponsored development by Daniel Senie <dts at>.

  5. Log in to comment