cancel
Showing results for 
Search instead for 
Did you mean: 

forced SMTP authorization. how to?

konstsaf
Champ in-the-making
Champ in-the-making
SMTP relay required authorization to send out messages and not required to deliver local mail.
Alfresco (3.4.d) do not perform authorization process in message sending process. In result, the local messages delivered successfully but sending messages out from domain are not working with error:
550 Relaying denied (some@email) authorization required

Authorization type is PLAIN. I have checked it manually (by telnet on 25 port )

I have in my alfresco-global-properties following settings
mail.smtp.port=25
mail.smtp.auth=true (tried required - without success)
mail.smtp.starttls.enable=false

How to make forced SMTP authorization?

Best regards,
Konstantin
1 REPLY 1

sellerone
Champ in-the-making
Champ in-the-making
Hi,

im facing exactly the same problem.

On our server we need PLAIN auth on port 587 startls NO SSL so ive configured the properties like this:

#SMTP SERVER
mail.host=10.10.11.7
mail.port=587
mail.username=docs@ourdomain
mail.password=whateverpass
mail.protocol=smtp
mail.smtps.auth=true
mail.smtps.starttls.enable=true
mail.from.default=docs@ourdomain
mail.encoding=UTF-8

But this seems not to be working.

Ive found a post that sayd to edit this file :

/opt/alfresco-3.4.d/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/email/OutboundSMTP/outboundSMTP-context.xml

Changing:

        <props>
            <prop key="mail.smtps.auth">${mail.smtps.auth}</prop>
            <prop key="mail.smtps.starttls.enable">${mail.smtps.starttls.enable}</prop>
        </props>

With:

        <props>
            <prop key="mail.smtp.auth">${mail.smtps.auth}</prop>
            <prop key="mail.smtp.starttls.enable">${mail.smtps.starttls.enable}</prop>
        </props>

With those edit the error of autentication seems to be disappeared but now the error ive got is this:

11:31:00,533 User:admin ERROR [action.executer.MailActionExecuter] Failed to send email to a.iannucci@ourdomain
org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Can't send command to SMTP host;
  nested exception is:

And on mail server side log seems that no connection is performed.

Any idea?

Thanks