[Mailman-Developers] Re: Issues gathering list members

2021-01-20 Thread Mark Sapiro
On 1/20/21 12:07 PM, costavitor...@gmail.com wrote:
> After that, I receive DISCARD from chains/discard.py:45


OK. Everything is normal, but the message is being discarded. There are
many reasons why this might be the case. These include:

The poster's moderation action is discard.
The poster is a list member and the list's "Default action to take when
a member posts to the list" is discard.
The poster is not a list member and the list's "Default action to take
when a non-member posts to the list" is discard.
The poster is not a list member and is in the list's "Discard these
non-members"
The message matches a header filter with a discard action.

There should be an entry in Mailman's mailman.log saying

DISCARD: 

To find the reason, change the line at

from

log.info('DISCARD: %s', msg.get('message-id', 'n/a'))

to

log.info('DISCARD: %s, reason: %s',
 msg.get('message-id', 'n/a')),
 msgdata.get('moderation_reasons', 'n/a')
)

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
___
Mailman-Developers mailing list -- mailman-developers@python.org
To unsubscribe send an email to mailman-developers-le...@python.org
https://mail.python.org/mailman3/lists/mailman-developers.python.org/
Mailman FAQ: https://wiki.list.org/x/AgA3

Security Policy: https://wiki.list.org/x/QIA9


[Mailman-Developers] Re: Issues gathering list members

2021-01-20 Thread Abhilash Raj
On Wed, Jan 20, 2021, at 12:07 PM, costavitor...@gmail.com wrote:
> Mark Sapiro wrote:
> > On 1/20/21 9:54 AM, costavitor...@gmail.com wrote:
> > > Hi
> > > Yes, I receive the logging with:
> > > subaddress: None, queue: in
> > > And then I have another few lines of logging, with nothing relevant 
> > > ending up in 
> > > Connection lost during _handle_client()
> > > That is normal.
> > > If I send with the prefix owner, after the same line
> > > I have a line saying:
> > > envsender: 
> > > -teste222-bounces+emanuel-d-vitorino=telecom...@.pt, 
> > > recipients:
> > > ['emanuel-d-vitor...@xx.pt'], size(msgtext): 464
> > > This one comes from mailman/mta/connection.py when the message is being
> > sent to the recipients. Since you don't see that, the message never gets
> > this far.
> > Since mail to -owner works, the incoming runner is processing the 'in'
> > queue so something happens between the message being picked up from the
> > 'in' queue and delivery.
> > First, check Mailman's
> > bin/mailman members --regular --nomail enabled list.example.com
> returns two users. Mine that is also owner and another one that only 
> subscribed the mailing list
> 
> > where list.example.com is the actual list id to ensure there are members
> > who should receive the mail. Then check Mailman's mailman.log and
> > debug.log for clues. You may need to set
> > [logging.debug]
> > level: debug
> > [logging.error]
> > level:debug
> > To get more logging.
> 
> Everything logging. No errors.
> 
> core/switchboard.py:97 (enqueue)
> Is this method that handles the queue?
> I'm logging the entire method, and on line 135 Im logging msgsave variable.
> And it's filled with some data
> After that, I receive DISCARD from chains/discard.py:45
> 
> If I send with prefix owner, I receive also from chains/owner.py OWNER:. 
> here I believe that is the expected behavior.
> After this, it runs again enqueue and anything else. No DISCARD or anything
> 
> What happens before chains that could DISCARD the message?
> Could it be any misconfiguration of my part? 

Do you see the posted message in any other queues, shunt or hold or some other?

The default owners chain doesn’t have any checks as such right now, but the 
default
chain that accepts message has a bunch of Rules to determine what to do with the
message, which is probably causing this behavior IMO.

There are a coupe of checks that can cause the message to be discarded, for 
example,
are you setting the `From:` headers (no-sender rule)? 

The entire list of rules is here[1] and you can find code for each of the rules 
[2] and also
the docs for each of the rules[3]

[1]: 
https://gitlab.com/mailman/mailman/-/blob/master/src/mailman/chains/builtin.py#L40
[2]: https://gitlab.com/mailman/mailman/-/tree/master/src/mailman/rules
[3]: 
https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/rules/docs/rules.html

If you can’t find the message in any of the queue, that means the message is 
being
discarded. There are a few rules that can cause a direct discard if you look at 
[1] and some
rules like member/non-member moderations, header-filters may cause a discard 
based
on the settings. 

