Sending mail to external destination via SWA

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

tmk
Posts: 24
Joined: Wed Nov 09, 2005 10:32 pm

Sending mail to external destination via SWA

Postby tmk » Wed Nov 09, 2005 10:50 pm

Server: Scalix Community 9.0.4/52, FC4, JDK 1.4.2_10
SWA Browser: MS IE 6 SP2

I can login to SAC, SWA without error. I have created 2 additional accounts beyond the sxadmin. Via SWA I can send from one account to the other. Via SWA I cannot send to an external destination (i.e. user@gmail.com). When I click send it goes back to the mailbox and "hangs" - states "Sending mail" in upper right corner of browser. I get cryptic errors via browser 'HTTP STATUS: 22002'. I am not seeing any update to scalix-swa_log.[date].txt beyond when services restart.

I believe it is permission related:
1. What permission should the tomcat logs have?
2. What scalix directory(ies) are responsible for smtp
3. What permission should these scalix directory(ies) have?

I've tried performing permission change at top level of tomcat and scalix and while the message finally sends (that one time only), once I restart the services, I can no longer login to SAC or SWA. I have rebuilt scalix and am back to square one as mentioned above.

Haven't seen anything on forum or in Scalix support areas. Although one suggestion seemed relavent (http://na1.salesforce.com/sol/public/searchdetail.jsp?retURL=%2Fsol%2Fpublic%2Fsearch.jsp%3Fsearch%3Dsending%2Bmail%26orgId%3D00D300000000IGv&orgId=00D300000000IGv&id=501300000004gOr) any change I've affected to smtp.cfg has not resolved and again I do not get any log update to even show me errors as a result of send attempt. Any help would be appreciated.

Thanks

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Re: Sending mail to external destination via SWA

Postby ScalixSupport » Thu Nov 10, 2005 2:23 pm

tmk wrote:Server: Scalix Community 9.0.4/52, FC4, JDK 1.4.2_10
SWA Browser: MS IE 6 SP2

I can login to SAC, SWA without error. I have created 2 additional accounts beyond the sxadmin. Via SWA I can send from one account to the other. Via SWA I cannot send to an external destination (i.e. user@gmail.com). When I click send it goes back to the mailbox and "hangs" - states "Sending mail" in upper right corner of browser. I get cryptic errors via browser 'HTTP STATUS: 22002'. I am not seeing any update to scalix-swa_log.[date].txt beyond when services restart.

I believe it is permission related:
1. What permission should the tomcat logs have?
2. What scalix directory(ies) are responsible for smtp
3. What permission should these scalix directory(ies) have?

I've tried performing permission change at top level of tomcat and scalix and while the message finally sends (that one time only), once I restart the services, I can no longer login to SAC or SWA. I have rebuilt scalix and am back to square one as mentioned above.

Haven't seen anything on forum or in Scalix support areas. Although one suggestion seemed relavent (http://na1.salesforce.com/sol/public/searchdetail.jsp?retURL=%2Fsol%2Fpublic%2Fsearch.jsp%3Fsearch%3Dsending%2Bmail%26orgId%3D00D300000000IGv&orgId=00D300000000IGv&id=501300000004gOr) any change I've affected to smtp.cfg has not resolved and again I do not get any log update to even show me errors as a result of send attempt. Any help would be appreciated.

Thanks


I believe you may have not added your local network into smtpd.cfg ACCEPT lines. Can you post the content of smtpd.cfg here and let us know what IP addressses your LAN uses?

Thanks,

Sascha.

tmk
Posts: 24
Joined: Wed Nov 09, 2005 10:32 pm

Postby tmk » Thu Nov 10, 2005 6:15 pm

###############################################################################
# SMTP Relay Configuration
# ########################
#
# For details please see Scalix Overview - Security
#
###############################################################################

