SWA sending mail.

Discuss the Scalix web client

Moderators: ScalixSupport, admin

Warlock
Posts: 11
Joined: Wed Dec 27, 2006 10:10 am

SWA sending mail.

Postby Warlock » Tue Feb 06, 2007 11:07 am

I have just upgraded to 11.0.1GA. Have noticed that if I send a mail from SWA the mail goes straight into my drafts folder and does not actually get sent. Has anyone else experienced this and if so, is there a workaround or fix?

dkelly
Scalix
Scalix
Posts: 593
Joined: Thu Mar 18, 2004 2:03 pm

Postby dkelly » Tue Feb 06, 2007 11:21 am

Please take a look at the FAQs posted at the top of each forum.

Cheers

Dave

William
Posts: 314
Joined: Fri Jun 02, 2006 8:28 am
Location: British Isles

Postby William » Fri Feb 16, 2007 5:54 am

I have a very similar problem (email does not get sent - it gets put into the drafts folder) and have read the Scalix Wiki FAQs that are linked to in the above mentioned post (viewtopic.php?t=5653), however there does not seem to be a resolution to the problem on that page.

Searching the forum turned up this thread:
viewtopic.php?t=5145 which does not resolve the issue.


Here is the error message I get.
/var/opt/scalix/ml/tomcat/logs/catalina.out

Code: Select all

16-Feb-2007 09:34:12 org.apache.catalina.core.ApplicationContext log
INFO: ip: 192.168.100.17; username: myname; 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.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)
   ... skipping the last 14 lines as irrelevant...
</debug></e:MessagingException></detail></SOAP-ENV:Fault>



also in:
/var/opt/scalix/ml/tomcat/logs/catalina.2007-02-09.log

Code: Select all

INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jre1.5.0_11/lib/i386/server:/usr/java/jre1.5.0_11/lib/i386:/usr/java/jre1.5.0_11/../lib/i386


/var/opt/scalix/ml/s/sys/pam.d/smtpd.auth

Code: Select all

auth     required om_auth
account  required om_auth


/var/opt/scalix/ml/s/sys/pam.d/ual.remote

Code: Select all

account  required om_auth
password required om_auth nullok


/var/opt/scalix/ml/s/sys/pam.d/ual.local

Code: Select all

auth     required om_auth nullok
account  required om_auth
password required om_auth nopreauth nullok

Warlock
Posts: 11
Joined: Wed Dec 27, 2006 10:10 am

SWA sending mail.

Postby Warlock » Fri Feb 16, 2007 7:44 am

Hi - please do the following and post your results for me:

lsof -i:25

lsof -i:587

William
Posts: 314
Joined: Fri Jun 02, 2006 8:28 am
Location: British Isles

Postby William » Fri Feb 16, 2007 7:55 am

Code: Select all

[11:47:12 root@mail ~]# lsof -i:25
COMMAND   PID USER   FD   TYPE DEVICE SIZE NODE NAME
sendmail 3439 root    4u  IPv4   7384       TCP *:smtp (LISTEN)
[11:47:13 root@mail ~]# lsof -i:587
[11:47:31 root@mail ~]#omstat -a
PC Monitor                    Started        NON-STOP       0
Directory Relay Server        Started        09.02.07
Notification Server           Started        09.02.07       0
Shared memory daemon          Started        NON-STOP
Notification Monitor          Started        NON-STOP
Session Monitor               Started        NON-STOP
Indexer                       Started        NON-STOP
Stats Daemon                  Started        NON-STOP
Container Access Monitor      Started        NON-STOP
Item Structure Server         Stopped        09.02.07
Database Monitor              Started        09.02.07
Licence Monitor Daemon        Started        NON-STOP
LDAP Daemon                   Started        09.02.07
Queue Manager                 Started        NON-STOP
Item Delete Daemon            Started        NON-STOP
IMAP Server Daemon            Started        09.02.07
SMTP Relay                    Partially Abor 09.02.07
Mime Browser Controller       Started        09.02.07
Event Server                  Started        09.02.07


/var/log/maillog

