Unwanted Trac Notifications

33 views
Skip to first unread message

Patty Cottrill

unread,
Mar 10, 2021, 12:46:52 PM3/10/21
to trac-...@googlegroups.com
Hello,
 
I have been experiencing something very strange.
 
I’m getting email notifications on tickets that I should not be getting.
 
Below are the specifics:
  • I am not:
  • Owner
  • Reporter
  • Updater (current or previous)
  • My email address is not in any recipient field:
  • To
  • CC
  • BCC
  • Trac.ini does not contain my email address in Always notify
  • The email headers in these notifications do not contain my email address
 
I have debugging turned on and I can’t find anything in the logs.
What could be generating these emails?
Where else should I look?
 
-- Patty
 
 
 

RjOllos

unread,
Mar 10, 2021, 12:48:35 PM3/10/21
to Trac Users
Are you using Trac 1.2 or later? If yes, please send a screen capture of /prefs/notification

Ryan 

Patty Cottrill

unread,
Mar 10, 2021, 1:42:35 PM3/10/21
to Trac Users

We are using Trac 1.2.3.

 

Here is the screenshot of Preferences/Notifications.

As I mentioned, I’m not owner, reporter, previous updater or updater on any of these tickets, in fact I have never touched these tickets.

 

 

Below is from the trac.log of the most recent notification on ticket #9219:

 

2021-03-10 12:46:26,816 Trac[perm] DEBUG: DefaultPermissionPolicy allows mfxxx performing TICKET_VIEW on <Resource u'ticket:9219'>

2021-03-10 12:46:26,827 Trac[main] DEBUG: Negotiated locale: None -> en_US

2021-03-10 12:46:26,895 Trac[perm] DEBUG: DefaultPermissionPolicy allows mfxxx performing TICKET_MODIFY on <Resource u'ticket:9219'>

2021-03-10 12:46:26,896 Trac[perm] DEBUG: DefaultPermissionPolicy allows mfxxx performing TICKET_CHGPROP on <Resource u'ticket:9219'>

2021-03-10 12:46:26,896 Trac[perm] DEBUG: DefaultPermissionPolicy allows mfxxx  performing TICKET_APPEND on <Resource u'ticket:9219'>

2021-03-10 12:46:26,906 Trac[api] DEBUG: Adding (None [0]) for 'always' on rule (AlwaysEmailSubscriber) for (email)

2021-03-10 12:46:26,906 Trac[api] DEBUG: Adding (None [0]) for 'always' on rule (AlwaysEmailSubscriber) for (email)

2021-03-10 12:46:26,906 Trac[api] DEBUG: Adding (iyxxx [1]) for 'always' on rule (TicketOwnerSubscriber) for (email)

2021-03-10 12:46:26,907 Trac[api] DEBUG: Adding (ltxxx [1]) for 'always' on rule (TicketReporterSubscriber) for (email)

2021-03-10 12:46:26,907 Trac[api] DEBUG: Adding (mfxxx [1]) for 'always' on rule (TicketOwnerSubscriber) for (email)

2021-03-10 12:46:26,908 Trac[mail] DEBUG: EmailDistributor has found the following formats capable of handling 'email' of 'ticket': text/plain

2021-03-10 12:46:26,908 Trac[mail] DEBUG: EmailDistributor found the address 'lt...@imci.net' for 'ltxxx [1]' via SessionEmailResolver

2021-03-10 12:46:26,946 Trac[mail] DEBUG: EmailDistributor is sending event as 'text/plain' to: op...@imci.net, lt...@imci.net, op...@imci.net, gw...@rxxx.com, mx...@imci.net

2021-03-10 12:46:26,954 Trac[mail] INFO: Sending notification through SMTP at imci-net.mail.protection.outlook.com:25 to ['op...@imci.net', 'lt...@imci.net', 'op...@imci.net', 'gw...@rxxx.com', 'mf...@imci.net']

2021-03-10 12:46:28,509 Trac[main] DEBUG: Dispatching <RequestWithSession "POST '/ticket/9219'">

2021-03-10 12:46:28,510 Trac[main] DEBUG: Chosen handler is <Component trac.ticket.web_ui.TicketModule>

 

As you can see from the log, my email address is not listed anywhere.

The op email addresses are configured in the always cc setting in trac.ini.

Lt is the reporter; iy (gw...@rxxx.com) is the owner and mf is the updater.

 

I also checked /var/log/mail.log; nothing in there either.

In fact the mail log does not log the trac email notifications.

 

 

-- Patty

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/f6c6141c-3911-47d3-8ab8-da7f47648d3dn%40googlegroups.com.

RjOllos

unread,
Mar 11, 2021, 3:16:05 PM3/11/21
to Trac Users
The "Sending notification through SMTP" is pretty definitive in terms of what email is being sent. The only thing I can think of is that you have mail that is being relayed to your account by the server.

