cancel
Showing results for 
Search instead for 
Did you mean: 

Exchange integration w/ Alfresco 4 community

linecrest
Champ in-the-making
Champ in-the-making
FULL DISCLOSURE: I am not a network admin or developer but am trying to get Alfresco Community edition working to prove its usefulness to be able to justify spending funds on Alfresco One.

We currently have MS Active Directory working with Alfresco, but not Exchange. My question is how/what to enter for mail.username and mail.password in the global properties config file SMTP settings when setting up the SMTP properties to connect to an Exchange server? Do we have to “hard code” the user name and password in by using an Exchange service account, e.g., alfresco-admin? If a password for an account does need to be stored, does Alfresco Community have the capability to store it in an encrypted file to keep the Information Security folks happy and our passwords safe?

Or, preferably, is it possible to set mail.username and mail.password equal to a variable that points Alfresco to the user name and password of the currently logged in user (authenticated via Active Directory) for the purposes of sending notification emails as part of a workflow or invitation to join a site.

Thanks, and I apologize if my gross lack of networking/AD/Exchange knowledge has caused me to ask questions that don’t make alot of sense! 🙂
4 REPLIES 4

afaust
Legendary Innovator
Legendary Innovator
Hello,

the SMTP integration with Exchange is just for sending out system-generated emails. It typically is not user-specific. It can be unauthenticated or use a system account to authenticate. It never uses any credentials from the end users and as such does not need to store it in any way. Even notification mails as part of a workflow are sent either unauthenticated or using a system account - even if they may be in the name of the current user.

For all SMTP integrations I have done with Exchange, I never had to set mail.username and mail.password.

Regards
Axel

linecrest
Champ in-the-making
Champ in-the-making
Thanks! So I need not enter anything for the config file entries below?

mail.host=smtp.gmail.com
mail.port=465
mail.username=user@gmail.com
mail.password=password
mail.protocol=smtps
mail.smtps.starttls.enable=true
mail.smtps.auth=true

Is there something else I need to set to make the email of invitations and workflows function?

Thanks!

kaynezhang
World-Class Innovator
World-Class Innovator
No,you still need to set these properties,you can set username/password to a system account.
you don't need to set other else

dlaxtn22
Champ in-the-making
Champ in-the-making
Here is a copy of my working config hope this helps.

### Email site invitation setting ###
notification.email.siteinvite=true
mail.host=<internal ip of exchange server>
mail.port=25
mail.encoding=UTF-8
mail.from.default=alfresco@mydomain.com
mail.from.enabled=false
mail.protocol=smtp
mail.username=<mydomain user>
mail.password=<my domain passwd>

The above config works fine for me the only part I ended up having to check on was to allow internal relay from the ip address of the alfresco server in the exchange settings.
One more thing where mail.host is I specified my exchange server internal ip address