###############################################################################
# Relay Configuration
# ###################
#
# EXTENSIONS These extensions will be advertised by the EHLO reply
# DOMAIN_NAME Local host FQDN
# LOCAL_NAMES Local aliases of DOMAIN_NAME
# DEFAULT_SMTP Either the name of a program (which must begin with
# a "/") or a hostname and optional port number. The
# default value is "/usr/sbin/sendmail -bs". Note that if
# mail is being re-directed to another machine, then that
# machine should be able to deal correctly with addresses that
# are nominally local to the originating machine.
# MAX_HOP_COUNT If the number of Received: header lines in a message sent to
# the relay exceed this number then the message will be
# rejected by the relay. The default value is zero and any
# non-positive value is interpreted as infinity. The default
# value means that no loop detection is done by the relay,
# any loop detection will only be done by sendmail.
# GREETING This is the text after the domain on the connection
# greeting line.
# LISTEN_PORT Alternative port to listen to, default is "smtp" port
#
###############################################################################


EXTENSIONS=AUTH,DSN,8BITMIME


###############################################################################
# Authentication and Anti-Spamming Measures
# #########################################
#
# Each line is of the form:
# EVENT ACTION PATTERN PATTERN...
# When an event happens the SMTP Relay checks for a matching event/pattern
# sequentially in this file. When it finds the first match, it takes the
# action specified.
#
# ######
# EVENTS
# ######
#
# AUTH_SUCCESS An attempt is made to submit a
# successfully authenticated message.
#
# AUTH_MISMATCH An attempt is made to submit a
# successfully authenticated message but
# the originator name does not match
# the authenticated name.
#
# ANONYMOUS An attempt is made to submit a message
# sent without authentication or after
# failed authentication.
#
# SUBMIT An attempt is made to submit a message from
# the host specified in pattern
#
# RELAY An attempt is made to relay a message through the SMTP Relay
#
# ORIGINATOR An attempt is made to submit a message from a user whose
# email address matches pattern
#
# RECIPIENT An attempt is made to submit a message to a user whose
# email address matches pattern
#
# #######
# ACTIONS
# #######
#
# Accept The message is unconditionally accepted and processed
# normally.
#
# Defer The message is deferred with a 400 code
#
# Discard The message is accepted but then discarded
#
# Header The message is accepted, but an extra header is inserted.
#
# Reject The message is rejected with a 500 code
#
# If Log_ added to the start of an action, then the action is also recorded
# in the SMTP Relay log file.
#
# ########
# PATTERNS
# ########
#
# Hostname Patterns
# - an IP address, eg 123.234.132.231
# - an IP subnet and mask, eg 123.234.200.0/255.255.240.0
# - a hostname, eg bert.loc.co.uk
# - the end of a domain, eg .spammer.net
# - the start of a domain, 123.234.
# - the keyword ALL matches all hosts
# - the keyword LOCAL matches all hosts that do not contain a .
#
# Email Patterns - used by ORIGINATOR and RECIPIENT
# - *@*.spam.net
#
###############################################################################

RELAY accept 127.0.0.1
RELAY accept 10.0.0.18
RELAY accept .domain.com ("my domain" is actually listed)
RELAY Log_Reject ALL

# extra rules added to prevent open relay usage
RECIPIENT Log_Reject *@*@*
RECIPIENT Log_Reject *%*
RECIPIENT Log_Reject *!*
RECIPIENT Log_Reject *#*@*

tmk
Posts: 24
Joined: Wed Nov 09, 2005 10:32 pm

Re: Sending mail to external destination via SWA

Postby tmk » Thu Nov 10, 2005 6:17 pm

As I mentioned (by reference to the link) in my original post, I edited the smtp.cfg as directed.

Does something more specific than precise IP address or domain name need to be entered. Should I list a subnet as well?

Thanks for the reply

tmk
Posts: 24
Joined: Wed Nov 09, 2005 10:32 pm

Re: Sending mail to external destination via SWA

Postby tmk » Thu Nov 10, 2005 7:02 pm

I tried messing around a bit with smtpd.cfg and seem to be getting closer where now I get "cannot send to address@gmail.com" instead of it hanging indefinitely.

Can you post a basic smtpd.cfg file that lays out examples of EXACT minimum requirements of what SX needs?

