You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Norman Maurer (JIRA)" <se...@james.apache.org> on 2006/03/31 23:59:31 UTC

[jira] Created: (JAMES-465) Check for valid sender domain in mail from

Check for valid sender domain in mail from
------------------------------------------

         Key: JAMES-465
         URL: http://issues.apache.org/jira/browse/JAMES-465
     Project: James
        Type: New Feature
    Reporter: Norman Maurer


I wrote a patch to support checking for resolvable domain in sender before accept "mail from:"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Commented: (JAMES-465) Check for valid sender domain in mail from

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
    [ http://issues.apache.org/jira/browse/JAMES-465?page=comments#action_12375505 ] 

Norman Maurer commented on JAMES-465:
-------------------------------------

Forget to post the RFC-Part:

 The lookup first attempts to locate an MX
   record associated with the name.  If a CNAME record is found instead,
   the resulting name is processed as if it were the initial name.  If
   no MX records are found, but an A RR is found, the A RR is treated as
   if it was associated with an implicit MX RR, with a preference of 0,
   pointing to that host. 

its in RFC:
http://www.ietf.org/rfc/rfc2821.txt
5. Address Resolution and Mail Handling

> Check for valid sender domain in mail from
> ------------------------------------------
>
>          Key: JAMES-465
>          URL: http://issues.apache.org/jira/browse/JAMES-465
>      Project: James
>         Type: New Feature

>     Reporter: Norman Maurer
>     Assignee: Stefano Bagnara
>      Fix For: 2.3.0a2
>  Attachments: MailCmdHandler-Resolv-Fixed.patch, MailCmdHandler-Resolv-V2.patch, MailCmdHandler-Resolv.patch, MailCmdHandler-ignoreRelay.patch, MailFrom-rfc-fix-all.patch, SMTPServerTest-Resolv.patch, SMTPServerTest-ignore-relayClient.patch, SMTPTestConfiguration-Resolv.patch, SMTPTestConfiguration-ignore-relayClient.patch, james-config.xml-Resolv.patch, james-config.xml-ignoreRelay.patch
>
> I wrote a patch to support checking for resolvable domain in sender before accept "mail from:"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Commented: (JAMES-465) Check for valid sender domain in mail from

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
    [ http://issues.apache.org/jira/browse/JAMES-465?page=comments#action_12372785 ] 

Norman Maurer commented on JAMES-465:
-------------------------------------

After reread docs for mfdnschecks i notice that i checked the wrong dns entry. I checked for A records but it should check for MX records. I will fix it and add a new patch for the MailCmdHandler. 
All other patches should not be affected.

> Check for valid sender domain in mail from
> ------------------------------------------
>
>          Key: JAMES-465
>          URL: http://issues.apache.org/jira/browse/JAMES-465
>      Project: James
>         Type: New Feature
>     Reporter: Norman Maurer
>  Attachments: MailCmdHandler-Resolv-V2.patch, MailCmdHandler-Resolv.patch, SMTPServerTest-Resolv.patch, SMTPTestConfiguration-Resolv.patch, james-config.xml-Resolv.patch
>
> I wrote a patch to support checking for resolvable domain in sender before accept "mail from:"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Updated: (JAMES-465) Check for valid sender domain in mail from

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-465?page=all ]

Norman Maurer updated JAMES-465:
--------------------------------

    Attachment: MailCmdHandler-Resolv.patch

Patch MailCmdHandler for support new feature. Also do not add @localhost if no domain is given on mail from

> Check for valid sender domain in mail from
> ------------------------------------------
>
>          Key: JAMES-465
>          URL: http://issues.apache.org/jira/browse/JAMES-465
>      Project: James
>         Type: New Feature
>     Reporter: Norman Maurer
>  Attachments: MailCmdHandler-Resolv.patch, SMTPServerTest-Resolv.patch, SMTPTestConfiguration-Resolv.patch, james-config.xml-Resolv.patch
>
> I wrote a patch to support checking for resolvable domain in sender before accept "mail from:"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Updated: (JAMES-465) Check for valid sender domain in mail from

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-465?page=all ]