Code: Select all

   
Feb 16 11:53:55 mail sendmail[626]: NOQUEUE: connect from mail.mydomain.com [192.168.102.1]
Feb 16 11:53:55 mail sendmail[626]: AUTH: available mech=LOGIN PLAIN CRAM-MD5 ANONYMOUS DIGEST-MD5, allowed mech=EXTERNAL GSSAPI KERBEROS_V4 DIGEST-MD5 CRAM-MD5
Feb 16 11:53:55 mail sendmail[626]: l1GBrthP000626: Milter: no active filter
Feb 16 11:54:01 mail sendmail[626]: l1GBrthP000626: AUTH failure (DIGEST-MD5): user not found (-20) SASL(-13): user not found: no secret in database
Feb 16 11:54:01 mail sendmail[626]: l1GBrthP000626: mail.mydomain.com [192.168.102.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA



/var/logs/messages

Code: Select all

Feb 16 11:54:01 mail sendmail[626]: DIGEST-MD5 server step 1
Feb 16 11:54:01 mail sendmail[626]: DIGEST-MD5 server step 2
Feb 16 11:54:01 mail sendmail[626]: unable to open Berkeley db /etc/sasldb2: No such file or directory
Feb 16 11:54:01 mail sendmail[626]: unable to open Berkeley db /etc/sasldb2: No such file or directory
Feb 16 11:54:01 mail sendmail[626]: no secret in database


Sendmail used to handle sending and recieving before upgrade and is supposed to still do so now.

Warlock
Posts: 11
Joined: Wed Dec 27, 2006 10:10 am

SWA sending mail.

Postby Warlock » Fri Feb 16, 2007 9:02 am

Do the following for me, please:

1) Edit the /var/opt/scalix/??/s/sys/smtpd.cfg. Under the following

EXTENSIONS=AUTH,DSN,8BITMIME

add

# Uncomment the following lines to enable the Submission and LMTP listeners
SMTP=OFF
SUBMIT=ON
#LMTP=ON

Make sure the following is at the bottom of the file:

[SUBMIT]
LISTEN=<servername>: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

2) omsetsvc -a smtpd y

3) omon -w smtpd

4) omstat -s

Make sure the SMTP Relay is started

5) Edit /var/opt/scalix/??/webmail/swa.properties

Change swa.email.smtpServer to read

swa.email.smtpServer=<hostname>:587

6) /etc/init.d/scalix-tomcat stop

Wait for tomcat to shut down (ps ax | grep java won't list an instance for you

7) /etc/init.d/scalix-tomcat start

William
Posts: 314
Joined: Fri Jun 02, 2006 8:28 am
Location: British Isles

Postby William » Fri Feb 16, 2007 9:44 am

Hi Warlock, that worked like a charm, thank you very much.

jacquesvdm

Webmail emails going straight to drafts

Postby jacquesvdm » Tue Aug 14, 2007 5:19 pm

Hi Warlock,

Im having kind of the same problem as the previous user you helped. Hopefull you can help me get this one right

/var/log/mail

Code: Select all

Aug 14 23:10:05 mail sendmail[4815]: l7ELA5c6004815: mail.domain.com [192.168.0.2] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA


/var/opt/scalix/ml/tomcat/logs/catalina.out

Code: Select all

javax.mail.AuthenticationFailedException
        at javax.mail.Service.connect(Unknown Source)
        at com.scalix.swa.service.MailServices.getTransport(MailServices.java:139)
        at com.oddpost.server.module.SoapMail.sendMessage(SoapMail.java:2044)
        at com.oddpost.server.module.SoapMail.send(SoapMail.java:1381)
        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:231)
        at com.oddpost.soap.SoapRequestImpl.execute(SoapRequestImpl.java:139)
        at com.oddpost.server.HttpRequestHandler.handleRequest(HttpRequestHandler.java:231)
        at com.oddpost.server.SoapServlet.doPost(SoapServlet.java:35)
        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)


/var/opt/scalix/ml/s/sys/pam.d/smtpd.auth

Code: Select all

auth     required om_auth
account  required om_auth


/var/opt/scalix/ml/s/sys/pam.d/ual.remote

