As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
### SMTP Settings ### mail.host=smtp.XXX.com mail.port=25 mail.encoding=UTF-8 mail.username=anonymous mail.password= mail.from.default=default@default.com mail.protocol=smtp mail.smtp.auth=false
root@srv-net2:~# uname -a Linux srv-net2 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
root@srv-net2:~# ls /opt alfresco-5.0.a
### E-mail site invitation setting ### notification.email.siteinvite=true ### Outbound email configuration mail.host=127.0.0.1 mail.port=25 mail.from.default=alfresco@XXXX.com mail.smtp.auth=false
root@srv-net2:~# telnet 127.0.0.1 25 Trying 127.0.0.1… Connected to 127.0.0.1. Escape character is '^]'. 220 srv-net2.XXXX.com ESMTP Sendmail 8.14.4/8.14.4/Debian-4.1ubuntu1; Thu, 17 Jul 2014 16:05:02 +0400; (No UCE/UBE) logging access from: localhost(OK)- localhost [127.0.0.1] HELO srv-net2 250 srv-net2.XXXX.com Hello localhost [127.0.0.1], pleased to meet you MAIL FROM: alfresco@XXXX.com 250 2.1.0 alfresco@XXXX.com… Sender ok RCPT TO: p.petrov@XXXX.com 250 2.1.5 p.petrov@XXXX.com… Recipient ok DATA 354 Enter mail, end with "." on a line by itself test . 250 2.0.0 s6HC52qi004768 Message accepted for delivery QUIT 221 2.0.0 srv-net2.XXXX.com closing connection Connection closed by foreign host
16:03:57,531 ERROR [org.alfresco.repo.action.executer.MailActionExecuter] [mailAsyncAction1] Failed to send email to [p.petrov] org.springframework.mail.MailAuthenticationException: Authentication failed; nested exception is javax.mail.AuthenticationFailedException: 535 5.7.0 authentication failed at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:392) at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:340) at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:336) at org.alfresco.repo.action.executer.MailActionExecuter.sendEmail(MailActionExecuter.java:953) at org.alfresco.repo.action.executer.MailActionExecuter.executeImpl(MailActionExecuter.java:493) at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:265) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.alfresco.repo.management.subsystems.SubsystemProxyFactory$1.invoke(SubsystemProxyFactory.java:72) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at com.sun.proxy.$Proxy309.execute(Unknown Source) at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:839) at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:739) at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1$1.execute(AsynchronousActionExecutionQueueImpl.java:428) at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:454) at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:323) at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1.doWork(AsynchronousActionExecutionQueueImpl.java:437) at org.alfresco.repo.tenant.TenantUtil.runAsWork(TenantUtil.java:119) at org.alfresco.repo.tenant.TenantUtil.runAsTenant(TenantUtil.java:88) at org.alfresco.repo.tenant.TenantUtil$1.doWork(TenantUtil.java:62) at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:548) at org.alfresco.repo.tenant.TenantUtil.runAsUserTenant(TenantUtil.java:58) at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper.run(AsynchronousActionExecutionQueueImpl.java:440) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: javax.mail.AuthenticationFailedException: 535 5.7.0 authentication failed at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:892) at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:814) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:728) at javax.mail.Service.connect(Service.java:364) at org.alfresco.repo.mail.AlfrescoJavaMailSender$TransportFactory.makeObject(AlfrescoJavaMailSender.java:71) at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1220) at org.alfresco.repo.mail.AlfrescoJavaMailSender$PooledTransportWrapper.protocolConnect(AlfrescoJavaMailSender.java:205) at javax.mail.Service.connect(Service.java:364) at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:389) … 28 more
<beans> <!– –> <!– MAIL SERVICE –> <!– –> <import resource="classpath:alfresco/subsystems/email/OutboundSMTP/mail-template-services-context.xml"/> <bean id="mailService" class="org.alfresco.repo.mail.AlfrescoJavaMailSender"> <property name="host"> <value>${mail.host}</value> </property> <property name="port"> <value>${mail.port}</value> </property> <property name="protocol"> <value>${mail.protocol}</value> </property> <!– <property name="username"> <value>${mail.username}</value> </property> <property name="password"> <value>${mail.password}</value> </property> –> <property name="username"> <value></value> </property> <property name="password"> <value></value> </property> <property name="defaultEncoding"> <value>${mail.encoding}</value> </property> <property name="javaMailProperties"> <props> <!– <prop key="mail.smtp.auth">${mail.smtp.auth}</prop> –> <prop key="mail.smtp.auth">false</prop> <prop key="mail.smtp.debug">${mail.smtp.debug}</prop> <prop key="mail.smtp.timeout">${mail.smtp.timeout}</prop> <prop key="mail.smtp.starttls.enable">${mail.smtp.starttls.enable}</prop> <!– <prop key="mail.smtps.auth">${mail.smtps.auth}</prop> –> <prop key="mail.smtps.auth">false</prop> <prop key="mail.smtps.starttls.enable">${mail.smtps.starttls.enable}</prop> </props> </property> <property name="maxActive" value="${mail.transports.maxActive}"/> <property name="maxIdle" value="${mail.transports.maxIdle}"/> <property name="maxWait" value="${mail.tranports.maxWait}"/> <property name="minEvictableIdleTime" value="${mail.tranports.minEvictableIdleTime}"/> <property name="timeBetweenEvictionRuns" value="${mail.tranports.timeBetweenEvictionRuns}"/> </bean> <bean id="mail" class="org.alfresco.repo.action.executer.MailActionExecuter" parent="action-executer"> <property name="queueName" value="outboundMail"/> <property name="mailService"> <ref bean="mailService"></ref> </property> <property name="templateService"> <ref bean="mailTemplateService"></ref> </property> <property name="personService"> <ref bean="personService"></ref> </property> <property name="authenticationService"> <ref bean="authenticationService"></ref> </property> <property name="nodeService"> <ref bean="nodeService"></ref> </property> <property name="tenantService"> <ref bean="tenantService"></ref> </property> <property name="authorityService"> <ref bean="authorityService"></ref> </property> <property name="preferenceService"> <ref bean="preferenceService"></ref> </property> <property name="serviceRegistry"> <ref bean="ServiceRegistry"></ref> </property> <property name="imageResolver" ref="defaultImageResolver" /> <property name="headerEncoding"> <value>${mail.header}</value> </property> <property name="validateAddresses"> <value>${mail.validate.addresses}</value> </property> <property name="fromAddress"> <value>${mail.from.default}</value> </property> <property name="fromEnabled"> <value>${mail.from.enabled}</value> </property> <property name="sysAdminParams"> <ref bean="sysAdminParams"></ref> </property> <property name="sendTestMessage"> <value>${mail.testmessage.send}</value> </property> <property name="testMessageTo"> <value>${mail.testmessage.to}</value> </property> <property name="testMessageSubject"> <value>${mail.testmessage.subject}</value> </property> <property name="testMessageText"> <value>${mail.testmessage.text}</value> </property> <!– For dev/test only - emails sent to test email, irrespective of intended recipient –> <property name="testModeRecipient" value="${dev.email.recipient.address}"/> <!– For dev/test only - if true, emails are not actually sent –> <property name="testMode" value="${dev.email.not.sent}"/> </bean> <!– Put analytics actions on a dedicated asynchronous queue to ensure that they will not block any other ongoing asynchronous events in the system. –> <bean id="mailAsyncThreadPool" class="org.alfresco.util.ThreadPoolExecutorFactoryBean"> <property name="poolName"> <value>mailAsyncAction</value> </property> <property name="corePoolSize"> <value>${mail.service.corePoolSize}</value> </property> <property name="maximumPoolSize"> <value>${mail.service.maximumPoolSize}</value> </property> </bean> <bean id="mailAsynchronousActionExecutionQueue" class="org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl" init-method="init"> <property name="actionServiceImpl" ref="actionService"/> <property name="threadPoolExecutor"> <ref bean="mailAsyncThreadPool"/> </property> <property name="transactionService"> <ref bean="transactionService"/> </property> <property name="policyComponent"> <ref bean="policyComponent"/> </property> <property name="id" value="outboundMail"/> </bean> <bean id="monitor" class="org.alfresco.repo.action.executer.MailActionExecuterMonitor" > <property name="mailActionExecuter"> <ref bean="mail"></ref> </property> </bean> </beans>