Norman Maurer updated JAMES-465:
--------------------------------

    Attachment: MailCmdHandler-Resolv-V2.patch

Please use this version of patch for MailCmdHandler.

> Check for valid sender domain in mail from
> ------------------------------------------
>
>          Key: JAMES-465
>          URL: http://issues.apache.org/jira/browse/JAMES-465
>      Project: James
>         Type: New Feature
>     Reporter: Norman Maurer
>  Attachments: MailCmdHandler-Resolv-V2.patch, MailCmdHandler-Resolv.patch, SMTPServerTest-Resolv.patch, SMTPTestConfiguration-Resolv.patch, james-config.xml-Resolv.patch
>
> I wrote a patch to support checking for resolvable domain in sender before accept "mail from:"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Commented: (JAMES-465) Check for valid sender domain in mail from

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
    [ http://issues.apache.org/jira/browse/JAMES-465?page=comments#action_12373784 ] 

Norman Maurer commented on JAMES-465:
-------------------------------------

Maybe you want to mark it as resolved. cause you commited it ..

> Check for valid sender domain in mail from
> ------------------------------------------
>
>          Key: JAMES-465
>          URL: http://issues.apache.org/jira/browse/JAMES-465
>      Project: James
>         Type: New Feature

>     Reporter: Norman Maurer
>     Assignee: Stefano Bagnara
>  Attachments: MailCmdHandler-Resolv-Fixed.patch, MailCmdHandler-Resolv-V2.patch, MailCmdHandler-Resolv.patch, SMTPServerTest-Resolv.patch, SMTPTestConfiguration-Resolv.patch, james-config.xml-Resolv.patch
>
> I wrote a patch to support checking for resolvable domain in sender before accept "mail from:"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Assigned: (JAMES-465) Check for valid sender domain in mail from

Posted by "Stefano Bagnara (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-465?page=all ]

Stefano Bagnara reassigned JAMES-465:
-------------------------------------

    Assign To: Stefano Bagnara

> Check for valid sender domain in mail from
> ------------------------------------------
>
>          Key: JAMES-465
>          URL: http://issues.apache.org/jira/browse/JAMES-465
>      Project: James
>         Type: New Feature
>     Reporter: Norman Maurer
>     Assignee: Stefano Bagnara
>  Attachments: MailCmdHandler-Resolv-V2.patch, MailCmdHandler-Resolv.patch, SMTPServerTest-Resolv.patch, SMTPTestConfiguration-Resolv.patch, james-config.xml-Resolv.patch
>
> I wrote a patch to support checking for resolvable domain in sender before accept "mail from:"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Updated: (JAMES-465) Check for valid sender domain in mail from

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-465?page=all ]

Norman Maurer updated JAMES-465:
--------------------------------

    Attachment: MailCmdHandler-ignoreRelay.patch

Add new config value to ignore relayclients

> Check for valid sender domain in mail from
> ------------------------------------------
>
>          Key: JAMES-465
>          URL: http://issues.apache.org/jira/browse/JAMES-465
>      Project: James
>         Type: New Feature

>     Reporter: Norman Maurer
>     Assignee: Stefano Bagnara
>  Attachments: MailCmdHandler-Resolv-Fixed.patch, MailCmdHandler-Resolv-V2.patch, MailCmdHandler-Resolv.patch, MailCmdHandler-ignoreRelay.patch, SMTPServerTest-Resolv.patch, SMTPTestConfiguration-Resolv.patch, james-config.xml-Resolv.patch, james-config.xml-ignoreRelay.patch
>
> I wrote a patch to support checking for resolvable domain in sender before accept "mail from:"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Commented: (JAMES-465) Check for valid sender domain in mail from

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
    [ http://issues.apache.org/jira/browse/JAMES-465?page=comments#action_12373987 ] 

Norman Maurer commented on JAMES-465:
-------------------------------------

Some improvments should be made (im on the way to finish them):
1. mail from domain should not be checked if the connection was made from localhost
2. Configuration value to ignore clients that are allowed to relay.


> Check for valid sender domain in mail from
> ------------------------------------------
>
>          Key: JAMES-465
>          URL: http://issues.apache.org/jira/browse/JAMES-465
>      Project: James
>         Type: New Feature

>     Reporter: Norman Maurer
>     Assignee: Stefano Bagnara
>  Attachments: MailCmdHandler-Resolv-Fixed.patch, MailCmdHandler-Resolv-V2.patch, MailCmdHandler-Resolv.patch, SMTPServerTest-Resolv.patch, SMTPTestConfiguration-Resolv.patch, james-config.xml-Resolv.patch
>
> I wrote a patch to support checking for resolvable domain in sender before accept "mail from:"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Updated: (JAMES-465) Check for valid sender domain in mail from

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-465?page=all ]