Ryan

Patty Cottrill

unread,
Mar 12, 2021, 6:19:35 PM3/12/21
to trac-...@googlegroups.com

Thanks for getting back to me.

 

I have reviewed the sendmail configuration files and there is nothing that would explain adding my email address to the notifications.

When I use sendmail outside of trac, I do not have this problem; emails are only sent to the email addresses in the recipient fields (To, cc).

The other project on this same ubuntu server also does not have this problem; emails are only sent to the email addresses in the recipient fields (To, cc).

 

I have also checked our Exchange online configuration; again nothing to explain my email address being added.

The problem seems to be with this one specific project only.

I don’t know where else to look in the configuration files for this project.

 

I’m at a loss and getting frustrated with all these emails from Trac tickets for which I have nothing to do.

 

Is there anyway to see the actual command that trac is using to send emails?

Both the syslog and mail log show the mail commands for emails going outside of trac, but not for the emails from within trac.

 

The email sender in the trac.ini is set to SmtpEmailSender; if not using sendmail, what else would trac be using?

 

Below are the mail related packages installed on the ubuntu server:

 

dpkg -l | grep smtp

ii  libnet-smtp-ssl-perl                  1.03-1                                     all          Perl module providing SSL support to Net::SMTP

 

dpkg -l | grep mail

ii  bsd-mailx                             8.1.2-0.20160123cvs-2                      amd64        simple mail user agent

ii  libcompfaceg1                         1:1.5.2-5                                  amd64        Compress/decompress images for mailheaders, libc6 runtime

ii  libemail-valid-perl                   1.198-1                                    all          Perl module for checking the validity of Internet email addresses

ii  libmailtools-perl                     2.13-1                                     all          Manipulate email in perl programs

ii  mime-support                          3.59ubuntu1                                all          MIME files 'mime.types' & 'mailcap', and support programs

ii  procmail                              3.22-25ubuntu0.16.04.1                     amd64        Versatile e-mail processor

ii  sendmail                              8.15.2-3                                   all          powerful, efficient, and scalable Mail Transport Agent (metapackage)

ii  sendmail-base                         8.15.2-3                                   all          powerful, efficient, and scalable Mail Transport Agent (arch independent files)

ii  sendmail-bin                          8.15.2-3                                   amd64        powerful, efficient, and scalable Mail Transport Agent

ii  sendmail-cf                           8.15.2-3                                   all          powerful, efficient, and scalable Mail Transport Agent (config macros)

ii  sylpheed                              3.5.0~rc2-1ubuntu1                         amd64        Light weight e-mail client with GTK+

ii  sylpheed-doc                          20140827-1                                 all          Light weight e-mail client with GTK+ (documentation)

 

-- Patty

 

From: trac-...@googlegroups.com <trac-...@googlegroups.com> On Behalf Of RjOllos
Sent: Thursday, March 11, 2021 3:16 PM
To: Trac Users <trac-...@googlegroups.com>

--

You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+...@googlegroups.com.

Peter Suter

unread,
Mar 13, 2021, 6:26:27 AM3/13/21
to trac-...@googlegroups.com

SmtpEmailSender connects directly to the configured SMTP server. According to your logs that is "Sending notification through SMTP at imci-net.mail.protection.outlook.com:25". There is no command line.
https://trac.edgewall.org/browser/tags/trac-1.2.3/trac/notification/mail.py?marks=471,476-477,496-497,522#L471

You could switch to SendmailEmailSender to use sendmail instead. The command line will then be logged.
https://trac.edgewall.org/browser/tags/trac-1.2.3/trac/notification/mail.py?marks=539,557#L539

But if the email headers and trac.ini and the Trac log do not contain your email address anywhere at all, Trac is likely not responsible.
It could be your mail client, your Exchange Online Protection, mail server, forward rules, ...

https://docs.microsoft.com/en-us/exchange/troubleshoot/outlook-issues/emails-sent-to-wrong-account-if-has-many-accounts
https://docs.microsoft.com/en-us/exchange/monitoring/trace-an-email-message/run-a-message-trace-and-view-results

Patty Cottrill

unread,
Mar 15, 2021, 9:04:02 PM3/15/21
to trac-...@googlegroups.com

Thanks for the feedback.

 

I have already checked the forwarding rules and connector settings on Exchange online; there is nothing there that would explain this behavior.

I have confirmed the email client is not an issue either.

 

I did change the email sender on the problem project from SmtpEmailSender to SendmailEmailSender.

Someone opened a new ticket after the change and I did not get a notification, so hopefully that means the problem is resolved.

 

What I don’t understand is why changing the sender would make a difference.

Wouldn’t both senders be using the same configuration file for sending emails?

 