Code: Select all

account  required om_auth
password required om_auth nullok


/var/opt/scalix/ml/s/sys/pam.d/ual.local

Code: Select all

auth     required om_auth nullok
account  required om_auth
password required om_auth nopreauth nullok


lsof -i:25

Code: Select all

COMMAND   PID USER   FD   TYPE DEVICE SIZE NODE NAME
sendmail 4329 root    3u  IPv4  11072       TCP *:smtp (LISTEN)


lsof -i:587

Code: Select all

COMMAND  PID USER   FD   TYPE DEVICE SIZE NODE NAME
omsmtpd 4626 root    4u  IPv4  12036       TCP mail.domain.com:submission (LISTEN)


omstat -a

Code: Select all

PC Monitor                    Started        NON-STOP       0
Directory Relay Server        Started        23:07:39
Notification Server           Started        23:07:39       0
Shared memory daemon          Started        NON-STOP
Notification Monitor          Started        NON-STOP
Session Monitor               Started        NON-STOP
Indexer                       Started        NON-STOP
Stats Daemon                  Started        NON-STOP
Container Access Monitor      Started        NON-STOP
Item Structure Server         Stopped
Database Monitor              Started        23:07:39
Licence Monitor Daemon        Started        NON-STOP
LDAP Daemon                   Started        23:07:39
Queue Manager                 Started        NON-STOP
Item Delete Daemon            Started        NON-STOP
IMAP Server Daemon            Started        23:07:40
SMTP Relay                    Started        23:07:41
Mime Browser Controller       Started        23:07:41
Event Server                  Started        23:07:41


/var/log/messages

Code: Select all

Aug 14 23:14:18 mail sendmail[4841]: DIGEST-MD5 server step 1
Aug 14 23:14:18 mail sendmail[4841]: DIGEST-MD5 server step 2
Aug 14 23:14:18 mail sendmail[4841]: unable to open Berkeley db /etc/sasldb2: No such file or directory
Aug 14 23:14:18 mail sendmail[4841]: unable to open Berkeley db /etc/sasldb2: No such file or directory
Aug 14 23:14:18 mail sendmail[4841]: no secret in database


I have made the changes you posted in your last post to my configuration but I still have the same problem.

When I send an email from webamil, it goes straight to drafts.

Please help :)

frankobald
Posts: 10
Joined: Wed Jan 11, 2006 5:22 am
Contact:

same Problem....

Postby frankobald » Wed Sep 19, 2007 10:07 am

Hi jacquesvdm,

i've exactly the same Problem.... did you find a solution for this problem until now?

greetz
Frank

jacquesvdm

Postby jacquesvdm » Wed Sep 19, 2007 10:15 am

I did come right. I will repost my config files for you to have a look at.

:)

jacquesvdm

Postby jacquesvdm » Wed Sep 19, 2007 10:25 am

submit some of your config files so that I can compare them, make sure that your /etc/hosts file is setup correctly. This is very important.

Make sure that your servername in /var/opt/scalix/ml/s/sys/smtpd.cfg is setup correctly.

Mine looks like this:

Code: Select all

[SUBMIT]
LISTEN=mail.domain.com: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


My /var/opt/scalix/ml/webmail/swa.properties file has got the followin config set to access the server

Code: Select all

swa.email.domain=comain.com
swa.email.imapServer=mail.domain.com
swa.email.smtpServer=mail.domain.com




Also do the following to start the SMTP Relay service

Code: Select all

omsetsvc -a smtpd y


Code: Select all

omon -w smtpd


Code: Select all

omstat -a


If you can post the same config files as the previous posts that would help a bit.

Let me know if you come right. :)[/code]

gino909

Postby gino909 » Tue Jan 01, 2008 2:44 pm

Hi...
In my case I had the same error and the solution posted here works for me fine, but with another additional setting in /etc/mail/sendmail.conf (Debian)

Change there the line

QUEUE_MODE="${DAEMON_MODE}";

to

QUEUE_MODE="none";â€


Return to “Scalix Web Access”



Who is online

Users browsing this forum: No registered users and 0 guests

cron