Thanks in advance

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Thu Nov 10, 2005 7:13 pm

(also posted elsewhere...)

Hello,

Try switching selinux off. To do this edit:

/etc/sysconfig/selinux

and change

SELINUX=enforcing

to

SELINUX=disabled

or

SELINUX=permissive

and reboot your system.

At a minimum, you will now be able to access the SWA Rules Wizard.

Matthew
Support

tmk
Posts: 24
Joined: Wed Nov 09, 2005 10:32 pm

Postby tmk » Thu Nov 10, 2005 7:58 pm

I'm afraid SELINUX is not the culprit.
I've tried several combinations of smtpd.cfg configuration all to no avail. I've even tried
'RELAY accept ALL' - no go

I think it has to with file level permissions on /opt/scalix as the only time I've been able to send outside is when I applied a less restrictive permission set to the directory and all child objects. Of course after I disconnected I could no longer login. So I need to know which folder/file controls sending mail? And what level of permission does it need to allow?

Thanks again for your help

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Thu Nov 10, 2005 8:11 pm

Well, /var/opt/scalix and /opt/scalix pretty much need full permissions. I think your smtpd.cfg is ok...

Matthew
Support

tmk
Posts: 24
Joined: Wed Nov 09, 2005 10:32 pm

Postby tmk » Thu Nov 10, 2005 11:26 pm

I finally have some log entries after reinstalling. the following seemed the most relavent. I have obscured the IP address and username:

=========================================
2005-11-10 16:05:12 StandardContext[/webmail]ip: x.x.x.x; username: user@domain.com; message: <SOAP-ENV:Fault><faultcode>SOAP-ENV:SERVER.MessagingException</faultcode><faultstring>Could not reconnect to service server

</faultstring><detail><e:MessagingException xmlns:e="http://scalix.com/errors"><message>Could not reconnect to service server

</message><debug>javax.mail.MessagingException: Connection refused;
nested exception is:
java.net.ConnectException: Connection refused
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:335)
at javax.mail.Service.connect(Service.java:233)
at javax.mail.Service.connect(Service.java:134)
at javax.mail.Service.connect(Service.java:86)
at com.scalix.swa.service.MailServices.getStore(MailServices.java:116)
at com.oddpost.mail.JavaMailHelper.getStore(JavaMailHelper.java:257)
at com.oddpost.mail.JavaMailHelper.getStore(JavaMailHelper.java:267)
at com.oddpost.server.module.SoapMail.saveToDrafts(SoapMail.java:959)
at com.oddpost.server.module.SoapMail.send(SoapMail.java:877)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.oddpost.soap.SoapModule.invokeMethod(SoapModule.java:238)
at com.oddpost.soap.SoapRequestImpl.execute(SoapRequestImpl.java:140)
at com.oddpost.server.HttpRequestHandler.handleRequest(HttpRequestHandler.java:221)
at com.oddpost.server.SoapServlet.doPost(SoapServlet.java:50)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at com.oddpost.server.filter.HttpConfFilter.doFilter(HttpConfFilter.java:175)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
... skipping the last 25 lines as irrelevant...
</debug></e:MessagingException></detail></SOAP-ENV:Fault>

2005-11-10 17:13:15 StandardContext[/webmail]ip: x.x.x.x ; username: tmknight@domain.com; message: <SOAP-ENV:Fault><faultcode>SOAP-ENV:SERVER.NullPointerException</faultcode><faultstring>null

</faultstring><detail><e:NullPointerException xmlns:e="http://scalix.com/errors"><message>null

