I'm trying to set up cygwin /usr/bin/email to send the output of various cron jobs to email.

I previously had this set up and working on Windows 10, and with another hosting provider (WHM/Cpanel on CentOS with exim).  Now I am running Windows 11 (24H2), with a fresh Cygwin install CYGWIN_NT-10.0-26100 3.5.5-1.x86_64.  The SMTP server is with a new hosting provider - InMotion Hosting, a vps running AlmaLinux v8.10.0 STANDARD virtuozzo cpanel/whm 124.0.21 with exim email server.

I'm getting a timeout connecting to the smtp server using a test command-line call to /usr/bin/email (names have been changed to protect the guilty):

sh-5.2$ echo "hello" | /usr/bin/email -V -n "Cygwin cron is running" -subject "cygwin cron is running" t...@mydomain.com
Connecting to server mail.mydomain.com on port 587
Greeting the SMTP server...
email: FATAL: Smtp error: Timeout(10) while trying to read from SMTP server

email.conf:

SMTP_SERVER = 'mail.mydomain.com'
SMTP_PORT='587'
USE_TLS = 'true'
SMTP_AUTH = 'LOGIN'
SMTP_AUTH_USER = 'myu...@mydomain.com'
SMTP_AUTH_PASS = 'mypassword'

I've also tried using port 465, get

Init connection...
email: FATAL: Smtp error: Timeout(10) while trying to read from SMTP server

The notes on /usr/bin/email mention the TLS is somewhat primitive, I'm wondering if there's an issue with connecting to the later version of exim?  Or maybe I'm missing - or messing - something in the configuration either cygwin or server side?

Thanks in advance,

Paul McKinley



--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to