AnsweredAssumed Answered

Alfresco 3r2: Inbound Mail Problem blocked.senders

Question asked by gsteen on Sep 24, 2010
Latest reply on Sep 24, 2010 by gsteen
Hi There,

I configured alfersco 3.2rc2 with inbound mailserver on Port 25000. tls negotiation works fine after including the keyStore into JAVA_OPTS.

My Problem starts, after the sending MTA has established TLS with alfresco mailserver. log4j in debug mode puts out the following:

13:45:49,430  DEBUG [smtp.server.ConnectionHandler] SMTP connection count: 1                                           
13:45:49,466  DEBUG [smtp.server.ConnectionHandler] Server: 220 alfresco.foo.org ESMTP SubEthaSMTP          
13:45:49,471  DEBUG [smtp.server.ConnectionHandler] Client: EHLO mail1.foo.org                                
13:45:49,471  DEBUG [smtp.server.ConnectionHandler] Server: 250-alfresco.foo.org                            
250-8BITMIME                                                                                                           
250-STARTTLS                                                                                                           
250 Ok                                                                                                                 
13:45:49,471  DEBUG [smtp.server.ConnectionHandler] Client: STARTTLS                                                   
13:45:49,471  DEBUG [smtp.server.ConnectionHandler] Server: 220 Ready to start TLS                                     
13:45:49,614  DEBUG [smtp.server.ConnectionHandler] Client: EHLO mail1.foo.org                                
13:45:49,614  DEBUG [smtp.server.ConnectionHandler] Server: 250-alfresco.foo.org                            
250-8BITMIME                                                                                                           
250-STARTTLS                                                                                                           
250 Ok                                                                                                                 
13:45:49,615  DEBUG [smtp.server.ConnectionHandler] Client: MAIL FROM:<me@mydomain.com>                                
Exception in thread "org.subethamail.smtp.server.ConnectionHandler" java.util.regex.PatternSyntaxException: Illegal repetition near index 0                                                                                                   
${email.server.blocked.senders}                                                                                        
^                                                                                                                      
        at java.util.regex.Pattern.error(Pattern.java:1713)                                                            
        at java.util.regex.Pattern.closure(Pattern.java:2775)                                                          
        at java.util.regex.Pattern.sequence(Pattern.java:1889)                                                         
        at java.util.regex.Pattern.expr(Pattern.java:1752)                                                             
        at java.util.regex.Pattern.compile(Pattern.java:1460)                                                          
        at java.util.regex.Pattern.<init>(Pattern.java:1133)                                                           
        at java.util.regex.Pattern.compile(Pattern.java:823)                                                           
        at java.util.regex.Pattern.matches(Pattern.java:928)                                                           
        at java.lang.String.matches(String.java:2090)                                                                  
        at org.alfresco.email.server.EmailServer.filterSender(EmailServer.java:182)                                    
        at org.alfresco.email.server.impl.subetha.SubethaEmailServer.access$000(SubethaEmailServer.java:49)            
        at org.alfresco.email.server.impl.subetha.SubethaEmailServer$Handler.from(SubethaEmailServer.java:114)         
        at org.subethamail.smtp.command.MailCommand.execute(MailCommand.java:57)                                       
        at org.subethamail.smtp.server.CommandHandler.handleCommand(CommandHandler.java:58)                            
        at org.subethamail.smtp.server.ConnectionHandler.run(ConnectionHandler.java:113) 


The sender's e-mail address is the same as in his user-profile. the user is member of the group EMAIL_CONTRIBUTORS
in alfresco-global.properties the following is configured


# Alfresco Email Service and Email Server                                                                              
#————-                                                                                                         
                                                                                                                       
# Enable/Disable the inbound email service. | The service could be used by processes other than                        
# the Email Server (e.g. direct RMI access) so this flag is independent of the Email Service.                          
#————-                                                                                                         
email.inbound.enabled=true                                                                                             
                                                                                                                       
# Email Server properties                                                                                              
#————-                                                                                                         
email.server.enabled=true                                                                                              
email.server.port=25000                                                                                                
email.server.domain=alfresco.foo.org                                                                        
email.inbound.unknownUser=anonymous                                                                                    
                                                                                                                       
# A comma separated list of email REGEX patterns of allowed senders.                                                   
# If there are any values in the list then all sender email addresses                                                  
# must match. | For example:                                                                                           
# |  .*\@alfresco\.com, .*\@alfresco\.org                                                                              
# Allow anyone:                                                                                                        
#————-                                                                                                         
email.server.allowed.senders=.*         


obviously alfresco blocks the sender, but i have no idea why.

can anyone help? google couldn't …

thanx in advance,

gerd

Outcomes