cancel
Showing results for 
Search instead for 
Did you mean: 

SMTP Outbound Config Alfresco 4.0

mathias
Champ in-the-making
Champ in-the-making
hi there,

after reading and searching through wiki&forum, I have to ask the "crowd"…

1.) which is the correct file and path for a simple SMTP-outbound email configuration?
(starting from C:/alfresco/… on a standard installation)
–> following different instructions I changed different files, but without any effect.

2.) is there a file to be CREATED or CHANGED?

3.) how is the email-subsystem restarted to test the changes? or is there an other way, to test the settings?

thank you!
14 REPLIES 14

jonash
Champ in-the-making
Champ in-the-making
Hi Mathias,

Outbound SMTP is configured in $TOMCAT_HOME/shared/classes/alfresco-global.properties. Here's an example:


#
# Outbound Email Configuration
#————-
mail.host=smtp.example.com
mail.port=25
#mail.username=
#mail.password=
mail.encoding=UTF-8
mail.from.default=alfresco@alfresco.org
mail.smtp.auth=false

bisana
Champ on-the-rise
Champ on-the-rise
how is the email-subsystem restarted to test the changes? or is there an other way, to test the settings?
It gets its new paramter when you restart the service of Alfresco

mathias
Champ in-the-making
Champ in-the-making
Thank you!

I reinstalled Alfresco on two machines - Win7 and Ubuntu,
and added this with my values to the global-properties-file: (nothing else was changed on the standard installation)
# Sample Gmail settings
mail.host=smtp.gmail.com
mail.port=465
mail.username=user@gmail.com
mail.password=password

# New Properties
mail.protocol=smtps
mail.smtps.starttls.enable=true
mail.smtps.auth=true

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

after restarting the service, an test email is sent.

I set up a site, and invited new members to join: 3 different email-adresses.
–> popout says "invitations sent, 0 errors"

BUT none these emails are delivered to the recipient!
(Tried it with an alternative outbound-email-account as well: Test ok, but no invitations sent)


Any ideas where I could find the error?

bisana
Champ on-the-rise
Champ on-the-rise
Hi
mail.testmessage.to=mail@mydomain.com
mail.testmessage.subject=Outbound SMTP
mail.testmessage.text=The Outbound SMTP email subsystem is working.
When you restart the service, if you are getting a mail  with the subject Outbound SMTP and message as The Outbound SMTP email subsystem is working. , then your email notification should be going on

mail.host=smtp.gmail.com
mail.port=465
mail.username=user@gmail.com
Does this user has email sending permission
Thanks
Joseph John

mathias
Champ in-the-making
Champ in-the-making
Thank you Joseph,

Do you mean, I have to set up a user in alfresco, who uses the email-adress "user@gmail.com" and who has the right to send emails?

bisana
Champ on-the-rise
Champ on-the-rise
user in alfresco, who uses the email-adress "user@gmail.com" and who has the right to send emails?
No you dont need to create the user in DM
What I want to say is that that user which you specify in th configuration file should have permission at mail server to send mail

mathias
Champ in-the-making
Champ in-the-making
the "user@gmail.com" is a standard gmail-account which works fine with thunderbird (sending and receiving).

furthermore "user@gmail.com" is the adress of my local alfresco-administrator, who is member of the alfresco-group "EMAIL_CONTRIBUTORS".

thank you

bisana
Champ on-the-rise
Champ on-the-rise
mail.testmessage.to=mail@mydomain.com
    mail.testmessage.subject=Outbound SMTP
    mail.testmessage.text=The Outbound SMTP email subsystem is working.


When you restart the service, if you are getting a mail with the subject Outbound SMTP and message as The Outbound SMTP email subsystem is working. , then your email notification should be going on

Are you getting email notification in mail@mydomain.com
As I had said, if you get the above result, your email will be working

mathias
Champ in-the-making
Champ in-the-making
yes, test-email works "Outbound SMTP"

but
user1@domain1.com
user2@domain2.com  etc.
don't get the emails sent by alfresco…


An other Idea:
Is it enough to invite an external user, or do I have to set up an user in the admin-console first,
and then invite him/her to become a site member?
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.