cygport announce fails unable to find mailserver

Brian Inglis Brian.Inglis@SystematicSw.ab.ca
Sat Oct 24 20:53:50 GMT 2020


Hi folks,

Do any/some/many of you use cygport ...cygport announce to generate your update
announcements, and does it work successfully?

It has never worked for me, but Thunderbird, git send-email, mailx, mail, email,
s-nail, my own scripts, with similar configs, and telnet, work okay, as shown at
the bottom of this email and the log.

Any ideas why cygport ... announce using perl libnet/Net::SMTP would have
problems, how to diagnose or debug, and fix?

Relevant code follows +/_pkg_announce /usr/share/cygport/lib/pkg_upload.cygpart

Attached log has irrelevant output and escape sequences removed, commands added,
and remainder sanitized; summary is:

$ cygport --debug tzcode.cygport announce |& tee cygport-announce-no-mailserver.log
...
>>> Preparing announcement tzcode-2020d-1.x86_64
+ __pkg_announce
...
+ /usr/bin/vim /tmp/cygwin-announce-tzcode-2020d-1.oKxmkN
Vim: Warning: Output is not to a terminal
ZZ
+ perl /dev/fd/62
++ cat
Sending announcement of tzcode-2020d-1 via smtp
No mailserver at smtp at /dev/fd/62 line 16.
+ error 'Sending announcement failed, mbox is
/tmp/cygwin-announce-tzcode-2020d-1.oKxmkN'
+ case $? in
+ local errorcode=9
+ echo -e '*** ERROR: Sending announcement failed, mbox is
/tmp/cygwin-announce-tzcode-2020d-1.oKxmkN'
*** ERROR: Sending announcement failed, mbox is
/tmp/cygwin-announce-tzcode-2020d-1.oKxmkN
+ exit 9
$ telnet smtp smtp |& tee -a cygport-announce-no-mailserver.log
Trying ...
Connected to smtp.
Escape character is '^]'.
220 mo22.dcs.int.inet ...ca ESMTP server ready
250-mo22.dcs.int.inet hello [...], pleased to meet you
250-HELP
250-SIZE 29360128
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-STARTTLS
250 OK
221 2.0.0 mo22.dcs.int.inet ...ca closing connection
Connection closed by foreign host.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]
-------------- next part --------------
$ cygport --debug tzcode.cygport announce |& tee cygport-announce-no-mailserver.log
...
+ for conf in "${HOME}/.config/cygport.conf" "${HOME}/.cygport/cygport.conf" "${HOME}/.cygport.conf" "${HOME}/.cygportrc" "${_privsysconfdir}/cygport.conf"
+ '[' -e /home/bwi/.cygport.conf ']'
+ source /home/bwi/.cygport.conf
++ DISTDIR=/var/cache/setup/local
++ SSH_KEY=/home/bwi/.ssh/...
++ SMTP_SENDER='Brian Inglis <Brian.Inglis@SystematicSW.ab.ca>'
++ SMTP_SERVER=smtp
...
+ case ${argv[${arg_n}]} in
+ __stage 'Preparing announcement'
+ echo -e '\e[1;39m>>> Preparing announcement tzcode-2020d-1.x86_64\e[0;0m'
>>> Preparing announcement tzcode-2020d-1.x86_64
+ __pkg_announce
++ mktemp -t cygwin-announce-tzcode-2020d-1.XXXXXX
+ local msg=/tmp/cygwin-announce-tzcode-2020d-1.oKxmkN
++ date +@%s
+ local msgat=@1603569647
+ local -i n=0
+ cat
++ date '+%a %b %d %H:%M:%S %Y' --date=@1603569647
++ date -R --date=@1603569647
++ date +%Y%m%d%H%M%S.3202 --date=@1603569647
++ echo Brian Inglis '<Brian.Inglis@SystematicSW.ab.ca>'
++ sed 's|.*<\(.*\)>.*|\1|'
+ ((  n < pkg_count  ))
+ echo '* tzcode-2020d-1'
+ let n+=1
+ ((  n < pkg_count  ))
+ cat
+ /usr/bin/vim /tmp/cygwin-announce-tzcode-2020d-1.oKxmkN
Vim: Warning: Output is not to a terminal
From cygwin-announce-tzcode-2020d-1 Sat Oct 24 14:00:47 2020
From: Brian Inglis <Brian.Inglis@SystematicSW.ab.ca>
To: cygwin-announce@cygwin.com
Date: Sat, 24 Oct 2020 14:00:47 -0600
Message-Id: <20201024140047.3202-1-Brian.Inglis@SystematicSW.ab.ca>
Subject: tzcode 2020d-1

The following packages have been uploaded to the Cygwin distribution:

* tzcode-2020d-1

The Time Zone Database (often called tz, tzdb, or zoneinfo) contains
data that represents the history of local time for many locations around
the world, and supports conversion of UTC time to local time at those
locations to allow display of those local times. It is updated
periodically to reflect changes made by political bodies to daylight
saving (summer time) rules, UTC offsets, and time zone boundaries.
This package provides the tzselect, zic, zdump utilities.
ZZ
+ perl /dev/fd/62
++ cat
Sending announcement of tzcode-2020d-1 via smtp
No mailserver at smtp at /dev/fd/62 line 16.
+ error 'Sending announcement failed, mbox is /tmp/cygwin-announce-tzcode-2020d-1.oKxmkN'
+ case $? in
+ local errorcode=9
+ echo -e '*** ERROR: Sending announcement failed, mbox is /tmp/cygwin-announce-tzcode-2020d-1.oKxmkN'
*** ERROR: Sending announcement failed, mbox is /tmp/cygwin-announce-tzcode-2020d-1.oKxmkN
+ exit 9
$ telnet smtp smtp |& tee -a cygport-announce-no-mailserver.log
Trying ...
Connected to smtp.
Escape character is '^]'.
220 mo22.dcs.int.inet ...ca ESMTP server ready
250-mo22.dcs.int.inet hello [...], pleased to meet you
250-HELP
250-SIZE 29360128
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-STARTTLS
250 OK
221 2.0.0 mo22.dcs.int.inet ...ca closing connection
Connection closed by foreign host.


More information about the Cygwin-apps mailing list