Norman Maurer updated JAMES-465:
--------------------------------

    Attachment: james-config.xml-ignoreRelay.patch

Add new config value to ignore relayclients

> Check for valid sender domain in mail from
> ------------------------------------------
>
>          Key: JAMES-465
>          URL: http://issues.apache.org/jira/browse/JAMES-465
>      Project: James
>         Type: New Feature

>     Reporter: Norman Maurer
>     Assignee: Stefano Bagnara
>  Attachments: MailCmdHandler-Resolv-Fixed.patch, MailCmdHandler-Resolv-V2.patch, MailCmdHandler-Resolv.patch, MailCmdHandler-ignoreRelay.patch, SMTPServerTest-Resolv.patch, SMTPTestConfiguration-Resolv.patch, james-config.xml-Resolv.patch, james-config.xml-ignoreRelay.patch
>
> I wrote a patch to support checking for resolvable domain in sender before accept "mail from:"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Reopened: (JAMES-465) Check for valid sender domain in mail from

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-465?page=all ]
     
Norman Maurer reopened JAMES-465:
---------------------------------


After rereading rfc a note that if "NO MX record" is found for a domain a MailServer should try to deliver it to the "A record" of the domain.
So we should check for A record too if no MX record was found. If none of both is found we can reject it!

> Check for valid sender domain in mail from
> ------------------------------------------
>
>          Key: JAMES-465
>          URL: http://issues.apache.org/jira/browse/JAMES-465
>      Project: James
>         Type: New Feature

>     Reporter: Norman Maurer
>     Assignee: Stefano Bagnara
>      Fix For: 2.3.0a2
>  Attachments: MailCmdHandler-Resolv-Fixed.patch, MailCmdHandler-Resolv-V2.patch, MailCmdHandler-Resolv.patch, MailCmdHandler-ignoreRelay.patch, SMTPServerTest-Resolv.patch, SMTPServerTest-ignore-relayClient.patch, SMTPTestConfiguration-Resolv.patch, SMTPTestConfiguration-ignore-relayClient.patch, james-config.xml-Resolv.patch, james-config.xml-ignoreRelay.patch
>
> I wrote a patch to support checking for resolvable domain in sender before accept "mail from:"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Commented: (JAMES-465) Check for valid sender domain in mail from