Some other things to check would be to get the mailing list settings check the 
default
member and non-member actions. 

I hope that is helpful.
> 
> Wich methods can I check to debug whats happening?
> 
> Thank you very much
> Emanuel
> ___
> Mailman-Developers mailing list -- mailman-developers@python.org
> To unsubscribe send an email to mailman-developers-le...@python.org
> https://mail.python.org/mailman3/lists/mailman-developers.python.org/
> Mailman FAQ: https://wiki.list.org/x/AgA3
> 
> Security Policy: https://wiki.list.org/x/QIA9
>

-- 
  thanks,
  Abhilash Raj (maxking)
___
Mailman-Developers mailing list -- mailman-developers@python.org
To unsubscribe send an email to mailman-developers-le...@python.org
https://mail.python.org/mailman3/lists/mailman-developers.python.org/
Mailman FAQ: https://wiki.list.org/x/AgA3

Security Policy: https://wiki.list.org/x/QIA9


[Mailman-Developers] Re: Issues gathering list members

2021-01-20 Thread costavitorino
Mark Sapiro wrote:
> On 1/20/21 9:54 AM, costavitor...@gmail.com wrote:
> > Hi
> > Yes, I receive the logging with:
> > subaddress: None, queue: in
> > And then I have another few lines of logging, with nothing relevant ending 
> > up in 
> > Connection lost during _handle_client()
> > That is normal.
> > If I send with the prefix owner, after the same line
> > I have a line saying:
> > envsender: -teste222-bounces+emanuel-d-vitorino=telecom...@.pt, 
> > recipients:
> > ['emanuel-d-vitor...@xx.pt'], size(msgtext): 464
> > This one comes from mailman/mta/connection.py when the message is being
> sent to the recipients. Since you don't see that, the message never gets
> this far.
> Since mail to -owner works, the incoming runner is processing the 'in'
> queue so something happens between the message being picked up from the
> 'in' queue and delivery.
> First, check Mailman's
> bin/mailman members --regular --nomail enabled list.example.com
returns two users. Mine that is also owner and another one that only subscribed 
the mailing list

> where list.example.com is the actual list id to ensure there are members
> who should receive the mail. Then check Mailman's mailman.log and
> debug.log for clues. You may need to set
> [logging.debug]
> level: debug
> [logging.error]
> level:debug
> To get more logging.

Everything logging. No errors.

core/switchboard.py:97 (enqueue)
Is this method that handles the queue?
I'm logging the entire method, and on line 135 Im logging msgsave variable.
And it's filled with some data
After that, I receive DISCARD from chains/discard.py:45

If I send with prefix owner, I receive also from chains/owner.py OWNER:. 
here I believe that is the expected behavior.
After this, it runs again enqueue and anything else. No DISCARD or anything

What happens before chains that could DISCARD the message?
Could it be any misconfiguration of my part? 

Wich methods can I check to debug whats happening?

Thank you very much
Emanuel
___
Mailman-Developers mailing list -- mailman-developers@python.org
To unsubscribe send an email to mailman-developers-le...@python.org
https://mail.python.org/mailman3/lists/mailman-developers.python.org/
Mailman FAQ: https://wiki.list.org/x/AgA3

Security Policy: https://wiki.list.org/x/QIA9


[Mailman-Developers] Re: Issues gathering list members

2021-01-20 Thread Mark Sapiro
On 1/20/21 9:54 AM, costavitor...@gmail.com wrote:
> Hi
> 
> Yes, I receive the logging with:
> subaddress: None, queue: in
> 
> And then I have another few lines of logging, with nothing relevant ending up 
> in 
> Connection lost during _handle_client()


That is normal.


> If I send with the prefix owner, after the same line I have a line saying:
> envsender: -teste222-bounces+emanuel-d-vitorino=telecom...@.pt, 
> recipients: ['emanuel-d-vitor...@xx.pt'], size(msgtext): 464


This one comes from mailman/mta/connection.py when the message is being
sent to the recipients. Since you don't see that, the message never gets
this far.

Since mail to -owner works, the incoming runner is processing the 'in'
queue so something happens between the message being picked up from the
'in' queue and delivery.

First, check Mailman's

bin/mailman members --regular --nomail enabled list.example.com

where list.example.com is the actual list id to ensure there are members
who should receive the mail. Then check Mailman's mailman.log and
debug.log for clues. You may need to set

