cancel
Showing results for 
Search instead for 
Did you mean: 

Email Header Question

102020
Champ on-the-rise
Champ on-the-rise
Hey All,

ok so I've got the following in my alfresco-global (which works):

### E-mail site invitation setting ###
notification.email.siteinvite=true
mail.host=192.168.x.x
mail.port=25
mail.encoding=UTF-8
mail.from.default=abc@123.com
mail.protocol=smtp

We have an internal smtp not needed auth so that's not the question as emails do get sent out.
My quesiton is, when we receive the 'Alfresco Share: Recent Activities' email, it is showing the correct header 'from' address of abc@123.com.
However, when inviting a user to join a group (users are internal and attached to AD), the email header 'from' comes from admin@alfresco.com. How do we fix this?

We are running on a windows system. I've got a windows grep for value admin@alfresco.com and found refarance in c:\alfresco\tomcat\webapps\alfresco\web-inf\classes\alfresco\bootstrap\system.xml, but changing the value didnt change the result.
Also found reference in c:\alfresco\tomcat\webapps\alfresco\web-inf\classes\alfresco\subsystems\activitiesfeed\default\activities-feed-context.xml

Any help on this annoyance would be great.
11 REPLIES 11

afaust
Legendary Innovator
Legendary Innovator
Hello,

which user are you logging in as when you invite users to groups? If you use the default "admin" user, please be aware that the personal address of that user is set as "admin@alfresco.com" by default and used as the "from" header since it is that user that explcitly performed an action. You should always change the email address of the "admin" user after an Alfresco installation.

Regards
Axel

mrogers
Star Contributor
Star Contributor
And which version of alfresco.

On recent version you can set mail.from.enabled to false to send all email from abc@123 if that's what you want

102020
Champ on-the-rise
Champ on-the-rise
Perfect! Both answers are what I was looking for.

I do have sort of a follow-up question. It seems that all users in site X received the 'Alfresco Share: Recent Activities' email, is there any way disable this email notification - I know about the 'notifications' setting in profile, but if I disable that, does that also disable invite notifications?

afaust
Legendary Innovator
Legendary Innovator
Hello,

have a look inside your Data Dictionary => Email Templates => Activities folder of your Alfresco Repository. There you'll find the email templates for Recent Activities and can modify them for something more to your liking.

Regards
Axel

102020
Champ on-the-rise
Champ on-the-rise
Okok, thanks for that.

1 last Q, the email field for 'admin' is disabled in gui, how do you change the email? All other accounts are editable on that field, just not admin

afaust
Legendary Innovator
Legendary Innovator
Hello,

which UI and page are you using for this? When I'm logged in as "admin" in the Share UI and try to edit my user profile ( /share/page/user/admin/profile), the email field is active and can be modified.

Regards
Axel

102020
Champ on-the-rise
Champ on-the-rise
I'm on http://FQDN:8080/share/page/user/admin/profile hit 'edit profile' and email field is grayed out. I'm on Alf 4.2b also.

102020
Champ on-the-rise
Champ on-the-rise
Also in regards to the activity feed, the data dictionary site you pointed me to is to modify the template, but really I want t control the on/off functionality of this. From what I have tested, the only way really is to disable the 'notifications', but how does one do that on a global level by default?

*EDIT*
Would this be what I'm looking to change?
activities.feed.notifier.enabled=true located in > activities-jobs.properties

If so that's 1 resolve.

afaust
Legendary Innovator
Legendary Innovator
You can disable notifications globally via the ActivitiesFeed subsystem and its properties. Set "activities.feed.notifier.enabled" to false (e.g. in alfresco-global.properties) and there are no more Recent Activities for anyone in your Alfresco…