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 = [email protected] and it sends the email with this email. But for the other clients it sends the email with "[email protected]". How do I change that?
I would like it to send the email like this: Client 1 - send emails as [email protected] Client 2 - send emails as [email protected] Client 3… and so on…
I tried to use the section Allowed senders in the file alfresco-global.properties… but didn't work.
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: "[email protected]" 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 "[email protected]" 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.
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