Reconfiguring Emails

This topic describes how to reconfigure the email sending mechanism and the Approval by Email feature.

Reconfiguring Send Email

To reconfigure the email sending mechanism, modify the following files:

  • The SMTP configuration is defined in the file sam\resources\spring\mail\mail.xml

    Note: By default, SMTP authentication is disabled.
  • Values of this configuration can be modified in the file applicationcontainer_internal\conf\mail.properties

    Following items are available for modification,

    mail.smtp.hostname=SMTP_host_URL

    mail.smtp.port=SMTP_server_port_number

    mail.username=email_id_for_SMTP_auth

    mail.password=password_of_email_id

    mail.noreply=noreply@sam.com

    mail.mailto=email_id_of_inbox_that_will_receive_approval_emails

Reconfiguring Approval Email

To reconfigure the Approval by Email feature

  • The configuration for IMAP settings are stored in the file emailapprover\resources\spring\context\context-integration.xml

    Setting can be found under the section <mail:inbound-channel-adapter id="imapAdapter" …

  • The values for these settings can be modified in applicationcontainer_internal\conf\email.properties

    The following items are available for modification:

    email.id=email_id_of_inbox_that_will_receive_approval_emails

    email.pwd=encrypted_password

    email.folder=inbox

    email.uri=server_name:port_number

    email.samURL=http://server_name:port_number

    email.samUserName=email_id_of_SAM_user_needed_for_approval_actions_via_API_calls

    email.samPassword= encrypted_password

    To update the passwords, use the following URL to get encrypted password,

    http://server_name:port_number/emailapprover/encrypt/new_password