Page 1 of 4

send Mails move in DRAFTS!

Posted: Tue Dec 12, 2006 6:42 am
by berger1
Hi,

i have large problems with sending mails from webmail interface. All mails move in the draft folder. Sending mails via outlook connector works fine.
I found a topic in this forum about DNS settings etc.. but all works fine. There is no double entry in DNS Server for this scalix machine.

Scalix 11.0 pre-1
Opensuse 10.1

here my configs:

/etc/hosts

127.0.0.1 localhost
# special IPv6 addresses
::1 localhost ipv6-localhost ipv6-loopback

fe00::0 ipv6-localnet

ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts
192.168.1.4 scalix.mydomain.tld scalix


smtpd.cfg

RELAY accept 127.0.0.1
RELAY accept 192.168.10.0/255.255.255.0
RELAY accept 192.168.1.0/255.255.255.0
RELAY accept .mydoma.tld
RELAY Log_Reject ALL

i got some errors in catalina.out, see below

javax.mail.AuthenticationFailedException
at javax.mail.Service.connect(Unknown Source)
at com.scalix.swa.service.MailServices.getTransport(MailServices.java:129)
at com.oddpost.server.module.SoapMail.sendMessage(SoapMail.java:1596)
at com.oddpost.server.module.SoapMail.send(SoapMail.java:942)
at sun.reflect.GeneratedMethodAccessor115.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.oddpost.soap.SoapModule.invokeMethod(SoapModule.java:238)
at com.oddpost.soap.SoapRequestImpl.execute(SoapRequestImpl.java:139)
at com.oddpost.server.HttpRequestHandler.handleRequest(HttpRequestHandler.java:224)
at com.oddpost.server.SoapServlet.doPost(SoapServlet.java:49)
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:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.oddpost.server.filter.HttpConfFilter.doFilter(HttpConfFilter.java:174)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
12.12.2006 11:01:37 org.apache.catalina.core.ApplicationContext log
INFO: ip: 192.168.1.2; username: torsten.krause@dima-systems.de; message: <SOAP-ENV:Fault><faultcode>SOAP-ENV:CLIENT.MessagingException</faultcode><faultstring>Message could not be sent, please try again later. A copy of the message has been placed into your 'Drafts' folder.

</faultstring><detail><e:MessagingException xmlns:e="http://scalix.com/errors"><message>Message could not be sent, please try again later. A copy of the message has been placed into your 'Drafts' folder.

</message><debug>javax.mail.MessagingException: Message could not be sent, please try again later. A copy of the message has been placed into your 'Drafts' folder.
at com.oddpost.server.module.SoapMail.sendMessage(SoapMail.java:1605)
at com.oddpost.server.module.SoapMail.send(SoapMail.java:942)
at sun.reflect.GeneratedMethodAccessor115.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.oddpost.soap.SoapModule.invokeMethod(SoapModule.java:238)
at com.oddpost.soap.SoapRequestImpl.execute(SoapRequestImpl.java:139)
at com.oddpost.server.HttpRequestHandler.handleRequest(HttpRequestHandler.java:224)
at com.oddpost.server.SoapServlet.doPost(SoapServlet.java:49)
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:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.oddpost.server.filter.HttpConfFilter.doFilter(HttpConfFilter.java:174)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
... skipping the last 14 lines as irrelevant...
</debug></e:MessagingException></detail></SOAP-ENV:Fault>


Any hints? thanks in advance.

Posted: Tue Dec 12, 2006 11:12 am
by dkelly
The clue is in

Code: Select all

javax.mail.AuthenticationFailedException


Can you post the other non-commented lines from your smtpd.cfg file ?

Cheers

Dave

Posted: Tue Dec 12, 2006 11:18 am
by berger1
of course

this is the complete File

RELAY accept 127.0.0.1
RELAY accept 192.168.10.0/255.255.255.0
RELAY accept 192.168.1.0/255.255.255.0
RELAY accept .mydomain.de
RELAY accept .my2nddomain.de
RELAY Log_Reject ALL

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

# The following group sets the configuration for the submission listener
# This listener is only active if SUBMIT=ON is above
# By default it binds to port 587
[SUBMIT]
#LISTEN=localhost:587
# Reject all anonymous connections
ANONYMOUS Log_Reject ALL



# The following group sets the configuration for the lmtp listener
# This listener is only active if LMTP=ON is above
[LMTP]
LISTEN=localhost:24
# Use the following line to listen on a unix domain socket
#LISTEN=~/tmp/lmtp.unix

Stefan

Posted: Wed Dec 13, 2006 6:44 am
by berger1
Hi,

nobody has an idea?

SOLVED!

Posted: Wed Dec 13, 2006 9:07 am
by berger1
O.k. may be someone is interested in the solution.

The added testuser did not have a passwort. So login in webmail and login via outlook connector works fine. Sending email in outlook works too but sending mails from webmail did not work. So i added a passwort for the user and sending mails via webmail now works fine. Can someone explain this appearance?

Stefan

Same problem

Posted: Tue Dec 26, 2006 10:02 am
by rtausend
I have the same problem, all mails are moved to the Draft folder.
My user has set a Password, Outlook sending works perfect too, same output at
catalina.out, any ideas?

Robert

.. same issue!!

Posted: Tue Dec 26, 2006 1:08 pm
by carlPjohnson
I am also having the same issue. All emails sent from SWA end up leaving and coming right back to the DRAFTS folder. See errors below.

Dec 26, 2006 10:07:12 AM org.apache.catalina.core.ApplicationContext log
INFO: ip: 192.168.41.45; username: sdahlquist@RCP.LOCAL; message: <SOAP-ENV:Fault><faultcode>SOAP-ENV:CLIENT.MessagingException</faultcode><faultstring>Message could not be sent, please try again later. A copy of the message has been placed into your 'Drafts' folder.

