Make email credentials configuration more flexible
Description
Environment
Activity
Carlos Ruiz April 24, 2013 at 3:18 AMEdited
https://bitbucket.org/idempiere/idempiere/commits/116adee
Implemented this way:
_______________________
MSysConfig key configurable per tenant:
MAIL_SEND_CREDENTIALS
U : User (this is the default and how the system behaves actually)
C : Client
S : System
_______________________
WHEN A NORMAL USER IS SENDING AN EMAIL:
MAIL_SEND_CREDENTIALS = User
from: AD_User.EMail
credentials: AD_User.EMailUser + EMailUserPW
host: AD_Client.SMTPHost + IsSmtpAuthorization
MAIL_SEND_CREDENTIALS = Client
from: AD_User.EMail
credentials: AD_Client.RequestUser + RequestUserPW (using AD_Client own tenant record)
host: AD_Client.SMTPHost + IsSmtpAuthorization (using AD_Client own tenant record)
MAIL_SEND_CREDENTIALS = System
from: AD_User.EMail
credentials: AD_Client.RequestUser + RequestUserPW (using AD_Client System record)
host: AD_Client.SMTPHost + IsSmtpAuthorization (using AD_Client System record)
_______________________
WHEN A TENANT PROCESSOR IS SENDING AN EMAIL (i.e. accounting processor, request processor, etc):
MAIL_SEND_CREDENTIALS = User or Client (use the same)
from: AD_Client.RequestEMail
credentials: AD_Client.RequestUser + RequestUserPW
host: AD_Client.SMTPHost + IsSmtpAuthorization
MAIL_SEND_CREDENTIALS = System
from: AD_Client.RequestEMail
credentials: AD_Client.RequestUser + RequestUserPW (using AD_Client System record)
host: AD_Client.SMTPHost + IsSmtpAuthorization (using AD_Client System record)
Actually you need to define the email host on client and the credentials on user.
This proposal is to implement a mechanism to allow setting the outgoing credentials on client (used for all users) - or even in system (used for all tenants).