cancel
Showing results for 
Search instead for 
Did you mean: 

Help Multi-tennancy emails

valfontanette
Champ in-the-making
Champ in-the-making
Hi everyone,
I also have a multi-tennancy with my clients and I have a problem…about the outgoing email.
In my file "alfresco-global.properties" on "Alfresco\tomcat\shared\classes" I have the mail.username = name@mycompany.com and it sends the email with this email.
But for the other clients it sends the email with "admin@alfresco.com". How do I change that?

I would like it to send the email like this:
Client 1 - send emails as name@client1.com
Client 2 - send emails as name@client2.com
Client 3… and so on…

I tried to use the section Allowed senders in the file alfresco-global.properties… but didn't work.

Could anyone help me? What am I doing wrong?

Thanks a lot,
4 REPLIES 4

mrogers
Star Contributor
Star Contributor
How are you sending emails?   If you are using the mail action then the email will be sent from the "current" user.

And allowed senders controls who is allowed to send SMTP email into alfresco rather than anything to do with sending email out of Alfresco.

valfontanette
Champ in-the-making
Champ in-the-making
Hi thanks for your reply,

Do you know how can I achieve this?
How to have for each client in the multi-tennancy the client email?
Like this:

Client 1 -  send email is name@client1.com
Client 2 -  send email is name@client2.com

instead of sending emails with admin@alfresco.com

Can you help me?

valfontanette
Champ in-the-making
Champ in-the-making
I Have a multi-tennancy.
In one of those, I have created spaces and a simple workflow that when some documents are posted into the space it sends an email to the user of the space warning about new documents.

The workflow sends the email, but it is sended through: "admin@alfresco.com" and some email servers appears not to deliver it.
I have also checked the log file… and there isn't an error.

So, I think if I change the "admin@alfresco.com" for this tennancy it may work and the email servers will deliver the messages.
I said that because with gmail addresses it works fine, so I know the workflow is working fine…. it sends emails to gmail.

Any clues?
I'd appreciate how to solve that.

flefoll
Champ in-the-making
Champ in-the-making
Hi,

I know my first answer is not 100% in line with your requirements, since you are at inside a workflow execution,
And my second proposal supposes you are under Linux, and have an easy outbounding targets mapping….

1) If you use the "action":"send notification message", the email will be sent with the user that launches the action.

2) If your recipients are always @client1.com and @client2.com (or mostly), you can configure alfresco to use your local postfix instance, and playing postfix rewrite rules…
http://www.postfix.org/ADDRESS_REWRITING_README.html

From my knowledge, there is no better way today.

Regards,

Francois Lefoll