Re: How can reportbug sends an email witthout an MTA installed ?
- Date: Tue, 25 Dec 2018 18:29:47 +0200
- From: aprekates <aprekates@xxxxxxxxxx>
- Subject: Re: How can reportbug sends an email witthout an MTA installed ?
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:
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
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)
it may well be that it has found one of the suggested mail transport
Have a nice day :)