SWA - Connection Problem during sent mail

Discuss the Scalix web client

Moderators: ScalixSupport, admin

gbl
Posts: 11
Joined: Sun Jul 13, 2008 6:33 am

SWA - Connection Problem during sent mail

Postby gbl » Thu Nov 05, 2009 9:50 am

In SWA we cannot sent any eMail. In Outlook / Thunderbird it works very well.

sincerly
Guenter
You do not have the required permissions to view the files attached to this post.

PrisonMind
Posts: 308
Joined: Thu Jul 10, 2008 5:00 am
Location: Adua

Re: SWA - Connection Problem during sent mail

Postby PrisonMind » Fri Nov 06, 2009 4:32 am

hi,

please poste your swa.properties!
i think that you use the wrong smtp server!

Code: Select all

grep --regex '^[^#]' /var/opt/scalix/??/webmail/swa.properties

gbl
Posts: 11
Joined: Sun Jul 13, 2008 6:33 am

Re: SWA - Connection Problem during sent mail

Postby gbl » Fri Nov 06, 2009 7:47 am

swa.version=11.0
swa.email.domain=CUSTOMER.at
swa.email.imapServer=mail1.CUSTOMER.local
swa.email.smtpServer=localhost:25
swa.email.userNameIncludesDomain=false
swa.system.hasCalendar=true
swa.system.hasRulesWizard=true
swa.system.hasOutOfOffice=true
swa.system.hasAutoRefresh=true
swa.system.hasAutoLogin=true
swa.system.hasChangePassword=true
swa.system.maxAttachmentUploadKilobytes=50240
swa.system.minCheckMailMinutes=3
swa.system.addtlEditorFonts=
swa.system.convertNbspToSpace=true
swa.platform.url=http://mail1.CUSTOMER.local/api
swa.platform.url.format=
swa.platform.enabled=true
swa.platform.httpclient.maxConnectionsPerHost=15
swa.platform.httpclient.maxTotalConnections=30
swa.search.maxresults=100
swa.mailstore.staleTime=900
swa.mailstore.imap.reuseFolder=false
swa.settings.rulesWizardURL=/Scalix/rw
swa.settings.homeDir=/tmp
swa.settings.charset=windows-1252
swa.map.urlschema=http://maps.google.com/maps?q=%ADDRESS
swa.user.refreshFolderList=
swa.user.useRichText=true
swa.user.msgCompositionFontFamily=times new roman, new york, times, serif
swa.user.autoSpellCheck=false
swa.user.msgCompositionFontSize=3
swa.user.dirSearchOrder=system,personal
swa.user.includeMessageOnReply=true
swa.user.autoAcknowledgeReadReceipts=true
swa.user.showBcc=false
swa.user.signatureText=
swa.user.signatureActiveForNewMessages=true
swa.user.signatureActiveForReplies=true
swa.user.signatureActiveForForwards=true
swa.user.foldersPaneVisible=true
swa.user.calendarsPaneVisible=true
swa.user.messagePaneVisible=true
swa.user.eventsPaneVisible=true
swa.user.miniCalendarPaneVisible=true
swa.user.modePaneVisible=true
swa.user.calendarSetsPaneVisible=false
swa.user.mailCheckInterval=10
swa.user.newMailSound=
swa.user.locale=de_DE
swa.user.preferredDateTimeFormat=1
swa.user.dateSeparatorChar=/
swa.user.timeSeparatorChar=:
swa.user.workWeek=1,2,3,4,5
swa.user.workDayStart=480
swa.user.workDayEnd=1020
swa.user.weekStart=0
swa.user.upcomingAppointmentsRange=7
swa.user.defaultCalendarView=0
swa.user.freeBusyPublishRange=2
swa.user.freeBusyPublishInterval=5
swa.user.hideEmailAddresses=false
swa.user.blockRemoteImages=false
swa.allusers.allowFromReplyToModification=false
swa.allusers.forceReadReceipts=true
swa.sensitivity.prompt=personal,company-confidential,private
swa.sensitivity.block=
swa.ldap.searchAll=true
swa.ldap.maxResults=250
swa.soap.soapRequestTimeout=60
swa.soap.numRetriesOnTimeout=0
swa.ldap.1.type=system
swa.ldap.1.server=mail1.CUSTOMER.local
swa.ldap.1.port=389
swa.ldap.1.baseDN=o=scalix
swa.ldap.1.displayName.resourceID=addressbooksearch_title_system
swa.ldap.1.displayName.resourceLabel=System Directory
swa.ldap.1.authType=simple
swa.ldap.1.bindDN=mail=%u
swa.ldap.1.filter=(&(!(omExCdaDirectory=*))(|(&(cn=%s*)(mail=*))(&(sn=%s*)(mail=*))(&(gn=%s*)(mail=*))(mail=%s*)(&(omalias=%s*)(mail=*))))
swa.ldap.1.addressSearchLimit=100
swa.ldap.1.search.1.header=true
swa.ldap.1.search.1.type=name
swa.ldap.1.search.1.name.resourceID=addressbooksearch_label_name
swa.ldap.1.search.1.name.resourceLabel=Name
swa.ldap.1.search.1.dirAttribute=omcn
swa.ldap.1.search.2.header=true
swa.ldap.1.search.2.type=email
swa.ldap.1.search.2.name.resourceID=addressbooksearch_label_email
swa.ldap.1.search.2.name.resourceLabel=Email Address
swa.ldap.1.search.2.dirAttribute=rfc822Mailbox
swa.ldap.1.search.3.header=true
swa.ldap.1.search.3.type=
swa.ldap.1.search.3.name.resourceID=addressbooksearch_label_phone
swa.ldap.1.search.3.name.resourceLabel=Phone
swa.ldap.1.search.3.dirAttribute=telephoneNumber
swa.ldap.1.search.4.header=
swa.ldap.1.search.4.type=
swa.ldap.1.search.4.name.resourceID=
swa.ldap.1.search.4.name.resourceLabel=Fax Phone
swa.ldap.1.search.4.dirAttribute=facsimileTelephoneNumber
swa.ldap.1.search.5.header=
swa.ldap.1.search.5.type=
swa.ldap.1.search.5.name.resourceID=
swa.ldap.1.search.5.name.resourceLabel=Mobile Phone
swa.ldap.1.search.5.dirAttribute=mobileTelephoneNumber
swa.ldap.1.search.6.header=
swa.ldap.1.search.6.type=
swa.ldap.1.search.6.name.resourceID=
swa.ldap.1.search.6.name.resourceLabel=Pager Phone
swa.ldap.1.search.6.dirAttribute=pagerTelephoneNumber
swa.ldap.2.type=personal
swa.ldap.2.server=mail1.CUSTOMER.local
swa.ldap.2.port=389
swa.ldap.2.baseDN=o=MyContacts
swa.ldap.2.displayName.resourceID=addressbooksearch_title_personal
swa.ldap.2.displayName.resourceLabel=Personal Contacts
swa.ldap.2.authType=simple
swa.ldap.2.bindDN=rfc822mailbox=%u
swa.ldap.2.filter=(&(!(omExCdaDirectory=*))(|(&(cn=%s*)(|(mail=*)(304=4)))(&(sn=%s*)(mail=*))(&(gn=%s*)(mail=*))(mail=%s*)(&(omalias=%s*)(mail=*))))
swa.ldap.2.timeout=100000
swa.themes.default.id=scalix-default
swa.themes.available=true
swa.debug.listOfUsersToLogImap=
swa.debug.listOfUsersToLogSmtp=
swa.debug.listOfDebuggingUsers=
swa.debug.defaultClientLogLevel=3
swa.debug.defaultClientLogDestination=0