Posted by "Stefano Bagnara (JIRA)" <se...@james.apache.org>.
    [ http://issues.apache.org/jira/browse/JAMES-465?page=comments#action_12372792 ] 

Stefano Bagnara commented on JAMES-465:
---------------------------------------

Maybe you want to look at the SenderInFakeDomain.java matcher, that already does a similar job.

> Check for valid sender domain in mail from
> ------------------------------------------
>
>          Key: JAMES-465
>          URL: http://issues.apache.org/jira/browse/JAMES-465
>      Project: James
>         Type: New Feature
>     Reporter: Norman Maurer
>     Assignee: Stefano Bagnara
>  Attachments: MailCmdHandler-Resolv-V2.patch, MailCmdHandler-Resolv.patch, SMTPServerTest-Resolv.patch, SMTPTestConfiguration-Resolv.patch, james-config.xml-Resolv.patch
>
> I wrote a patch to support checking for resolvable domain in sender before accept "mail from:"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Commented: (JAMES-465) Check for valid sender domain in mail from

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
    [ http://issues.apache.org/jira/browse/JAMES-465?page=comments#action_12372732 ] 

Norman Maurer commented on JAMES-465:
-------------------------------------

Feature complete

> Check for valid sender domain in mail from
> ------------------------------------------
>
>          Key: JAMES-465
>          URL: http://issues.apache.org/jira/browse/JAMES-465
>      Project: James
>         Type: New Feature
>     Reporter: Norman Maurer
>  Attachments: MailCmdHandler-Resolv.patch, SMTPServerTest-Resolv.patch, SMTPTestConfiguration-Resolv.patch, james-config.xml-Resolv.patch
>
> I wrote a patch to support checking for resolvable domain in sender before accept "mail from:"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Commented: (JAMES-465) Check for valid sender domain in mail from

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
    [ http://issues.apache.org/jira/browse/JAMES-465?page=comments#action_12373996 ] 

Norman Maurer commented on JAMES-465:
-------------------------------------

Plz have a look at the patches i post.. I think that whould make more sense,, The same should be made to EHLO/HELO check.

Now the junit tests need to get updated..

> Check for valid sender domain in mail from
> ------------------------------------------
>
>          Key: JAMES-465
>          URL: http://issues.apache.org/jira/browse/JAMES-465
>      Project: James
>         Type: New Feature

>     Reporter: Norman Maurer
>     Assignee: Stefano Bagnara
>  Attachments: MailCmdHandler-Resolv-Fixed.patch, MailCmdHandler-Resolv-V2.patch, MailCmdHandler-Resolv.patch, MailCmdHandler-ignoreRelay.patch, SMTPServerTest-Resolv.patch, SMTPTestConfiguration-Resolv.patch, james-config.xml-Resolv.patch, james-config.xml-ignoreRelay.patch
>
> I wrote a patch to support checking for resolvable domain in sender before accept "mail from:"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Updated: (JAMES-465) Check for valid sender domain in mail from

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-465?page=all ]

Norman Maurer updated JAMES-465:
--------------------------------

    Attachment: MailCmdHandler-Resolv-Fixed.patch

Now the Feature does the right tests.. But i use org.xbill.DNS.* ... Maybe there is a better solution

> Check for valid sender domain in mail from
> ------------------------------------------
>
>          Key: JAMES-465
>          URL: http://issues.apache.org/jira/browse/JAMES-465
>      Project: James
>         Type: New Feature
>     Reporter: Norman Maurer
>     Assignee: Stefano Bagnara
>  Attachments: MailCmdHandler-Resolv-Fixed.patch, MailCmdHandler-Resolv-V2.patch, MailCmdHandler-Resolv.patch, SMTPServerTest-Resolv.patch, SMTPTestConfiguration-Resolv.patch, james-config.xml-Resolv.patch
>
> I wrote a patch to support checking for resolvable domain in sender before accept "mail from:"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Commented: (JAMES-465) Check for valid sender domain in mail from

Posted by "Stefano Bagnara (JIRA)" <se...@james.apache.org>.
    [ http://issues.apache.org/jira/browse/JAMES-465?page=comments#action_12373991 ] 

Stefano Bagnara commented on JAMES-465:
---------------------------------------

I changed the MailCmdHandler to lookup for a DNSServer service removing the dependencies from Xbill.
In the SMTPServerTest I created a mock DNSServer that only provide results when the host is "james.apache.org".
Please review/check my patch.

About your last comment, IMHO, 1 is included in 2. The default configuration is to relay mail from localhost.

> Check for valid sender domain in mail from
> ------------------------------------------
>
>          Key: JAMES-465
>          URL: http://issues.apache.org/jira/browse/JAMES-465
>      Project: James
>         Type: New Feature

>     Reporter: Norman Maurer
>     Assignee: Stefano Bagnara
>  Attachments: MailCmdHandler-Resolv-Fixed.patch, MailCmdHandler-Resolv-V2.patch, MailCmdHandler-Resolv.patch, SMTPServerTest-Resolv.patch, SMTPTestConfiguration-Resolv.patch, james-config.xml-Resolv.patch
>
> I wrote a patch to support checking for resolvable domain in sender before accept "mail from:"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Resolved: (JAMES-465) Check for valid sender domain in mail from

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-465?page=all ]
     
Norman Maurer resolved JAMES-465:
---------------------------------

    Resolution: Fixed

This is allready done by findMXRecords.
Sorry

> Check for valid sender domain in mail from
> ------------------------------------------
>
>          Key: JAMES-465
>          URL: http://issues.apache.org/jira/browse/JAMES-465
>      Project: James
>         Type: New Feature

>     Reporter: Norman Maurer
>     Assignee: Stefano Bagnara
>      Fix For: 2.3.0a2
>  Attachments: MailCmdHandler-Resolv-Fixed.patch, MailCmdHandler-Resolv-V2.patch, MailCmdHandler-Resolv.patch, MailCmdHandler-ignoreRelay.patch, MailFrom-rfc-fix-all.patch, SMTPServerTest-Resolv.patch, SMTPServerTest-ignore-relayClient.patch, SMTPTestConfiguration-Resolv.patch, SMTPTestConfiguration-ignore-relayClient.patch, james-config.xml-Resolv.patch, james-config.xml-ignoreRelay.patch
>
> I wrote a patch to support checking for resolvable domain in sender before accept "mail from:"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Updated: (JAMES-465) Check for valid sender domain in mail from

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-465?page=all ]

Norman Maurer updated JAMES-465:
--------------------------------

    Attachment: MailFrom-rfc-fix-all.patch

This patch change the behavior to the above descripted.

> Check for valid sender domain in mail from
> ------------------------------------------
>
>          Key: JAMES-465
>          URL: http://issues.apache.org/jira/browse/JAMES-465
>      Project: James
>         Type: New Feature

>     Reporter: Norman Maurer
>     Assignee: Stefano Bagnara
>      Fix For: 2.3.0a2
>  Attachments: MailCmdHandler-Resolv-Fixed.patch, MailCmdHandler-Resolv-V2.patch, MailCmdHandler-Resolv.patch, MailCmdHandler-ignoreRelay.patch, MailFrom-rfc-fix-all.patch, SMTPServerTest-Resolv.patch, SMTPServerTest-ignore-relayClient.patch, SMTPTestConfiguration-Resolv.patch, SMTPTestConfiguration-ignore-relayClient.patch, james-config.xml-Resolv.patch, james-config.xml-ignoreRelay.patch
>
> I wrote a patch to support checking for resolvable domain in sender before accept "mail from:"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Commented: (JAMES-465) Check for valid sender domain in mail from

Posted by "Stefano Bagnara (JIRA)" <se...@james.apache.org>.
    [ http://issues.apache.org/jira/browse/JAMES-465?page=comments#action_12373992 ] 

Stefano Bagnara commented on JAMES-465:
---------------------------------------

We should document explicitly that the check done is: valid MX record for the domain and not simply resolvable domain name.
Not all resolvable/valid domains also have valid mx records configured.
They are 2 different checks.

> Check for valid sender domain in mail from
> ------------------------------------------
>
>          Key: JAMES-465
>          URL: http://issues.apache.org/jira/browse/JAMES-465
>      Project: James
>         Type: New Feature

>     Reporter: Norman Maurer
>     Assignee: Stefano Bagnara
>  Attachments: MailCmdHandler-Resolv-Fixed.patch, MailCmdHandler-Resolv-V2.patch, MailCmdHandler-Resolv.patch, SMTPServerTest-Resolv.patch, SMTPTestConfiguration-Resolv.patch, james-config.xml-Resolv.patch
>
> I wrote a patch to support checking for resolvable domain in sender before accept "mail from:"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Updated: (JAMES-465) Check for valid sender domain in mail from

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-465?page=all ]

Norman Maurer updated JAMES-465:
--------------------------------

    Attachment: SMTPServerTest-ignore-relayClient.patch

Update Junit

> Check for valid sender domain in mail from
> ------------------------------------------
>
>          Key: JAMES-465
>          URL: http://issues.apache.org/jira/browse/JAMES-465
>      Project: James
>         Type: New Feature

>     Reporter: Norman Maurer
>     Assignee: Stefano Bagnara
>  Attachments: MailCmdHandler-Resolv-Fixed.patch, MailCmdHandler-Resolv-V2.patch, MailCmdHandler-Resolv.patch, MailCmdHandler-ignoreRelay.patch, SMTPServerTest-Resolv.patch, SMTPServerTest-ignore-relayClient.patch, SMTPTestConfiguration-Resolv.patch, SMTPTestConfiguration-ignore-relayClient.patch, james-config.xml-Resolv.patch, james-config.xml-ignoreRelay.patch
>
> I wrote a patch to support checking for resolvable domain in sender before accept "mail from:"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Resolved: (JAMES-465) Check for valid sender domain in mail from

Posted by "Stefano Bagnara (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-465?page=all ]
     
Stefano Bagnara resolved JAMES-465:
-----------------------------------

    Fix Version: 2.3.0a2
     Resolution: Fixed

Applied patches to sender domain validity check.
We probably should choose a different option that "ignoreRelayClient".

The only suggestion I can think now is: "checkAuthClients" with an inverted behaviour (default to false).
(Both Authentication and AuthenticatedAddresses change the relay behaviour)

Any other idea?

> Check for valid sender domain in mail from
> ------------------------------------------
>
>          Key: JAMES-465
>          URL: http://issues.apache.org/jira/browse/JAMES-465
>      Project: James
>         Type: New Feature

>     Reporter: Norman Maurer
>     Assignee: Stefano Bagnara
>      Fix For: 2.3.0a2
>  Attachments: MailCmdHandler-Resolv-Fixed.patch, MailCmdHandler-Resolv-V2.patch, MailCmdHandler-Resolv.patch, MailCmdHandler-ignoreRelay.patch, SMTPServerTest-Resolv.patch, SMTPServerTest-ignore-relayClient.patch, SMTPTestConfiguration-Resolv.patch, SMTPTestConfiguration-ignore-relayClient.patch, james-config.xml-Resolv.patch, james-config.xml-ignoreRelay.patch
>
> I wrote a patch to support checking for resolvable domain in sender before accept "mail from:"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Updated: (JAMES-465) Check for valid sender domain in mail from

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-465?page=all ]

