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
------------------------------
Original Message:
Sent: 09-03-2021 03:48 AM
From: Michael Lowry
Subject: SEND_MAIL and SMTPS
Is there any way to make the SEND_MAIL
script function send email via SMTPS?