</message><debug>java.lang.NullPointerException
at com.oddpost.mail.JavaMailHelper.getStore(JavaMailHelper.java:257)
at com.oddpost.mail.JavaMailHelper.getStore(JavaMailHelper.java:267)
at com.oddpost.server.module.SoapMail.saveToDrafts(SoapMail.java:959)
at com.oddpost.server.module.SoapMail.send(SoapMail.java:877)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.oddpost.soap.SoapModule.invokeMethod(SoapModule.java:238)
at com.oddpost.soap.SoapRequestImpl.execute(SoapRequestImpl.java:140)
at com.oddpost.server.HttpRequestHandler.handleRequest(HttpRequestHandler.java:221)
at com.oddpost.server.SoapServlet.doPost(SoapServlet.java:50)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at com.oddpost.server.filter.HttpConfFilter.doFilter(HttpConfFilter.java:175)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
... skipping the last 25 lines as irrelevant...
</debug></e:NullPointerException></detail></SOAP-ENV:Fault>
2005-11-10 17:13:16 StandardContext[/webmail]ip: x.x.x.x; username: user@domain.com; message: <SOAP-ENV:Fault><faultcode>SOAP-ENV:SERVER.NullPointerException</faultcode><faultstring>null

</faultstring><detail><e:NullPointerException xmlns:e="http://scalix.com/errors"><message>null

</message><debug>java.lang.NullPointerException
at com.oddpost.server.module.SoapMail.setAddressCache(SoapMail.java:1929)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.oddpost.soap.SoapModule.invokeMethod(SoapModule.java:238)
at com.oddpost.soap.SoapRequestImpl.execute(SoapRequestImpl.java:140)
at com.oddpost.server.HttpRequestHandler.handleRequest(HttpRequestHandler.java:221)
at com.oddpost.server.SoapServlet.doPost(SoapServlet.java:50)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at com.oddpost.server.filter.HttpConfFilter.doFilter(HttpConfFilter.java:175)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
... skipping the last 25 lines as irrelevant...
</debug></e:NullPointerException></detail></SOAP-ENV:Fault>
=========================================

Hope someone can find something userful in this.

Thanks in advance

tmk
Posts: 24
Joined: Wed Nov 09, 2005 10:32 pm

Postby tmk » Thu Nov 10, 2005 11:47 pm

After changing smtpd.cfg:

Before:
RELAY accept 127.0.0.1
RELAY accept 10.0.0.0/255.255.255.0
RELAY accept .KNIGHT.LOCAL
RELAY Log_Reject ALL

After:
RELAY accept 127.0.0.1 10.0.0.0/255.255.255.0 .KNIGHT.LOCAL
RELAY Log_Reject ALL

scalix-swa_log:
2005-11-10 17:39:35 StandardContext[/webmail]ip: x.x.x.x; username: user@domain.com; message: <SOAP-ENV:Fault><faultcode>SOAP-ENV:SERVER.MessagingException</faultcode><faultstring>Could not reconnect to service server

</faultstring><detail><e:MessagingException xmlns:e="http://scalix.com/errors"><message>Could not reconnect to service server

</message><debug>javax.mail.MessagingException: Connection refused;
nested exception is:
java.net.ConnectException: Connection refused
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:335)
at javax.mail.Service.connect(Service.java:233)
at javax.mail.Service.connect(Service.java:134)
at javax.mail.Service.connect(Service.java:86)
at com.scalix.swa.service.MailServices.getStore(MailServices.java:116)
at com.oddpost.mail.JavaMailHelper.getStore(JavaMailHelper.java:257)
at com.oddpost.mail.JavaMailHelper.getStore(JavaMailHelper.java:267)
at com.oddpost.server.module.SoapMail.saveToDrafts(SoapMail.java:959)
at com.oddpost.server.module.SoapMail.send(SoapMail.java:877)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.oddpost.soap.SoapModule.invokeMethod(SoapModule.java:238)
at com.oddpost.soap.SoapRequestImpl.execute(SoapRequestImpl.java:140)
at com.oddpost.server.HttpRequestHandler.handleRequest(HttpRequestHandler.java:221)
at com.oddpost.server.SoapServlet.doPost(SoapServlet.java:50)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at com.oddpost.server.filter.HttpConfFilter.doFilter(HttpConfFilter.java:175)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
... skipping the last 25 lines as irrelevant...
</debug></e:MessagingException></detail></SOAP-ENV:Fault>
2005-11-10 17:39:35 StandardContext[/webmail]ip: x.x.x.x; username: user@domain.com; message: Could not write SOAP response: org.apache.catalina.connector.ClientAbortException: null
2005-11-10 17:40:44 StandardContext[/webmail]ip: x.x.x.x; username: user@domain.com; message: SMTP send: Unable to send message to one or more addresses

javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
class javax.mail.SendFailedException: 550 Denied due to spam list

at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:926)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:389)
at com.oddpost.server.module.SoapMail.sendMessage(SoapMail.java:1708)
at com.oddpost.server.module.SoapMail.send(SoapMail.java:870)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.oddpost.soap.SoapModule.invokeMethod(SoapModule.java:238)
at com.oddpost.soap.SoapRequestImpl.execute(SoapRequestImpl.java:140)
at com.oddpost.server.HttpRequestHandler.handleRequest(HttpRequestHandler.java:221)
at com.oddpost.server.SoapServlet.doPost(SoapServlet.java:50)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at com.oddpost.server.filter.HttpConfFilter.doFilter(HttpConfFilter.java:175)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
... skipping the last 25 lines as irrelevant...

2005-11-10 17:40:45 StandardContext[/webmail]ip: x.x.x.x; username: user@domain.com; message: <SOAP-ENV:Fault><faultcode>SOAP-ENV:SERVER.SomeRecipientsRefused</faultcode><faultstring>Unable to send mail to:

otheruser@domain.com</faultstring><detail><e:SomeRecipientsRefused xmlns:e="http://scalix.com/errors"><message>Unable to send mail to:

otheruser@domain.com</message><debug>[none]</debug></e:SomeRecipientsRefused></detail></SOAP-ENV:Fault>

tmk
Posts: 24
Joined: Wed Nov 09, 2005 10:32 pm

Postby tmk » Fri Nov 11, 2005 12:04 am

Changed smtpd.cfg back to:
RELAY accept 127.0.0.1
RELAY accept 10.0.0.0/255.255.255.0
RELAY accept .domain.com
RELAY Log_Reject ALL

scalix-swa_log:
2005-11-10 17:58:22 StandardContext[/webmail]ip: x.x.x.x; username: user@domain.com; message: <SOAP-ENV:Fault><faultcode>SOAP-ENV:SERVER.MessagingException</faultcode><faultstring>Could not reconnect to service server

</faultstring><detail><e:MessagingException xmlns:e="http://scalix.com/errors"><message>Could not reconnect to service server

</message><debug>javax.mail.MessagingException: Connection refused;
nested exception is:
java.net.ConnectException: Connection refused
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:335)
at javax.mail.Service.connect(Service.java:233)
at javax.mail.Service.connect(Service.java:134)
at javax.mail.Service.connect(Service.java:86)
at com.scalix.swa.service.MailServices.getStore(MailServices.java:116)
at com.oddpost.mail.JavaMailHelper.getStore(JavaMailHelper.java:257)
at com.oddpost.mail.JavaMailHelper.getStore(JavaMailHelper.java:267)
at com.oddpost.server.module.SoapMail.saveToDrafts(SoapMail.java:959)
at com.oddpost.server.module.SoapMail.send(SoapMail.java:877)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.oddpost.soap.SoapModule.invokeMethod(SoapModule.java:238)
at com.oddpost.soap.SoapRequestImpl.execute(SoapRequestImpl.java:140)
at com.oddpost.server.HttpRequestHandler.handleRequest(HttpRequestHandler.java:221)
at com.oddpost.server.SoapServlet.doPost(SoapServlet.java:50)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at com.oddpost.server.filter.HttpConfFilter.doFilter(HttpConfFilter.java:175)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
... skipping the last 25 lines as irrelevant...
</debug></e:MessagingException></detail></SOAP-ENV:Fault>

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Fri Nov 11, 2005 5:23 am

tmk wrote:Changed smtpd.cfg back to:
RELAY accept 127.0.0.1
RELAY accept 10.0.0.0/255.255.255.0
RELAY accept .domain.com
RELAY Log_Reject ALL

