cancel
Showing results for 
Search instead for 
Did you mean: 

[Alfresco 5.0.a] Can't send invitation email but can send the test SMTP mail

dong_pt
Champ in-the-making
Champ in-the-making
Dear all,

I tried to follow the setting guide on wiki to set the mail configuration is as below:


### E-mail site invitation setting ###
notification.email.siteinvite=true

# Outbound email configuration
mail.host=mail.mydomain.com
mail.port=25
mail.username=none-reply@mydomain.com
mail.password=mypassword
mail.protocol=smtp
mail.smtp.auth=true
mail.from.default=none-reply@mydomain.com
mail.smtp.timeout=30000
mail.smtp.starttls.enable=false
mail.smtp.debug=false

mail.testmessage.send=true
mail.testmessage.to=dong.pt@mydomain.com
mail.testmessage.subject=Outbound SMTP
mail.testmessage.text=The Outbound SMTP email subsystem is working.

email.inbound.enabled=false

imap.server.enabled=false


I can receive the testing email when server is starting up to dong.pt@mydomain.com but I can't receive the invitation message when I try to invite to the same email address. The error log is as below:


2014-08-17 05:19:54,152  ERROR [action.executer.MailActionExecuter] [http-bio-8085-exec-1] Failed to send email to dong.pt@mydomain.com
org.springframework.mail.MailSendException: Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 501 5.7.1 <admin@alfresco.com>… Permission denied
;
  nested exception is:
   com.sun.mail.smtp.SMTPSenderFailedException: 501 5.7.1 <admin@alfresco.com>… Permission denied
; message exception details (1) are:
Failed message 1:
com.sun.mail.smtp.SMTPSendFailedException: 501 5.7.1 <admin@alfresco.com>… Permission denied
;
  nested exception is:
   com.sun.mail.smtp.SMTPSenderFailedException: 501 5.7.1 <admin@alfresco.com>… Permission denied

   at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2202)
   at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1693)
   at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1194)
   at org.alfresco.repo.mail.AlfrescoJavaMailSender$PooledTransportWrapper.sendMessage(AlfrescoJavaMailSender.java:165)
   at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:416)
….


Please help me to solve this issue.
3 REPLIES 3

dong_pt
Champ in-the-making
Champ in-the-making
Honestly I tried some ways but still don't know how to make the part of log file appears in my post Smiley Sad

mrogers
Star Contributor
Star Contributor
Your email server (mail.mydomain.com) is probably not allowing mail to be sent from a different account although its not reported that error clearly.

So its a permissions thing on your email server - not alfresco.

a) you should probably connect with a real account for username/password.      Connecting as "none-reply" is bonkers!
b) you may need to set mail.from.enabled = false on alfresco if you can't change the config of mail.mydomain.com

dong_pt
Champ in-the-making
Champ in-the-making
Hi mrogers,

Thanks for your reply to a fresh guy with Alfresco Community like meSmiley Happy All my above email credentials are existing and accessible. I think the main questions here are:

- why Alfresco Community can send the test message but can't send the invitation message to the same account?
- What side raised "Permission deny" error - Alfresco Community or my email server?

Please help.