sincerly
Guenter

PrisonMind
Posts: 308
Joined: Thu Jul 10, 2008 5:00 am
Location: Adua

Re: SWA - Connection Problem during sent mail

Postby PrisonMind » Fri Nov 06, 2009 8:21 am

swa.email.smtpServer=localhost:25


is the swa server running on the same server like the scalix other service?
or did you use 2 different server for this?

sendmail should be listening on localhost port 25:
# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.

#lsof -i :25

gbl
Posts: 11
Joined: Sun Jul 13, 2008 6:33 am

Re: SWA - Connection Problem during sent mail

Postby gbl » Mon Nov 09, 2009 4:05 am

[root@mail1 ~]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 mail.CUSTOMER.at ESMTP


[root@mail1 ~]# lsof -i :25
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
omsmtpd 2609 root 4u IPv4 6834 TCP mail1.CUSTOMER.local:smtp (LISTEN)
sendmail 19269 root 4u IPv4 21525014 TCP localhost.localdomain:smtp (LISTEN)

sincerly
Guenter

PrisonMind
Posts: 308
Joined: Thu Jul 10, 2008 5:00 am
Location: Adua

Re: SWA - Connection Problem during sent mail

Postby PrisonMind » Mon Nov 09, 2009 7:38 am

What does

Code: Select all

    omstat -a