Norman Maurer updated JAMES-465:
--------------------------------

    Attachment: james-config.xml-Resolv.patch

Patch the config to reflect the new feature

> Check for valid sender domain in mail from
> ------------------------------------------
>
>          Key: JAMES-465
>          URL: http://issues.apache.org/jira/browse/JAMES-465
>      Project: James
>         Type: New Feature
>     Reporter: Norman Maurer
>  Attachments: MailCmdHandler-Resolv.patch, SMTPServerTest-Resolv.patch, SMTPTestConfiguration-Resolv.patch, james-config.xml-Resolv.patch
>
> I wrote a patch to support checking for resolvable domain in sender before accept "mail from:"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Commented: (JAMES-465) Check for valid sender domain in mail from

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
    [ http://issues.apache.org/jira/browse/JAMES-465?page=comments#action_12374090 ] 

Norman Maurer commented on JAMES-465:
-------------------------------------

Sounds good for me.. 

> Check for valid sender domain in mail from
> ------------------------------------------
>
>          Key: JAMES-465
>          URL: http://issues.apache.org/jira/browse/JAMES-465
>      Project: James
>         Type: New Feature

>     Reporter: Norman Maurer
>     Assignee: Stefano Bagnara
>      Fix For: 2.3.0a2
>  Attachments: MailCmdHandler-Resolv-Fixed.patch, MailCmdHandler-Resolv-V2.patch, MailCmdHandler-Resolv.patch, MailCmdHandler-ignoreRelay.patch, SMTPServerTest-Resolv.patch, SMTPServerTest-ignore-relayClient.patch, SMTPTestConfiguration-Resolv.patch, SMTPTestConfiguration-ignore-relayClient.patch, james-config.xml-Resolv.patch, james-config.xml-ignoreRelay.patch
>
> I wrote a patch to support checking for resolvable domain in sender before accept "mail from:"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Commented: (JAMES-465) Check for valid sender domain in mail from

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
    [ http://issues.apache.org/jira/browse/JAMES-465?page=comments#action_12373993 ] 

Norman Maurer commented on JAMES-465:
-------------------------------------

true! let me post a new patch for this.. i will post it in about 30 Minutes. We only should check MX . A record is not necassary for this.

> Check for valid sender domain in mail from
> ------------------------------------------
>
>          Key: JAMES-465
>          URL: http://issues.apache.org/jira/browse/JAMES-465
>      Project: James
>         Type: New Feature

>     Reporter: Norman Maurer
>     Assignee: Stefano Bagnara
>  Attachments: MailCmdHandler-Resolv-Fixed.patch, MailCmdHandler-Resolv-V2.patch, MailCmdHandler-Resolv.patch, SMTPServerTest-Resolv.patch, SMTPTestConfiguration-Resolv.patch, james-config.xml-Resolv.patch
>
> I wrote a patch to support checking for resolvable domain in sender before accept "mail from:"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Updated: (JAMES-465) Check for valid sender domain in mail from

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-465?page=all ]

Norman Maurer updated JAMES-465:
--------------------------------

    Attachment: SMTPTestConfiguration-ignore-relayClient.patch

Update Junit.
Complete

> Check for valid sender domain in mail from
> ------------------------------------------
>
>          Key: JAMES-465
>          URL: http://issues.apache.org/jira/browse/JAMES-465
>      Project: James
>         Type: New Feature

>     Reporter: Norman Maurer
>     Assignee: Stefano Bagnara
>  Attachments: MailCmdHandler-Resolv-Fixed.patch, MailCmdHandler-Resolv-V2.patch, MailCmdHandler-Resolv.patch, MailCmdHandler-ignoreRelay.patch, SMTPServerTest-Resolv.patch, SMTPServerTest-ignore-relayClient.patch, SMTPTestConfiguration-Resolv.patch, SMTPTestConfiguration-ignore-relayClient.patch, james-config.xml-Resolv.patch, james-config.xml-ignoreRelay.patch
>
> I wrote a patch to support checking for resolvable domain in sender before accept "mail from:"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Updated: (JAMES-465) Check for valid sender domain in mail from

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-465?page=all ]

