AnsweredAssumed Answered

Mail configuration - external smtp or local postfix does not work

Question asked by raphaelallner on Jul 15, 2015
Latest reply on Jul 15, 2015 by vasile.dirla
Hello Community,

I am a little bit frustrated. My Activiti System is running on a  Linux Mint 17 Qiana Server.
I am using the version 5.15.1 because I have to many processes and system enhancements that are only working with this version.

I want to move forward to a productive usage and therefore I want to use Mail Tasks. I changed the activiti-standalone-context.xml file like this:

<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
    <property name="mailServerHost" value="" />
    <property name="mailServerPort" value="578" />
    <property name="mailServerUsername" value="username" />
    <property name="mailServerPassword" value="password" />
    <property name="mailServerUseSSL" value="true" />
    <property name="mailServerUseTLS" value="true" />

With this configuration i tried my personal Mail Provider to send E-Mails via smtp.

Caused by: org.activiti.engine.ActivitiException: Could not send e-mail in execution 37501
Caused by: org.apache.commons.mail.EmailException: Sending the email to the following server failed :$
        at org.apache.commons.mail.Email.sendMimeMessage(
        at org.apache.commons.mail.Email.send(
        at org.activiti.engine.impl.bpmn.behavior.MailActivityBehavior.execute(
        … 104 more
Caused by: javax.mail.MessagingException: Could not connect to SMTP host:, port: 465;
  nested exception is: Verbindungsaufbau abgelehnt <- engl. Connection declined
        at com.sun.mail.smtp.SMTPTransport.openServer(
        at com.sun.mail.smtp.SMTPTransport.protocolConnect(
        at javax.mail.Service.connect(
        at javax.mail.Service.connect(
        at javax.mail.Service.connect(
        at javax.mail.Transport.send0(
        at javax.mail.Transport.send(
        at org.apache.commons.mail.Email.sendMimeMessage(
        … 106 more
Caused by: Verbindungsaufbau abgelehnt <- engl. Connection declined
        at Method)
        at com.sun.mail.util.SocketFetcher.createSocket(
        at com.sun.mail.util.SocketFetcher.getSocket(
        at com.sun.mail.smtp.SMTPTransport.openServer(
        … 113 more

Is it my Provider or is it something else?

I also tried to use Postfix but this does not work either. Here is the Postfix log:

Jul 15 14:42:25 ->hostnameXXX<- postfix/smtp[30726]: CDAEF24E84: to=<->emailadressXXX<>, relay=none, delay=63569, delays=63569/0.07/0/0, dsn=4.4.1, status=deferred (connect to[]:25: Connection refused)

Maybe someone can help me. Thank you!