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 "Jordi Ferran (JIRA)" <se...@james.apache.org> on 2012/05/31 17:52:23 UTC

[jira] [Updated] (JAMES-1414) SPFHandler affects rejecting mail

     [ https://issues.apache.org/jira/browse/JAMES-1414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jordi Ferran updated JAMES-1414:
--------------------------------

    Description: 
I started to play with SMTPServer handler and I discovered external mails send to James are rejected.
No explicit "reject" keyword is seen in log file, but this is the reality, mail do not enter the mailbox.
I've discovered that the SPFHandler is the cause of this problem.
I've looked into the source code, I modified configuration parameters, but I do not fully comprehend the reason for the mail to be rejected or not delivered to the mailbox.

The log says:
Id='1135436670' User='' No Sender or HELO/EHLO present

The configuration:
            <handler class="org.apache.james.smtpserver.fastfail.SPFHandler">
                <blockSoftFail>false</blockSoftFail>
                <blockPermError>false</blockPermError>
                <checkAuthNetworks>false</checkAuthNetworks>
            </handler>

My interpretation:
"No Sender" => Not authorized user logged (no sender for controlled domains) => OK
"No HELO/EHLO" => OK, two external servers are not using this command => OK to me, I do not enforce the use of HELO/EHLO.

Looking at the source code seems that in this situation (the log confirms the source code 'if'), the method returns without rejecting the email, but the true effect is that somehow the incoming mail never is not delivered to the mailbox. I raised LogLevel to DEBUG an no stacktrace is seen, don't know where to search for more clues.

Right now I don't know how to handle this problem. If it is my fault, I would appreciate an indication on how to configure the handler.

Thanks in advance.

  was:
I started to play with SMTPServer handler and I discovered external mails send to James are rejected.
No explicit "reject" keyword is seen in log file, but this is the reality, none enter.
I've discovered that the SPFHandler is the cause to disrupt.
I've looked into the source code, I modified configuration parameters, but I do not fully comprehend the reason to reject the mail.

The log says:
Id='1135436670' User='' No Sender or HELO/EHLO present

The configuration:
            <handler class="org.apache.james.smtpserver.fastfail.SPFHandler">
                <blockSoftFail>false</blockSoftFail>
                <blockPermError>false</blockPermError>
                <checkAuthNetworks>false</checkAuthNetworks>
            </handler>

My interpretation:
"No Sender" => Not authorized user logged (no sender for controlled domains) => OK
"No HELO/EHLO" => OK, two external servers are not using this command => OK to me, I do not enforce the use of HELO/EHLO.

Looking at the source code seems that in this situation (this log appears), the method returns without rejecting the email, but the true effect is that somehow the mail is never handled to the mailbox.

Right now I don't know how to handle this problem. If it is my fault, I would appreciate an indication on how to configure the handler.

Thanks in advance.

    
> SPFHandler affects rejecting mail
> ---------------------------------
>
>                 Key: JAMES-1414
>                 URL: https://issues.apache.org/jira/browse/JAMES-1414
>             Project: JAMES Server
>          Issue Type: Bug
>          Components: SMTPServer
>    Affects Versions: 3.0-beta4
>         Environment: Running Java 1.6.0_32 (64 bits) on a dedicated server Ubuntu 10.04 LTS (64bits).
>            Reporter: Jordi Ferran
>            Priority: Minor
>
> I started to play with SMTPServer handler and I discovered external mails send to James are rejected.
> No explicit "reject" keyword is seen in log file, but this is the reality, mail do not enter the mailbox.
> I've discovered that the SPFHandler is the cause of this problem.
> I've looked into the source code, I modified configuration parameters, but I do not fully comprehend the reason for the mail to be rejected or not delivered to the mailbox.
> The log says:
> Id='1135436670' User='' No Sender or HELO/EHLO present
> The configuration:
>             <handler class="org.apache.james.smtpserver.fastfail.SPFHandler">
>                 <blockSoftFail>false</blockSoftFail>
>                 <blockPermError>false</blockPermError>
>                 <checkAuthNetworks>false</checkAuthNetworks>
>             </handler>
> My interpretation:
> "No Sender" => Not authorized user logged (no sender for controlled domains) => OK
> "No HELO/EHLO" => OK, two external servers are not using this command => OK to me, I do not enforce the use of HELO/EHLO.
> Looking at the source code seems that in this situation (the log confirms the source code 'if'), the method returns without rejecting the email, but the true effect is that somehow the incoming mail never is not delivered to the mailbox. I raised LogLevel to DEBUG an no stacktrace is seen, don't know where to search for more clues.
> Right now I don't know how to handle this problem. If it is my fault, I would appreciate an indication on how to configure the handler.
> Thanks in advance.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.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