Thanks! Your answer get straight to the ... source of things :-)
I guess the python smptlib does the job in my case.
On 25/12/18 2:36 μ.μ., Thomas Schmitt wrote:
Hi,
aprekates wrote:
But reportbug can send emails to BTS .
How does it do that ?
In principle, i'd say by the SMTP internet protocol.
man 1 reportbug talks of /usr/bin/sendmail.
I guess the logic can be inspected at
https://sources.debian.org/src/reportbug/7.5.1/reportbug/submit.py/#L202
In line 334 it starts an MTA and connects it by a pipe.
Alternatively, in line 353 it begins to talk SMTP to the host whose address
is in variable smtphost. This is done via a python class named "smtplib".
It should be possibile to distinguish the code paths used in your
local situation by the messages:
ewrite("Sending message via %s...\n", mta)
ewrite("Connecting to %s via SMTP...\n", smtphost)
Looking at
https://packages.debian.org/unstable/reportbug
it may well be that it has found one of the suggested mail transport
agents.
Have a nice day :)
Thomas