I also have a question about the mail.py file; does each project have it’s own mail.py file?

 

-- Patty

RjOllos

unread,
Mar 16, 2021, 5:40:26 PM3/16/21
to Trac Users
On Monday, March 15, 2021 at 6:04:02 PM UTC-7 pcottrill wrote:

Thanks for the feedback.

 

I have already checked the forwarding rules and connector settings on Exchange online; there is nothing there that would explain this behavior.

I have confirmed the email client is not an issue either.

 

I did change the email sender on the problem project from SmtpEmailSender to SendmailEmailSender.

Someone opened a new ticket after the change and I did not get a notification, so hopefully that means the problem is resolved.

 

What I don’t understand is why changing the sender would make a difference.

Wouldn’t both senders be using the same configuration file for sending emails?

 

I also have a question about the mail.py file; does each project have it’s own mail.py file?

 

-- Patty


If you are referring to mail.py in the Trac source, you likely only have a single Trac installation that is shared for your projects.

Did you inspect the email headers, as Peter suggested, to see if it contains your email address?


Patty Cottrill

unread,
Mar 16, 2021, 5:55:22 PM3/16/21
to trac-...@googlegroups.com

Apparently, I spoke too soon.

Changing the email sender from SmtpEmailSender to SendmailEmailSender did NOT resolve the problem.

I continue to get these notifications.

 

Yes, I have checked the email headers and my email address IS NOT in the headers.

 

I’m totally stumped by this problem.

I now have a case open with our Exchange online support to see if they can figure out what is happening.

Per the mail log on the Trac server, the message is leaving without my email address, but the message trace on Exchange shows my email address on the message, even though it is not in the message headers.

 

Thanks for the feedback.

 

 

-- Patty

 

From: trac-...@googlegroups.com <trac-...@googlegroups.com> On Behalf Of RjOllos
Sent: Tuesday, March 16, 2021 5:40 PM
To: Trac Users <trac-...@googlegroups.com>
Subject: Re: [Trac] Re: Unwanted Trac Notifications

 

 

On Monday, March 15, 2021 at 6:04:02 PM UTC-7 pcottrill wrote:

--

You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+...@googlegroups.com.

Clemens Feige

unread,
Mar 17, 2021, 3:35:39 AM3/17/21
to trac-...@googlegroups.com
Patty Cottrill wrote on 16.03.2021 at 22:55:
> Apparently, I spoke too soon.
>
> Changing the email sender from SmtpEmailSender to SendmailEmailSender
> did NOT resolve the problem.
>
> I continue to get these notifications.
>
> Yes, I have checked the email headers and my email address IS NOT in the
> headers.
>
> I’m totally stumped by this problem.
>
> I now have a case open with our Exchange online support to see if they
> can figure out what is happening.
>
> Per the mail log on the Trac server, the message is leaving without my
> email address, but the message trace on Exchange shows my email address
> on the message, even though it is not in the message headers.
>
> Thanks for the feedback.
>
> -- Patty

Hello Patty

As an idea to isolate the problem, have you tried to manually send test
e-mails (without TRAC) to the same mail server?

You would use any other e-mail client (preferably on the same machine
where TRAC is running) and send test e-mails with same sender address,
same recipient address, same port number, same credentials, same mail
server etc. like TRAC.

If this experiment should trigger unwanted e-mail copies then it would
prove that this is not an issue with TRAC.

Clemens


Cooke, Mark

unread,
Mar 17, 2021, 3:47:20 AM3/17/21
to trac-...@googlegroups.com
> ----Original Message-----
> From: trac-...@googlegroups.com On Behalf Of Clemens Feige
> Sent: 17 March 2021 07:36
> Subject: Re: [Trac] Re: Unwanted Trac Notifications
>
Hi Patty,

I have only skimmed the threads so sorry if you have already discounted these but I had a few thoughts:

- we had a similar issue a while back we traced to the trac.ini email settings e.g. `smtp_always_bcc`
https://trac.edgewall.org/wiki/TracIni#notification-smtp_always_bcc-option

- I wonder if your address is being used as the "from" address and therefore the emails are appearing in your outbox?

- perhaps you are the default address on your email server and one of the other addresses is invalid?

Cheers,

~ Mark C

Patty Cottrill

unread,
Mar 19, 2021, 11:53:26 AM3/19/21
to trac-...@googlegroups.com
Thank you all for your feedback.
The problem appears to be resolved.

The problem was with a spam filter I had created a while back and forgot about it.
An extended Exchange message trace helped me figure this out!!

I had checked every Exchange configuration I could think about, but totally forgot about checking the spam filter. ☹


-- Patty
--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/AM7PR05MB6851B797A10DBADA3AE82920BE6A9%40AM7PR05MB6851.eurprd05.prod.outlook.com.
Reply all
Reply to author
Forward
0 new messages