[logging.debug]
level: debug

[logging.error]
level:debug

To get more logging.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
___
Mailman-Developers mailing list -- mailman-developers@python.org
To unsubscribe send an email to mailman-developers-le...@python.org
https://mail.python.org/mailman3/lists/mailman-developers.python.org/
Mailman FAQ: https://wiki.list.org/x/AgA3

Security Policy: https://wiki.list.org/x/QIA9


[Mailman-Developers] Re: Issues gathering list members

2021-01-20 Thread costavitorino
Hi

Yes, I receive the logging with:
subaddress: None, queue: in

And then I have another few lines of logging, with nothing relevant ending up 
in 
Connection lost during _handle_client()

If I send with the prefix owner, after the same line I have a line saying:
envsender: -teste222-bounces+emanuel-d-vitorino=telecom...@.pt, 
recipients: ['emanuel-d-vitor...@xx.pt'], size(msgtext): 464

And this one arrives at my email

Emanuel
___
Mailman-Developers mailing list -- mailman-developers@python.org
To unsubscribe send an email to mailman-developers-le...@python.org
https://mail.python.org/mailman3/lists/mailman-developers.python.org/
Mailman FAQ: https://wiki.list.org/x/AgA3

Security Policy: https://wiki.list.org/x/QIA9


[Mailman-Developers] Re: Issues gathering list members

2021-01-20 Thread Mark Sapiro
On 1/20/21 7:35 AM, costavitor...@gmail.com wrote:
> 
> I was debuging lmtp runner, and I can see that using "owners" it goes to 
> queue "in", and Switchboard unqueue receives the message. But without 
> "owners", it goes to "in" queue but unqueue method is not called.


Do you mean 'enqueue'?  In any case, , the code at

sets the queue to 'in' if there is no '-subaddress' and

queues the message.

Are you saying the message never gets to the 'in' queue?


> How can I debug why the mailing list is never sent to members?


First, set

[logging.smtp]
level: debug

in mailman.cfg and see if you get the log message from

in Mailman's smtp.log


> Another thing that is happening, is in Hyperkitty, the mailing list never 
> shows as active. And it haves 0 participants and 0 discussions.  When I'm 
> creating a new thread, I receive the message that email was sent but it never 
> arrives to any recipient. I thought that it requires an actual email to sent 
> to turn the mailing list as active. But at this moment I'm not quite sure 
> about it.


When you post from HyperKitty, the message is delivered to Mailman core,
but it is not archived in HyperKitty until core sends it back to
HyperKitty as part of core's processing of the message.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
___
Mailman-Developers mailing list -- mailman-developers@python.org
To unsubscribe send an email to mailman-developers-le...@python.org
https://mail.python.org/mailman3/lists/mailman-developers.python.org/
Mailman FAQ: https://wiki.list.org/x/AgA3

Security Policy: https://wiki.list.org/x/QIA9


[Mailman-Developers] Issues gathering list members

2021-01-20 Thread costavitorino
Hi

I'm with mailman 3 in a custom docker environment. And I have all services 
running in independent containers, and they all communicate between them.

I'm testing sending emails by telnet to a mailing list. But mailman don't send 
the mail to the mailing list members.
But if I send the mailing list to -own...@.xx, all the owners receive 
the mailing list. Just when sending to the mailing list it doesn't work.

If I access in shell the mailing list mailmanclient, and I get the members, it 
returns all members. 

I was debuging lmtp runner, and I can see that using "owners" it goes to queue 
"in", and Switchboard unqueue receives the message. But without "owners", it 
goes to "in" queue but unqueue method is not called.

How can I debug why the mailing list is never sent to members?

Another thing that is happening, is in Hyperkitty, the mailing list never shows 
as active. And it haves 0 participants and 0 discussions.  When I'm creating a 
new thread, I receive the message that email was sent but it never arrives to 
any recipient. I thought that it requires an actual email to sent to turn the 
mailing list as active. But at this moment I'm not quite sure about it.

Can you point me in the right direction to understand whats happening?

kind regars,

Emanuel
___
Mailman-Developers mailing list -- mailman-developers@python.org
To unsubscribe send an email to mailman-developers-le...@python.org
https://mail.python.org/mailman3/lists/mailman-developers.python.org/
Mailman FAQ: https://wiki.list.org/x/AgA3

Security Policy: https://wiki.list.org/x/QIA9