[ 
https://issues.apache.org/jira/browse/MAILET-30?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12984150#action_12984150
 ] 

Stefano Bagnara commented on MAILET-30:
---------------------------------------

Here was my comment from mailet list:
---
 dns queries: SPF, whitelists, blacklists, DKIM. There are a lot of
mail processing nowadays requiring dns calls. Mailets could use java
dns resolver but we know that from a server point on view it is better
to work with dnsjava: if we provide some generic api to run a dns
query then each container will be able to decide how to implement it
and mailets would be easier and more portable.
---

And here an answer from Norman:
---
+1. But do make it really usable for all kind of mailets/matchers we
would need to allow to query for all kind of records. Something like:

List<String> lookup(String address, DNSType type) throws
TemporaryLookupException, LookupException;

enum DNSType {
   A.,
   MX,
   AAAA,
   .......
}

We also should adjust the other DNS calls in MailetContext to throw
such exceptions.
---


> Add support for DNS querying via MailetContext
> ----------------------------------------------
>
>                 Key: MAILET-30
>                 URL: https://issues.apache.org/jira/browse/MAILET-30
>             Project: Mailet
>          Issue Type: Improvement
>          Components: Core API
>    Affects Versions: 2.4
>            Reporter: Stefano Bagnara
>             Fix For: 2.5
>
>
> DNS lookups are very frequent in the mail world (blacklists, authentication, 
> whitelists).
> We know standard java DNS is not good about caching so we should provide a 
> way for mailets to do the lookup and leave to container implementors the 
> choice on how to deal with caching.
> Let's collect our use cases first and propose a small api change.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to