show for the SMTP Relay?


Code: Select all

lsof -i:587


Try running

Code: Select all

omsendin


try to restart

Code: Select all

#omoff smtpd
#service sendmail restart
#omon smtpd


Code: Select all

cat /var/opt/scalix/??/s/sys/smtpd.cfg


try to send a email
and check the logs
/var/log/mail
/var/log/messages
/var/opt/scalix/??/tomcat/logs/catalina.out


make sure that your /etc/hosts file is setup correctly. This is very important!!

gbl
Posts: 11
Joined: Sun Jul 13, 2008 6:33 am

Re: SWA - Connection Problem during sent mail

Postby gbl » Mon Nov 09, 2009 8:49 am

PrisonMind wrote:What does

Code: Select all

    omstat -a

show for the SMTP Relay?

PC Monitor Started NON-STOP 0
Directory Relay Server Started 10.22.09
Notification Server Started 10.22.09 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 10.22.09
Licence Monitor Daemon Started NON-STOP
LDAP Daemon Started 10.22.09
Queue Manager Started NON-STOP
Item Delete Daemon Started NON-STOP
IMAP Server Daemon Started 10.22.09
SMTP Relay Started 10.22.09
Mime Browser Controller Started 10.22.09
Event Server Started 10.22.09

Code: Select all

lsof -i:587


COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
omsmtpd 2616 root 4u IPv4 6814 TCP localhost.localdomain:submission (LISTEN)
omsmtpd 2616 root 5u IPv4 6815 TCP mail1.CUSTOMER.local:submission (LISTEN)


Try running

Code: Select all

omsendin


try to restart

Code: Select all

#omoff smtpd
#service sendmail restart
#omon smtpd


Code: Select all

cat /var/opt/scalix/??/s/sys/smtpd.cfg

###############################################################################
# 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
# 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 220 on the connection
# greeting line some tokens can be used:
# %F - FQDN, %P - protocol, %N program name,
# %V - version, %D date
# LISTEN Comma separated host:port to listen to eg.
# LISTEN=mail.example.com:25,10.100.100.1:smtp
# MAX_MESSAGE_SIZE
# The maximum message size allowed in bytes. Oversized message
# will be rejected with a 552 error. Use 0 for anysize.
# SMTPMILTER Main switch to enable/disable milter support in the Relay using
# TRUE/FALSE. Once enabled, use INPUT_MAIL_FILTER to define
# the actual milter to be used for filtering.
# Note: avoid TRUE if no milter is active to improve performance.
# INPUT_MAIL_FILTER
# Filter message using the specified milter before accepting it.
# Syntax=('<name>', 'S=<socket>, F=<fail>, T=<timeout>') where:
# <name> is milter name
# <socket> is sock name (local or unix socket only)
# <fail> is action if fail to connect milter, default is to
# skip this milter, specify T or R to tempfail message
# <timeout> is 'C:<t>;S:<t>;R:<t>;E:<t> where <t> is timeout
# for Connect, Send, Receive and End-of-message.
# e.g. =('abc', S='local:/tmp/abc, F=T, T=C:5m;S:9s;R:9s;E:5m')
# Note: upto 8 milters can be called in sequence with the
# resultant message content from one milter fed into the next,
# some milter features and protocols may not be supported,
# e.g. quarantine, add extended rcpt and set symbol list.
# MILTER_IGNORE_IP_SENDER
# Sender IP address to ignore when searching for real sender info.
# Specify one literal or wildcarded value per option line, e.g.
# '172.16.0.33' or '172.16.0.*'. The real sender is found when
# it's IP address does not match any entry in the ignore list.
# Note: upto 99 such option lines can be specified.
# MILTER_IGNORE_IP_HEADER
# Format to sscanf() all message headers for real sender info.
# Syntax='<header> %s [%s [%s [%s [%s]]]]' where '%s' are the
# format directives to extract the IP address string from the
# last field - see sscanf() C man page for more details.
# Specify one format specification per option line, e.g.
# 'Received: %s %s %s' if the IP address is in the 3rd word.
# Note: upto 99 such option lines can be specified.
# MAX_CLIENTS The maximum number of client connections allowed per Relay
# (sub)process. This may result in timeout if set too high.
# Default is 6, i.e. upto 6 clients per (sub)process.
# MAX_SUBPROCS The maximum number of Relay subprocesses allowed to run in
# addition to the main process to handle client connections
# on demand. This may result in rejection if set too low.
# Default is 15, i.e. upto 15 subprocesses + 1 main process.
#
###############################################################################


