cancel
Showing results for 
Search instead for 
Did you mean: 

Starting a Workflow: Send Email Notification not working !

diassynthesis
Champ on-the-rise
Champ on-the-rise

Only the admin user (or the user with the credentials in the alfresco-global.properties) can send an email notification.

Any other user Starting a workflow, can't send an email notification.

Error from the log:  

ERROR [action.executer.MailActionExecuter] [mailAsyncAction2] Failed to send email to [djamel] : org.springframework.mail.MailSendException: Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 554 5.7.8 User [admin@***********.com] not authorized to send on behalf of <ms.bara@*************.com>; message exceptions (1) are:Failed message 1: com.sun.mail.smtp.SMTPSendFailedException: 554 5.7.8 User [admin@********.com] not authorized to send on behalf of <ms.bara@***********.com>

imageimage

Med Said BARA
1 ACCEPTED ANSWER

SOLVED  : mail.from.enabled=false

I've also added a TXT and SPF record to our domain (and i really don't know if it is important or not !!!).

Med Said BARA

View answer in original post

14 REPLIES 14

cristinamr
World-Class Innovator
World-Class Innovator

Hi! Could you try to specify these fields?

  • mail.from.default
  • mail.from.enabled

Check here for more details.

Try it and let us know the result.

Cheers.

--
VenziaIT: helping companies since 2005! Our ECM products: AQuA & Seidoc

msbara
Champ in-the-making
Champ in-the-making

mail.from.default=admin@***********.com

mail.from.enabled=true

msbara
Champ in-the-making
Champ in-the-making

The email configuration is configured according to the https://docs.alfresco.com/content-services/6.2/config/email/  and is working perfectly (for Inbound and outbound), the only problem is that "How can any user when starting a workflow get the Send email Notification working.

Is there a possibility to add the email account credentials (username & password) for the other users in the config file, cause all the emails will be send from the account specified in the config (mail.from.default)(in my case the admin account: admin@*****.com), and this rise the related error "Can't send on behalf of ....". If not, is there a way to authorize the admin account to send emails "on behalf or send as" of another user.

msbara
Champ in-the-making
Champ in-the-making

According to this document https://datatracker.ietf.org/doc/html/rfc4468 

this error: 

554 5.7.8 URL resolution requires trust relationship

      The submit server does not have a trust relationship with the IMAP
      server specified in the URL argument to BURL.