public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* cygport announce fails unable to find mailserver
@ 2020-10-24 20:53 Brian Inglis
  2020-10-24 21:42 ` Ken Brown
  0 siblings, 1 reply; 7+ messages in thread
From: Brian Inglis @ 2020-10-24 20:53 UTC (permalink / raw)
  To: cygwin-apps

[-- Attachment #1: Type: text/plain, Size: 2003 bytes --]

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.]

[-- Attachment #2: cygport-announce-no-mailserver.log --]
[-- Type: text/plain, Size: 2933 bytes --]

$ 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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-10-25 16:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-24 20:53 cygport announce fails unable to find mailserver Brian Inglis
2020-10-24 21:42 ` Ken Brown
2020-10-24 22:21   ` Brian Inglis
2020-10-24 23:19     ` Brian Inglis
2020-10-24 23:50       ` Jon Turney
2020-10-25  4:37         ` Brian Inglis
2020-10-25 16:18           ` Brian Inglis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).