EXTENSIONS=AUTH,DSN,8BITMIME

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

###############################################################################
# Catch-all recipients
# ####################
#
# Catch-all recipients are for catching email sent to unknown users, instead
# of non-delivering the email. More than one CATCH line can be used.
#
# CATCH PATTERN RECIPIENT
#
# PATTERN can be:
# user* - any unknown address starting with user
# @domain.com - any unknown address in domain.com
# user*@domain.com - any unknown user starting with user in domain.com
# RECIPIENT
# this is the recipient email address to redirect the email to. It can
# be local or remote, but is subject to any relay rules if remote.
#
# 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
#
# DNSBL Patterns - These can be used by the SUBMIT EVENT to use DNS black
# list systems (See http://en.wikipedia.org/wiki/DNSBL )
# - DNSBL,host,reply eg DNSBL,bl.spamcop.net,ALL
#
###############################################################################

EXTENSIONS=AUTH,DSN,8BITMIME
#SMTP=OFF
SMTP=ON
SUBMIT=ON
AUTH_SUCCESS accept ALL

# unten weiter ...
#SMTPFILTER=FALSE


DEBUG_LOG=TRUE



GREETING=Mailserver mail.CUSTOMER.at %P


# NB Authenticated RELAYs are always allowed
RELAY accept 127.0.0.1
RELAY accept 192.168.1.5
RELAY accept 192.168.200.99
RELAY accept .CUSTOMER.local
RELAY accept .CUSTOMER.at
RELAY Log_Reject ALL

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

# set maximum message size allowed (default unlimited)
#MAX_MESSAGE_SIZE=0

# master switch to enable milter support (default off)
SMTPMILTER=FALSE

# list of milters to call sequentially (default none)
#INPUT_MAIL_FILTER=('CTmilter', 'S=local:~/temp/CTmilter_socket, F=T, T=C:300s;S:10s;R:10s;E:300s')

# list of addresses to ignore for real sender info (default off)
#MILTER_IGNORE_IP_SENDER=<ip>

# list of formats to sscanf() message headers for real sender info
# format to scan 'Received: from domain (host [ip]) ...'
#MILTER_IGNORE_IP_HEADER=Received: %s %s %s %s
# format to scan 'Received: from domain ([ip]) ...'
#MILTER_IGNORE_IP_HEADER=Received: %s %s %s
# format to scan 'Received: from [ip] ...'
#MILTER_IGNORE_IP_HEADER=Received: %s %s

# 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,mail1.CUSTOMER.local:587
#,192.168.1.5,192.168.200.99
# 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





try to send a email
and check the logs
/var/log/mail
/var/log/messages
/var/opt/scalix/??/tomcat/logs/catalina.out


javax.mail.AuthenticationFailedException
at javax.mail.Service.connect(Service.java:306)
at com.scalix.swa.service.MailServices.getTransport(MailServices.java:171)
at com.oddpost.server.module.SoapMail.sendMessage(SoapMail.java:2500)
at com.oddpost.server.module.SoapMail.send(SoapMail.java:1845)
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:219)
at com.oddpost.soap.SoapRequestImpl.execute(SoapRequestImpl.java:145)
at com.oddpost.server.HttpRequestHandler.handleRequest(HttpRequestHandler.java:216)
at com.oddpost.server.SoapServlet.doPost(SoapServlet.java:44)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:70)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.oddpost.server.filter.HttpConfFilter.doFilter(HttpConfFilter.java:181)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.springframework.web.filter.AbstractRequestLoggingFilter.doFilterInternal(AbstractRequestLoggingFilter.java:133)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Unknown Source)

make sure that your /etc/hosts file is setup correctly. This is very important!!

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6


192.168.200.99 mail1.CUSTOMER.local mail1
192.168.200.99 mail.CUSTOMER.at mail1


Return to “Scalix Web Access”



Who is online

Users browsing this forum: No registered users and 1 guest