Norman Maurer updated JAMES-465:
--------------------------------

    Attachment: SMTPTestConfiguration-Resolv.patch

Add junit test

> Check for valid sender domain in mail from
> ------------------------------------------
>
>          Key: JAMES-465
>          URL: http://issues.apache.org/jira/browse/JAMES-465
>      Project: James
>         Type: New Feature
>     Reporter: Norman Maurer
>  Attachments: MailCmdHandler-Resolv.patch, SMTPServerTest-Resolv.patch, SMTPTestConfiguration-Resolv.patch, james-config.xml-Resolv.patch
>
> I wrote a patch to support checking for resolvable domain in sender before accept "mail from:"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] Updated: (JAMES-465) Check for valid sender domain in mail from

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-465?page=all ]

Norman Maurer updated JAMES-465:
--------------------------------

    Attachment: SMTPServerTest-Resolv.patch

Add junit test

> Check for valid sender domain in mail from
> ------------------------------------------
>
>          Key: JAMES-465
>          URL: http://issues.apache.org/jira/browse/JAMES-465
>      Project: James
>         Type: New Feature
>     Reporter: Norman Maurer
>  Attachments: MailCmdHandler-Resolv.patch, SMTPServerTest-Resolv.patch, SMTPTestConfiguration-Resolv.patch, james-config.xml-Resolv.patch
>
> I wrote a patch to support checking for resolvable domain in sender before accept "mail from:"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org