</faultstring><detail><e:MessagingException xmlns:e="http://scalix.com/errors"><message>Message could not be sent, please try again later. A copy of the message has been placed into your 'Drafts' folder.

</message><debug>javax.mail.MessagingException: Message could not be sent, please try again later. A copy of the message has been placed into your 'Drafts' folder.
at com.oddpost.server.module.SoapMail.sendMessage(SoapMail.java:1605)
at com.oddpost.server.module.SoapMail.send(SoapMail.java:942)
at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.oddpost.soap.SoapModule.invokeMethod(SoapModule.java:238)
at com.oddpost.soap.SoapRequestImpl.execute(SoapRequestImpl.java:139)
at com.oddpost.server.HttpRequestHandler.handleRequest(HttpRequestHandler.java:224)
at com.oddpost.server.SoapServlet.doPost(SoapServlet.java:49)
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:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.oddpost.server.filter.HttpConfFilter.doFilter(HttpConfFilter.java:174)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
... skipping the last 14 lines as irrelevant...
</debug></e:MessagingException></detail></SOAP-ENV:Fault>

.. a little more info

Posted: Tue Dec 26, 2006 1:27 pm
by carlPjohnson
Outlook also sends fine (but it does not really use the SMTP directly)
Using the hosts FQDN as SMTP in swa.properties.
These users are imported from A/D and using Kerberos for Auth.
RES/CAA are using NON- KERBEROS communication between them.

smtpd.cfg

LISTEN=scalix.rcp.local:25,scalix.rcp.local:587
EXTENSIONS=AUTH,DSN,8BITMIME
GREETING=SMTPD;
SMTPFILTER=TRUE
RELAY accept 127.0.0.1
RELAY accept .rcp.local
RELAY Log_Reject ALL
RECIPIENT Log_Reject *@*@*
RECIPIENT Log_Reject *%*
RECIPIENT Log_Reject *!*
RECIPIENT Log_Reject *#*@*
[SUBMIT]
ANONYMOUS Log_Reject ALL
[LMTP]
LISTEN=localhost:24

pam.d/smtpd.auth

password required om_autred om_krb5 user_unknown=ignore
auth optional om_auth use_first_pass
account required om_auth
password required om_auth

ual.remote

auth required om_krb5 user_unknown=ignore
auth optional om_auth nullok use_first_pass
account required om_auth
password required om_krb5 user_unknown=ignore
password optional om_auth

FIXED!!

Posted: Tue Dec 26, 2006 1:41 pm
by carlPjohnson
Looked over the smtpd.auth and changed it to the following and now it works!!

auth optional om_krb5 user_unknown=ignore
password required om_autred om_krb5 user_unknown=ignore
auth optional om_auth use_first_pass
account required om_auth
password required om_auth

Posted: Tue Dec 26, 2006 1:55 pm
by rtausend
i tried to make your settings but after i'm not able to log on anymore ... so it's not better for me :)

Regards Robert

.. can you tell me more about your site

Posted: Tue Dec 26, 2006 9:41 pm
by carlPjohnson
Can you tell me more about your site, are you using another directory for auth, internal users only, etc? I am guessing that the problem lies somewhere in your auth files located in /var/opt/scalix/sx/X/sys/pam.d

Not using kerberos but still have problem

Posted: Tue Jan 02, 2007 4:44 pm
by ericwagner101
How do I get this to work if I am not using LDAP or Kerberos?

Posted: Wed Jan 03, 2007 4:52 am
by florian
if you're not using any external authentication, it should work just fine by default. Do your users have passwords (non-empty), Florian.

Fixed the problem...

Posted: Wed Jan 03, 2007 4:49 pm
by ericwagner101
I had to set the swa.email.smtpServer= in swa.properties to the fully qualified host name. Not sure why, but this fixed the problem.

Posted: Fri Jan 05, 2007 7:16 am
by zolo
Heallo @all
i have a similar problem. Webmail also puts mail into the drafts-folder. I have no listening scalix-smtpd, sendmail is listening an all IPs. For me it looks like webmail is trying to do smtp-authentication with the user 'users' (see the first log lines). Where is this configurued in Scalix? Can i disable authentication? What is the password for 'users'.

Thank you very much,
Zoki

INFO: No credentials available for BASIC 'users'@www.intelego.net:80
javax.mail.AuthenticationFailedException
at javax.mail.Service.connect(Unknown Source)
at com.scalix.swa.service.MailServices.getTransport(MailServices.java:129)
at com.oddpost.server.module.SoapMail.sendMessage(SoapMail.java:1596)
at com.oddpost.server.module.SoapMail.send(SoapMail.java:942)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.oddpost.soap.SoapModule.invokeMethod(SoapModule.java:238)
at com.oddpost.soap.SoapRequestImpl.execute(SoapRequestImpl.java:139)
at com.oddpost.server.HttpRequestHandler.handleRequest(HttpRequestHandler.java:224)
at com.oddpost.server.SoapServlet.doPost(SoapServlet.java:49)
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:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.oddpost.server.filter.HttpConfFilter.doFilter(HttpConfFilter.java:174)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
05-Jan-2007 11:31:06 org.apache.catalina.core.ApplicationContext log
INFO: ip: 217.228.184.13; username: zolo; message: <SOAP-ENV:Fault><faultcode>SOAP-ENV:CLIENT.MessagingException</faultcode><faultstring>Beim Senden der Nachricht ist ein Fehler aufgetreten, bitte versuchen Sie es später noch einmal. Ein Kopie der Nachricht befindet sich im 'Entwürfe' Ordner