scalix-swa_log:
2005-11-10 17:58:22 StandardContext[/webmail]ip: x.x.x.x; username: user@domain.com; message: <SOAP-ENV:Fault><faultcode>SOAP-ENV:SERVER.MessagingException</faultcode><faultstring>Could not reconnect to service server

</faultstring><detail><e:MessagingException xmlns:e="http://scalix.com/errors"><message>Could not reconnect to service server

</message><debug>javax.mail.MessagingException: Connection refused;
nested exception is:
java.net.ConnectException: Connection refused
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:335)
at javax.mail.Service.connect(Service.java:233)
at javax.mail.Service.connect(Service.java:134)
at javax.mail.Service.connect(Service.java:86)
at com.scalix.swa.service.MailServices.getStore(MailServices.java:116)
at com.oddpost.mail.JavaMailHelper.getStore(JavaMailHelper.java:257)
at com.oddpost.mail.JavaMailHelper.getStore(JavaMailHelper.java:267)
at com.oddpost.server.module.SoapMail.saveToDrafts(SoapMail.java:959)
at com.oddpost.server.module.SoapMail.send(SoapMail.java:877)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.oddpost.soap.SoapModule.invokeMethod(SoapModule.java:238)
at com.oddpost.soap.SoapRequestImpl.execute(SoapRequestImpl.java:140)
at com.oddpost.server.HttpRequestHandler.handleRequest(HttpRequestHandler.java:221)
at com.oddpost.server.SoapServlet.doPost(SoapServlet.java:50)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at com.oddpost.server.filter.HttpConfFilter.doFilter(HttpConfFilter.java:175)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
... skipping the last 25 lines as irrelevant...
</debug></e:MessagingException></detail></SOAP-ENV:Fault>


Hi,

could you please post without obscuring your IP addresses or domain names as this makes things harder for us. The relay accept lines should be OK, but I cannot verify against the log as you obscure this information. I don't care much about the domain name, but the IP is important. If you are really seeing an IP different from 10.0.0.x then that is why you cannot send mail.

Cheers,

Sascha.

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Fri Nov 11, 2005 6:59 pm

Are you restarting smtpd after making these changes?

The smtpd.cfg should probably look like:

RELAY accept 127.0.0.1
RELAY accept .KNIGHT.LOCAL
RELAY Log_Reject ALL

Check the partner.xml file. It can be found in /etc/opt/scalix/webmail/partner.xml

look for the line:

smtpServer="xxxx.server.com"

What is in the /etc/hosts file?

Matthew
Support

tmk
Posts: 24
Joined: Wed Nov 09, 2005 10:32 pm

Postby tmk » Fri Nov 11, 2005 7:59 pm

Hi,

could you please post without obscuring your IP addresses or domain names as this makes things harder for us. The relay accept lines should be OK, but I cannot verify against the log as you obscure this information. I don't care much about the domain name, but the IP is important. If you are really seeing an IP different from 10.0.0.x then that is why you cannot send mail.

Cheers,

Sascha.


Sascha:

The ip address I'm obscuring is my real-world internet IP address. Should that address be my LAN 10.0.0.0 address? This server sits behind a NAT'd firewall so I figured the log posting my internet IP was OK. Suggestions?

I'll work from Matthew's suggestion - as this is related to the area of the log your addressing.

Thanks for taking interest in my issue.

tmk
Posts: 24
Joined: Wed Nov 09, 2005 10:32 pm

Postby tmk » Fri Nov 11, 2005 8:02 pm

ScalixSupport wrote:Are you restarting smtpd after making these changes?

The smtpd.cfg should probably look like:

RELAY accept 127.0.0.1
RELAY accept .KNIGHT.LOCAL
RELAY Log_Reject ALL


Yes, every time. and the original smtpd.cfg was configured exactly that way. I only started modifying in an atempt to resolve this issue.

Check the partner.xml file. It can be found in /etc/opt/scalix/webmail/partner.xml

look for the line:

smtpServer="xxxx.server.com"

What is in the /etc/hosts file?

Matthew
Support


I'll look into this and report back my findings - thanks Matthew


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 3 guests