Re: tracker does not want to send mail

Ed Trumbull <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.user
Message-ID <PH7PR12MB5656AA4FCDFB033CE36D2E7384449@PH7PR12MB5656.namprd12.prod.outlook.com>
I get logs in /var/log/mail.log when I send mail from the command line.

I do not get logs from /var/log/mail.log when I attempt to send mail from roundup.

I installed alpine on the system I'm working with. It can send mail with no problems, though I'm not convinced that told us anything - the alpine documents say

"For UNIX _Alpine_, if neither _smtp-server_ or _sendmail-path_ is set,
   the default sendmail program is invoked with the "-bs -odb -oem" flags,
   and the message is sent using the SMTP protocol. "

None of the specified options are set, so I presume that Alpine is calling sendmail with those arguments. Fwiw, sendmail comes from postfix.



________________________________
From: [email protected] <[email protected]> on behalf of John P. Rouillard <[email protected]>
Sent: Monday, September 12, 2022 9:42 AM
To: Ed Trumbull <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: [Roundup-users] tracker does not want to send mail

In message <PH7PR12MB5656949BB77EFD72C96E61FB84449@PH7PR12MB5656.namprd12.prod.
outlook.com>,
Ed Trumbull writes:
>When I telnet to port 25, I get:
>
>roundup@admin-00:~$ telnet localhost 25
>Trying 127.0.0.1...
>Connected to localhost.
>Escape character is '^]'.
>220 admin-00.dnc.as2inc.com ESMTP Postfix (Ubuntu)
>quit
>221 2.0.0 Bye
>Connection closed by foreign host.
>
>which looks like what I should expect.

Yup that looks fine. If Roundup is sending email, there should be a
postfix log entry when it connects to the server. There should be one
for your telnet as well.

I haven't set up postfix in many years, but I seem to remember that it
is possible to reject an non-local email address received via smtp
(although I could be confusing it with another MTA). IIRC it was to
stop postfix from being an open mail relay. I don't know if it was the
default or not though. You could still send non-local email using the
sendmail stub program or the submit interface. I don't expect that to
be an issue but I bring up since it was easy to diagnose from the logs
if you knew what you were looking for.

-- rouilj

>________________________________
>From: [email protected] <[email protected]> on behalf of John P. Rouillard <[email protected]>
>Sent: Saturday, September 10, 2022 1:16 PM
>To: Ed Trumbull <[email protected]>
>Cc: [email protected] <[email protected]>
>Subject: Re: [Roundup-users] tracker does not want to send mail
>
>Hi Ed:
>
>In message <PH7PR12MB5656F6808B595CB3EF16E35484439@PH7PR12MB5656.namprd12.prod.
>outlook.com>,
>Ed Trumbull writes:
>>I changed the setting to localhost. I still don't get any mail out.
>>Worse, there's nothing in the /var/log/mail.log file or the
>>/var/log/roundup.log file (where I have roundup logging) to show
>>what's not happening. Nothing but silence.
>
>I'm sorry you are having issues with this. Do you have a file
>called:
>
>   nosyreaction.py
>
>in your tracker's detector directory? If it is not there, find the
>tracker template directory (usually one of:
>
>    /usr/share/roundup/templates
>    <python lib directory>/site-packages/<prefix>/share/roundup/templates
>    <python lib directory>/site-packages/share/roundup/templates
>    <python lib directory>/dist-packages/usr/share/roundup/templates
>
>where prefix is /usr or /usr/local etc. then copy
>classic/detectors/nosyreaction.py into your tracker's detector
>directory.
>
>
>You can also use find (1) or locate (if it is set up) to find
>nosyreaction.py. This is much more difficult than it should be. I have
>opened https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fissues.roundup-tracker.org%2Fissue2551233&amp;data=05%7C01%7CEdT%40as2inc.com%7Ca61fb48872c94f0d5edd08da94c493e6%7C5287874e6a4b4ad48e3faf2630161633%7C0%7C0%7C637985869270199516%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=oesPtdXfwow4iiGMNSQuvR%2FbmvLH%2BFcngoi4yjkbV5g%3D&amp;reserved=0 to try to take
>the guess work out of finding tracker template locations.
>
>A little background, unlike other issue tracking systems, the Roundup
>core doesn't pre-define a field (like nosy) that magically sends
>emails.  The work of sending mails is done by a reactor which is one
>of the two types of detectors. In all the supplied tracker templates
>(except minimal) the nosyreaction.py file is the link between the
>tracker and the mail system.
>
>The settings in config.ini configure the mail functions in the core
>that are called by the reactor as well as basic functions of
>nosyreaction.py.
>
>When you run ./demo or roundup-demo, it does not include the
>nosyreaction.py as sending mail requires more setup than required for a
>demo. If you convert a tracker created using demo mode, you need to
>add back nosyreaction.py to get email capability.
>
>If you have a nosyreaction.py in your tracker's detectors directory,
>check to make sure that postfix is listening on port 25 ('netstat -an'
>or 'ss -tl'). If not you may need to add:
>
>Note that mail programs like mail/mailx or elm do not use port
>25. Instead they run a sendmail stub provided by the postfix
>package. Roundup does not use this method and needs a mail server
>listening on port 25 (or the port configured in config.ini).
>
>IIRC pine/alpine do/can use port 25 to send mail. So you could try
>sending mail with one of those to see if it works. Try this test as
>well:
>
>Run: telnet localhost 25
>     Trying 127.0.0.1...
>     Connected to localhost.
>     Escape character is '^]'.
>     220 uland ESMTP Postfix (Ubuntu)
>     quit
>     221 2.0.0 Bye
>
>(the 25 above should be the port value from config.ini). You type
>"quit" to exit as shown above. Does this work?
>
>After you first posted, I took a look at the mailer code.
>Unfortunately, the mailer subsystem doesn't do much logging.  To debug
>further I would have to supply some instrumented code to you.
>
>Hopefully this helps you move forward. Thanks for trying Roundup and
>for your questions. They are helping us find out where the rough edges
>are.
>
>Have a great week.
>
>--
>                                -- rouilj
>John Rouillard
>===========================================================================
>My employers don't acknowledge my existence much less my opinions.
>

_______________________________________________
Roundup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/roundup-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.