Automic Workload Automation

 View Only
  • 1.  SEND_MAIL and SMTPS

    Posted Sep 03, 2021 03:49 AM
    Is there any way to make the SEND_MAIL script function send email via SMTPS?


  • 2.  RE: SEND_MAIL and SMTPS

    Posted Sep 06, 2021 12:24 PM
    Hi Michael,

    currently there is no direct interface. But you can try this workaround: https://community.broadcom.com/communities/community-home/digestviewer/viewthread?MID=783937

    regards,
    Peter


  • 3.  RE: SEND_MAIL and SMTPS

    Posted Sep 07, 2021 02:26 AM
    Edited by John Birck Sep 07, 2021 02:35 AM
    Hello Michael,

    Peter has already sent a solution for Windows. We worked around the port 25 limitation with a local Postfix-mailagent installation on our AWA-servers. Would be great if Broadcom redesigned the mail interface of AWA, wouldn't it?

    Solution e.g. on a Redhat Linux:
    yum -y install postfix​
    vim /etc/postfix/main.cf
    ==
    append_dot_mydomain = no
    biff = no
    cyrus_destination_recipient_limit = 1
    inet_interfaces = loopback-only
    mailbox_size_limit = 0
    maildrop_destination_recipient_limit = 1
    message_size_limit = 40960000
    mydestination = myserver.my.domain.ch, myserver, localhost.localdomain, localhost
    mydomain = my.domain.ch
    myhostname = myserver.my.domain.ch
    myorigin = $myhostname
    relayhost = [mailserver.my.domain.ch]:587
    smtp_sasl_auth_enable = no
    smtp_tls_CAfile = /etc/pki/tls/cert.pem
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
    smtp_use_tls = yes
    smtpd_tls_CAfile = /etc/pki/tls/cert.pem
    smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
    smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
    smtpd_use_tls = yes
    ==

    To adapt:
    • myserver.my.domain.ch = FQDN of your AWA-server (yes, the example company is located in Switzerland CH)
    • mailserver.my.domain.ch = FQDN of your mail-server
    • Port = in this example we use 587 for TLS to connect to an Exchange server
    • Certs if needed (/etc/pki/tls/cert.pem)
    • Adapt mail-size limit, 40960000 = 5MB
    Add postfix to systemservices, start on boot

    In AWA you need to configure the local mail agent in UC_CLIENT_SETTINGS, preferably in client 0
    • SMTP_FROM_ADDR = scheduler.myserver@my.domain.ch (everything before the @ is your free choice but mail-relays do (/should/) only send mails for the domain they are responsible for)
    • SMTP_MAX_ATTACHMENT_SIZE = 50000 (AWA-max - if someday the mail-admins allow mails >5MB were are already prepared...)
    • SMTP_SERVER = localhost
    Please make sure that "localhost" can be resolved! Otherwise you will run into quite interesting errors.​
    I hope that I did not forget anything.
    Kind regards

    John

    ------------------------------
    Technical Project Manager
    Avectris IT
    Switzerland
    ------------------------------



  • 4.  RE: SEND_MAIL and SMTPS

    Posted Sep 13, 2021 06:33 AM
    Edited by Michael A. Lowry Sep 13, 2021 06:47 AM
    I added an idea for this:

    SEND_MAIL script function: add support for SMTPS

    If you like the idea, please vote for it.


  • 5.  RE: SEND_MAIL and SMTPS

    Posted Jun 24, 2022 12:18 PM
    I like the idea of being able to configure the tool to a different mail/smtp port, not the idea of installing and managing and 'add-on' due to the limitation of the application.
    I am not sure why this has not been fixed for as long as the issue has existed and as many customers have asked or inquired about the issue.


  • 6.  RE: SEND_MAIL and SMTPS

    Broadcom Employee
    Posted Jun 27, 2022 02:22 PM
    In the meantime, SMTPS support for outbound email has been put on the Automic roadmap as priority item.

    ------------------------------
    Kaj Wierda
    Sr. Product Line Manager | Automation

    Broadcom Software
    ------------------------------