[Mailman-Developers] Umbrella Settings

2019-09-30 Thread sandeep kumar
Hi Team

I just want to know whether the umbrella list option is enabled in Maiman 3
or not.
I have seen in the below link that umbrella list options are going to be
replaced with new ones.

https://www.gnu.org/software/mailman/mailman-admin/node12.html

Is there any alternative for using this setting in MM3.
-- 
Regards
Sandeep Kumar
+91-9642669192
___
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] Bounce Processing in Mailman 3

2019-09-26 Thread sandeep kumar
Hi Team

I have observed few options those are present in Mailman 2 are not found in
Mailman 3 some of them are mentioned below. If the mentioned options are
already enabled please let me know where can I access them.

1.We have Bounce Processing as separate option in Mailman 2 but in Mailman
3 I haven't seen that of configuration. Options like "Bounce Score
Threshold", disabling the member based on the bounce score etc..,
Is this feature is enabled or still under development. If it is enabled
please guide where can I access this.

2. Send goodbye message to members when they are unsubscribed?. This option
also I did not found in Mailman 3.

3.Emergency moderation of all list traffic. (When this option is enabled,
all list traffic is emergency moderated, i.e. held for moderation. Turn
this option on when your list is experiencing a flamewar and you want a
cooling off period.)

I don't know what this option exactly does but I did not found it in
Mailman 3. If this is intentionally ignored that is fine.

4.Discard held messages older than this number of days. Use 0 for no
automatic discarding.

5.Ceiling on acceptable number of recipients for a posting.

6.Is the list moderator's approval required for unsubscription requests?

7.Should messages from non-members, which are automatically discarded, be
forwarded to the list moderator?

I think the above option should be enabled, if it is not enabled in Mailman
3. Enabling this option let moderator or owner know what that non-member
has posted.

If the above mentioned features are already enabled please let me know
where can I found. I have drilled down both Mailman 2 and Mailman 3 for
this feature comparison.

-- 
Regards
Sandeep Kumar
+91-9642669192
___
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: Time zone setting and difference in time

2019-09-22 Thread sandeep kumar
Hi Team

Can someone provide any inputs for this..??

Regards
Sandeep

On Sat, Sep 21, 2019 at 6:24 AM sandeep kumar  wrote:

> Hi Team
>
> I am observing that there is a time difference in my postorius. On info
> page the list metrics option showing time difference of 5 hours. I changed
> the time zone from UTC to asia/Kolkata even though I am facing the same
> issue.
>
> And regarding hold date in the held message.html template under the
> setting {{ msg_hold.date|date:DATETIME_FORMAT}} I have removed the option
> date:DATETIME_FORMAT and I am able to print the time and date but not in
> correct format. But also with difference in the time.
> Setting asia/Kolkata is the only option for changing TZ or is there any
> other option..?
>
> Iam using postgresql database in my mailman3
>
> Regards
> Sandeep
>
> Sent from my iPhone



-- 
Regards
Sandeep Kumar
+91-9642669192
___
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: Can we disable archiving by default

2019-09-22 Thread sandeep kumar
Hi Team

I think I have resolved the issue. I have enabled the disabling the archive
by default.

Made below changes under the /mailman/src/mailman/styles/base.py

208 @public
209 class Noarchive:
210 """Settings for noarchive mailing lists."""
211
212 def apply(self, mailing_list):
213 mlist = mailing_list
214 mlist.advertised = False
215 mlist.archive_policy = ArchivePolicy.never

and also made below changes in the /mailman/src/mailman/styles/default.py

 90 @public
 91 @implementer(IStyle)
 92 class NoarchiveDefaultStyle(
 93 Identity, BasicOperation, Bounces, Noarchive, Discussion,
Moderation):
 94
 95 """Style for mailing-lists with private archives."""
 96
 97 name = 'Noarchive-default'
 98 description = _('Do not archive the list.')
 99
100 def apply(self, mailing_list):
101 """See `IStyle`."""
102 Identity.apply(self, mailing_list)
103 BasicOperation.apply(self, mailing_list)
104 Bounces.apply(self, mailing_list)
105 Noarchive.apply(self, mailing_list)
106 Discussion.apply(self, mailing_list)
107 Moderation.apply(self, mailing_list)

Can you please check if the code is fine. I have also checked by creating a
new list and checked the database entries in the table for "0" value (NO
Archives)

Regards
Sandeep

On Fri, Sep 20, 2019 at 9:20 AM sandeep kumar  wrote:

> Thanks Abhilash
>
> Sure I will raise issue
>
> Regards
> Sandeep
>
> Sent from my iPhone
>
> > On 20-Sep-2019, at 8:20 AM, Abhilash Raj 
> wrote:
> >
> > 
> >
> >> On Thu, Sep 19, 2019, at 7:27 PM, sandeep kumar wrote:
> >> Hi
> >>
> >> I mean while creating a new list I can see three options like announce
> >> this list, private archives, public archives, all these options do is
> >> making archives public and private. But what I required is making this
> >> list as "Do not archive this list" by default for every list while
> >> creating the list.
> >
> > Not yet, these options are called "Styles" in Mailman terminology, and
> there
> > aren't any styles that have archiving disabled by default.
> >
> > I don't mind adding one though, can you open an issue on Gitlab?
> >
> >
> >    https://gitlab.com/mailman/mailman/issues
> >
> >
> >
> >>
> >> Is there any option to do this...??
> >>
> >> Regards
> >> Sandeep
> >>
> >> Sent from my iPhone
> >>
> >>>> On 19-Sep-2019, at 10:05 PM, Stephen J. Turnbull <
> turnbull.stephen...@u.tsukuba.ac.jp> wrote:
> >>>
> >>> sandeep kumar writes:
> >>>
> >>>> I tried many options but I am not able to do so.
> >>>
> >>> It helps if you tell us what you tried and didn't work.
> >>>
> >>> As far as timing goes, cron is your friend.  It should be possible to
> >>> curl or the mailman command interface to access the REST interface to
> >>> enable and disable archives.
> >>>
> >>> Steve
> >>
> >
> > --
> >  thanks,
> >  Abhilash Raj (maxking)
>


-- 
Regards
Sandeep Kumar
+91-9642669192
___
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] Time zone setting and difference in time

2019-09-20 Thread sandeep kumar
Hi Team

I am observing that there is a time difference in my postorius. On info page 
the list metrics option showing time difference of 5 hours. I changed the time 
zone from UTC to asia/Kolkata even though I am facing the same issue. 

And regarding hold date in the held message.html template under the setting {{ 
msg_hold.date|date:DATETIME_FORMAT}} I have removed the option 
date:DATETIME_FORMAT and I am able to print the time and date but not in 
correct format. But also with difference in the time.
Setting asia/Kolkata is the only option for changing TZ or is there any other 
option..?

Iam using postgresql database in my mailman3

Regards
Sandeep

Sent from my iPhone
___
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: Can we disable archiving by default

2019-09-19 Thread sandeep kumar
Thanks Abhilash 

Sure I will raise issue

Regards
Sandeep

Sent from my iPhone

> On 20-Sep-2019, at 8:20 AM, Abhilash Raj  wrote:
> 
> 
> 
>> On Thu, Sep 19, 2019, at 7:27 PM, sandeep kumar wrote:
>> Hi
>> 
>> I mean while creating a new list I can see three options like announce 
>> this list, private archives, public archives, all these options do is 
>> making archives public and private. But what I required is making this 
>> list as "Do not archive this list" by default for every list while 
>> creating the list.
> 
> Not yet, these options are called "Styles" in Mailman terminology, and there
> aren't any styles that have archiving disabled by default.
> 
> I don't mind adding one though, can you open an issue on Gitlab?
> 
> 
>https://gitlab.com/mailman/mailman/issues
> 
> 
> 
>> 
>> Is there any option to do this...??
>> 
>> Regards
>> Sandeep
>> 
>> Sent from my iPhone
>> 
>>>> On 19-Sep-2019, at 10:05 PM, Stephen J. Turnbull 
>>>>  wrote:
>>> 
>>> sandeep kumar writes:
>>> 
>>>> I tried many options but I am not able to do so.
>>> 
>>> It helps if you tell us what you tried and didn't work.
>>> 
>>> As far as timing goes, cron is your friend.  It should be possible to
>>> curl or the mailman command interface to access the REST interface to
>>> enable and disable archives.
>>> 
>>> Steve
>> 
> 
> -- 
>  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: Can we disable archiving by default

2019-09-19 Thread sandeep kumar
Hi

I mean while creating a new list I can see three options like announce this 
list, private archives, public archives, all these options do is making 
archives public and private. But what I required is making this list as "Do not 
archive this list" by default for every list while creating the list.

Is there any option to do this...??

Regards
Sandeep

Sent from my iPhone

> On 19-Sep-2019, at 10:05 PM, Stephen J. Turnbull 
>  wrote:
> 
> sandeep kumar writes:
> 
>> I tried many options but I am not able to do so.
> 
> It helps if you tell us what you tried and didn't work.
> 
> As far as timing goes, cron is your friend.  It should be possible to
> curl or the mailman command interface to access the REST interface to
> enable and disable archives.
> 
> Steve
___
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] Can we disable archiving by default

2019-09-19 Thread sandeep kumar
Hi Team

I want to disable some mailing lists archives by default and want to enable
after a period of time. I don't want any archives to enabled from day-1 to
a list but may be later.

I tried many options but I am not able to do so.

Please help with any solution

-- 
Regards
Sandeep Kumar
+91-9642669192
___
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] Hold Date is not displaying in Held messages tab

2019-09-18 Thread sandeep kumar
Hi Team

Observed that the Hold Date in Held Messages tab is not displaying any date.

It is blank when a new message comes into Held Messages.

Please help if there is any resolution for this issue

-- 
Regards
Sandeep Kumar
+91-9642669192
___
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] Unable to see the content in attachment of archives

2019-09-16 Thread sandeep kumar
Hi Team

We are unable to see the content of the downloaded attachment (say pdf )
from hyperkitty archiver.

On opening a pdf it is displaying like it was sent like email attachment
and was not correctly decoded.

Please help and the issue is same for all type of files

-- 
Regards
Sandeep Kumar
+91-9642669192
___
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: Global settings on user mailman settings not working

2019-09-08 Thread sandeep kumar
Hi Team

Any update on the User preference settings ..??

I am not able to view or change any of the user based preference settings
under Mailman Settings

Regards
Sandeep

On Fri, Sep 6, 2019 at 11:16 AM sandeep kumar  wrote:

> Hi Abhilash
>
> I mean when a Owner login into the list. On the top right corner in the
> drop down we have mailman settings,under that we have 4 tabs
>
> 1. Subscriptions
> 2. Global Mailman Preferences
> 3. Address based preferences
> 4. List based preferences
>
> a. What are the options under Global Mailman Preferences ..?? Does it
> apply to all the members in the list if any changes made here...?? If it is
> so I am not able make any save changes.
> b. Under subscriptions tab what will be displayed...?? I am seeing "You
> are not subscribed to any list"  even though I am subscribed.
> c. What are Address and List based preferences ...?? Where should I set
> this
>
> Regards
> Sandeep
>
>
> On Thu, Sep 5, 2019 at 10:24 PM Abhilash Raj 
> wrote:
>
>> On Thu, Sep 5, 2019, at 9:51 AM, sandeep kumar wrote:
>> > Hi
>> >
>> > I have observed that the mailman global settings of a owner in
>> > postorius is not updating when a change is made and saved.
>>
>> Do you mean the owner of a MailingList? Or do you mean a user?
>>
>> >
>> > It is reverting to its original state after a change has been made. In
>> > subscribe policy tab even the owner is subscribed it shows that you are
>> > not subscribed.
>>
>> Subscribe Policy page doesn't show who is subscribed, it is inside list's
>> settings page. Do you mean Users -> Members page, where all the subscribed
>> members are listed?
>>
>> What do you mean when you say "change has been made"? Did you unsubscribe
>> the user?
>>
>> >
>> > Is this a known issue..?or Am I doing something wrong..?
>> >
>> > Regards
>> > Sandeep
>>
>> --
>>   thanks,
>>   Abhilash Raj (maxking)
>>
>
>
> --
> Regards
> Sandeep Kumar
> +91-9642669192
>
>

-- 
Regards
Sandeep Kumar
+91-9642669192
___
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: Global settings on user mailman settings not working

2019-09-05 Thread sandeep kumar
Hi Abhilash

I mean when a Owner login into the list. On the top right corner in the
drop down we have mailman settings,under that we have 4 tabs

1. Subscriptions
2. Global Mailman Preferences
3. Address based preferences
4. List based preferences

a. What are the options under Global Mailman Preferences ..?? Does it apply
to all the members in the list if any changes made here...?? If it is so I
am not able make any save changes.
b. Under subscriptions tab what will be displayed...?? I am seeing "You are
not subscribed to any list"  even though I am subscribed.
c. What are Address and List based preferences ...?? Where should I set
this

Regards
Sandeep


On Thu, Sep 5, 2019 at 10:24 PM Abhilash Raj 
wrote:

> On Thu, Sep 5, 2019, at 9:51 AM, sandeep kumar wrote:
> > Hi
> >
> > I have observed that the mailman global settings of a owner in
> > postorius is not updating when a change is made and saved.
>
> Do you mean the owner of a MailingList? Or do you mean a user?
>
> >
> > It is reverting to its original state after a change has been made. In
> > subscribe policy tab even the owner is subscribed it shows that you are
> > not subscribed.
>
> Subscribe Policy page doesn't show who is subscribed, it is inside list's
> settings page. Do you mean Users -> Members page, where all the subscribed
> members are listed?
>
> What do you mean when you say "change has been made"? Did you unsubscribe
> the user?
>
> >
> > Is this a known issue..?or Am I doing something wrong..?
> >
> > Regards
> > Sandeep
>
> --
>   thanks,
>   Abhilash Raj (maxking)
>


-- 
Regards
Sandeep Kumar
+91-9642669192
___
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] Global settings on user mailman settings not working

2019-09-05 Thread sandeep kumar
Hi

I have observed that the mailman global settings of a owner in postorius is not 
updating when a change is made and saved.

It is reverting to its original state after a change has been made. In 
subscribe policy tab even the owner is subscribed it shows that you are not 
subscribed.

Is this a known issue..?or Am I doing something wrong..?

Regards
Sandeep
___
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 with archiving

2019-09-04 Thread sandeep kumar
Hi Abhilash 

Iam using hyperkitty 1.2.2. Is this the latest version or do we have 1.2.3..??

I found some doc about 1.2.3 but Iam not able install with pip.

Can you tell me where are these cron jobs located by default..??

How can I make sure this are running on daily basis without any issues 

Rgrds
Sandeep

> On 04-Sep-2019, at 9:00 PM, Abhilash Raj  wrote:
> 
>> On Wed, Sep 4, 2019, at 2:39 AM, sandeep kumar wrote:
>> Hi Abhilash
>> 
>> We are using below version
>> 
>> Mailman Core Version
>> GNU Mailman 3.2.3 (La Villa Strangiato)
>> Mailman Core API Version
>> 3.0
>> Mailman Core Python Version
>> 3.6.6 (default, Mar 29 2019, 00:03:27) [GCC 4.8.5 20150623 (Red Hat 
>> 4.8.5-36)]
>> I am not able to run the command. Where is that cron jobs configured ...??
> 
> That depends on how you installed Mailman?
> 
>> 
>> Regards
>> Sandeep
>> 
>> On Tue, Sep 3, 2019 at 11:35 PM Abhilash Raj  wrote:
>> On Tue, Sep 3, 2019, at 10:26 AM, sandeep kumar wrote:
>> > Hi
>> > 
>> > We are facing some issues in archiving the lists. Even though the list 
>> > is enabled to be private archive it is advertised to each and every one 
>> > irrespective of their role or anything. This will be a big data breach 
>> > if it goes the same way into the production.
>> > 
>> > We tried and figured out and blocked access to outside persons to view 
>> > archives. Only the list administrator and moderator can see their 
>> > archives after logging in. They can't even See the archives of other 
>> > lists.
>> > 
>> > Till here everything was smooth. But when I enter 
>> > https://hostname/hyperkitty after logging in,it displays all the list 
>> > archives irrespective of public and private to the person who has 
>> > logged in. We also observed database is not updating when we change the 
>> > private or public archive settings from postorius page. 
>> > 
>> > Any heads up would be appreciated
>> 
>> What version are you using? It takes about a day to sync those changes
>> if you just changed the archives from public to private.
>> 
>> There is a daily cron job which does the sync.
>> 
>> You can invoke it manually to run using `manage.py runjobs --daily` to
>> force sync. I am working on making this work synchronously.
>> 
>> What version of Hyperkitty are you using? It should show up in the footer
>> of every page.
>> 
>> Latest version hides the private archives from the list of MailingList. Even
>> if you can see the list, non-members can't see the contents.
>> 
>> 
>> > 
>> > Regards
>> > Sandeep
>> 
>> -- 
>>   thanks,
>>   Abhilash Raj (maxking)
>> 
>> 
>> -- 
>> Regards
>> Sandeep Kumar
>> +91-9642669192
>> 
> 
> --
>   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 with archiving

2019-09-04 Thread sandeep kumar
Hi Abhilash

We are using below version

Mailman Core Version GNU Mailman 3.2.3 (La Villa Strangiato)
Mailman Core API Version 3.0
Mailman Core Python Version 3.6.6 (default, Mar 29 2019, 00:03:27) [GCC
4.8.5 20150623 (Red Hat 4.8.5-36)]I am not able to run the command. Where
is that cron jobs configured ...??

Regards
Sandeep

On Tue, Sep 3, 2019 at 11:35 PM Abhilash Raj 
wrote:

> On Tue, Sep 3, 2019, at 10:26 AM, sandeep kumar wrote:
> > Hi
> >
> > We are facing some issues in archiving the lists. Even though the list
> > is enabled to be private archive it is advertised to each and every one
> > irrespective of their role or anything. This will be a big data breach
> > if it goes the same way into the production.
> >
> > We tried and figured out and blocked access to outside persons to view
> > archives. Only the list administrator and moderator can see their
> > archives after logging in. They can't even See the archives of other
> > lists.
> >
> > Till here everything was smooth. But when I enter
> > https://hostname/hyperkitty after logging in,it displays all the list
> > archives irrespective of public and private to the person who has
> > logged in. We also observed database is not updating when we change the
> > private or public archive settings from postorius page.
> >
> > Any heads up would be appreciated
>
> What version are you using? It takes about a day to sync those changes
> if you just changed the archives from public to private.
>
> There is a daily cron job which does the sync.
>
> You can invoke it manually to run using `manage.py runjobs --daily` to
> force sync. I am working on making this work synchronously.
>
> What version of Hyperkitty are you using? It should show up in the footer
> of every page.
>
> Latest version hides the private archives from the list of MailingList.
> Even
> if you can see the list, non-members can't see the contents.
>
>
> >
> > Regards
> > Sandeep
>
> --
>   thanks,
>   Abhilash Raj (maxking)
>


-- 
Regards
Sandeep Kumar
+91-9642669192
___
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 with archiving

2019-09-03 Thread sandeep kumar
Hi

We are facing some issues in archiving the lists. Even though the list is 
enabled to be private archive it is advertised to each and every one 
irrespective of their role or anything. This will be a big data breach if it 
goes the same way into the production.

We tried and figured out and blocked access to outside persons to view 
archives. Only the list administrator and moderator can see their archives 
after logging in. They can't even See the archives of other lists.

Till here everything was smooth. But when I enter https://hostname/hyperkitty 
after logging in,it displays all the list archives irrespective of public and 
private to the person who has logged in. We also observed database is not 
updating when we change the private or public archive settings from postorius 
page. 

Any heads up would be appreciated

Regards
Sandeep
___
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: SSL error while connecting to hyperkitty

2019-08-31 Thread sandeep kumar
Hi Team

Iam seeing following errors while mailman is trying to archive in
mailman.log


This is my base URL in mailman-hyperkitty.cfg

base_url: http://localhost/hyperkitty




































*During handling of the above exception, another exception
occurred:Traceback (most recent call last):  File
"/var/lib/mailman/venv3/lib64/python3.6/site-packages/requests-2.21.0-py3.6.egg/requests/adapters.py",
line 449, in sendtimeout=timeout  File
"/var/lib/mailman/venv3/lib64/python3.6/site-packages/urllib3-1.24.1-py3.6.egg/urllib3/connectionpool.py",
line 638, in urlopen_stacktrace=sys.exc_info()[2])  File
"/var/lib/mailman/venv3/lib64/python3.6/site-packages/urllib3-1.24.1-py3.6.egg/urllib3/util/retry.py",
line 398, in incrementraise MaxRetryError(_pool, url, error or
ResponseError(cause))urllib3.exceptions.MaxRetryError:
HTTPSConnectionPool(host='domain.com <http://domain.com>', port=443): Max
retries exceeded with url:
/hyperkitty/api/mailman/archive?key=SecretArchiverAPIKey (Caused by
SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify
failed (_ssl.c:841)'),))During handling of the above exception, another
exception occurred:Traceback (most recent call last):  File
"/var/lib/mailman/mailman-hyperkitty/mailman_hyperkitty/__init__.py", line
154, in _archive_messageurl = self._send_message(mlist, msg)  File
"/var/lib/mailman/mailman-hyperkitty/mailman_hyperkitty/__init__.py", line
201, in _send_messagefiles={"message": ("message.txt", message_text)})
File
"/var/lib/mailman/venv3/lib64/python3.6/site-packages/requests-2.21.0-py3.6.egg/requests/api.py",
line 116, in postreturn request('post', url, data=data, json=json,
**kwargs)  File
"/var/lib/mailman/venv3/lib64/python3.6/site-packages/requests-2.21.0-py3.6.egg/requests/api.py",
line 60, in requestreturn session.request(method=method, url=url,
**kwargs)  File
"/var/lib/mailman/venv3/lib64/python3.6/site-packages/requests-2.21.0-py3.6.egg/requests/sessions.py",
line 533, in requestresp = self.send(prep, **send_kwargs)  File
"/var/lib/mailman/venv3/lib64/python3.6/site-packages/requests-2.21.0-py3.6.egg/requests/sessions.py",
line 668, in sendhistory = [resp for resp in gen] if allow_redirects
else []  File
"/var/lib/mailman/venv3/lib64/python3.6/site-packages/requests-2.21.0-py3.6.egg/requests/sessions.py",
line 668, in history = [resp for resp in gen] if
allow_redirects else []  File
"/var/lib/mailman/venv3/lib64/python3.6/site-packages/requests-2.21.0-py3.6.egg/requests/sessions.py",
line 247, in resolve_redirects**adapter_kwargs  File
"/var/lib/mailman/venv3/lib64/python3.6/site-packages/requests-2.21.0-py3.6.egg/requests/sessions.py",
line 646, in sendr = adapter.send(request, **kwargs)  File
"/var/lib/mailman/venv3/lib64/python3.6/site-packages/requests-2.21.0-py3.6.egg/requests/adapters.py",
line 514, in sendraise SSLError(e,
request=request)requests.exceptions.SSLError:
HTTPSConnectionPool(host=domain.com <http://domain.com>', port=443): Max
retries exceeded with url:
/hyperkitty/api/mailman/archive?key=SecretArchiverAPIKey (Caused by
SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify
failed (_ssl.c:841)'),))*


Rgrds
Sandeep

On Sat, Aug 31, 2019 at 10:20 AM sandeep kumar 
wrote:

> Team any help
>
> Sent from my iPhone
>
> > On 30-Aug-2019, at 11:18 PM, sandeep kumar 
> wrote:
> >
> > Hi Team
> >
> > Iam using httpd to work with ssl on mailman 3 using proxy pass.
> >
> > After this configuration Iam not able to connect to hyperkitty. It is
> throwing ssl certificate error in mailman.log file.
> >
> > What should be the configuration of hyperkitty while using https in
> mailman..?
> >
> > Please help me with this Iam struck here from past 4 days
> >
> > Rgrds
> > Sandeep
> >
> > Sent from my iPhone
>


-- 
Regards
Sandeep Kumar
+91-9642669192
___
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: SSL error while connecting to hyperkitty

2019-08-30 Thread sandeep kumar
Team any help 

Sent from my iPhone

> On 30-Aug-2019, at 11:18 PM, sandeep kumar  wrote:
> 
> Hi Team 
> 
> Iam using httpd to work with ssl on mailman 3 using proxy pass.
> 
> After this configuration Iam not able to connect to hyperkitty. It is 
> throwing ssl certificate error in mailman.log file. 
> 
> What should be the configuration of hyperkitty while using https in mailman..?
> 
> Please help me with this Iam struck here from past 4 days
> 
> Rgrds
> Sandeep
> 
> Sent from my iPhone
___
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] SSL error while connecting to hyperkitty

2019-08-30 Thread sandeep kumar
Hi Team 

Iam using httpd to work with ssl on mailman 3 using proxy pass.

After this configuration Iam not able to connect to hyperkitty. It is throwing 
ssl certificate error in mailman.log file. 

What should be the configuration of hyperkitty while using https in mailman..?

Please help me with this Iam struck here from past 4 days

Rgrds
Sandeep

Sent from my iPhone
___
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: Change of my homepage

2019-08-29 Thread sandeep kumar
Hi Abhilash

I tried to configure through webserver but after doing this in ssl.conf and 
http.conf I observed that my hyperkitty stopped working.

Though the archiving is taking place but Iam not able view those archives in 
hyperkitty through browser.

I think Iam missing somewhere in between the communication of mailman core and 
hyperkitty. Correct me if Iam wrong

Rgrds
Sandeep

Sent from my iPhone

> On 29-Aug-2019, at 8:59 PM, Abhilash Raj  wrote:
> 
>> On Thu, Aug 29, 2019, at 1:42 AM, sandeep kumar wrote:
>> Hi Team
>> 
>> I want to customize my home page of mailman 3 . When I type my site name it
>> should go to another page and from there when I click distribution lists
>> link It should redirect to mailman 3 default homepage.
>> 
>> I am trying to achieve this and failing in this regard.
> 
> How did you try to achieve this?
> 
>> 
>> Expert team please give me any suggestions and clues regarding the
>> dependencies that may involved in changing this.
> 
> Redirections aren't directly implemented in Mailman, it is typically
> configured in your webserver. 
> 
> You are looking for a config probably where lists.example.com/index.html
> is your website and then you ProxyPass the /mailman3 endpoint to Mailman's
> wsgi server, which will make your DL address to be lists.example.com/mailman3.
> 
>> 
>> -- 
>> Regards
>> Sandeep Kumar
>> +91-9642669192
>> ___
>> 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 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] Change of my homepage

2019-08-29 Thread sandeep kumar
Hi Team

I want to customize my home page of mailman 3 . When I type my site name it
should go to another page and from there when I click distribution lists
link It should redirect to mailman 3 default homepage.

I am trying to achieve this and failing in this regard.

Expert team please give me any suggestions and clues regarding the
dependencies that may involved in changing this.

-- 
Regards
Sandeep Kumar
+91-9642669192
___
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] Mails are not archiving in hyperkitty

2019-08-27 Thread sandeep kumar
Hi Team

We are encountering a weird issue, after enabling archives for a list, mails 
are not archived and not seen in hyperkitty. No error observed.

How will the communication between postorius and hyperkitty takes place..??

Sent from my iPhone
___
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: Error after starting mailman-suite

2019-08-23 Thread sandeep kumar
I came across this error sometimes and everything works fine but not sure why 
this comes. 

Sandeep

Sent from my iPhone

> On 23-Aug-2019, at 9:57 PM, Abhilash Raj  wrote:
> 
>> On Fri, Aug 23, 2019, at 8:31 AM, sandeep kumar wrote:
>> Hi Team
>> 
>> We observed the following error after starting the mailman-suite. If some
>> one has experienced the same please provide any inputs.
>> 
>> 
>> Exception happened during processing of request from ('127.0.0.1', 
>> 50210)
>> Traceback (most recent call last):
>>  File "/usr/lib64/python3.6/socketserver.py", line 651, in
>> process_request_thread
>>self.finish_request(request, client_address)
>>  File "/usr/lib64/python3.6/socketserver.py", line 361, in 
>> finish_request
>>self.RequestHandlerClass(request, client_address, self)
>>  File "/usr/lib64/python3.6/socketserver.py", line 721, in __init__
>>self.handle()
>>  File
>> "/var/lib/mailman/venv3/lib64/python3.6/site-packages/Django-2.1.8-py3.6.egg/django/core/servers/basehttp.py",
>> line 171, in handle
>>self.handle_one_request()
>>  File
>> "/var/lib/mailman/venv3/lib64/python3.6/site-packages/Django-2.1.8-py3.6.egg/django/core/servers/basehttp.py",
>> line 179, in handle_one_request
>>self.raw_requestline = self.rfile.readline(65537)
>>  File "/usr/lib64/python3.6/socket.py", line 586, in readinto
>>return self._sock.recv_into(b)
>> ConnectionResetError: [Errno 104] Connection reset by peer
> 
> Do you see this once or do you keep seeing this continuously
> and nothing works?
> 
> This looks to me an actual Connection Reset by Peer error and
> someone somewhere dropped the connection, so nothing specific
> to worry about.
> 
>> 
>> -- 
>> Regards
>> Sandeep Kumar
>> +91-9642669192
>> ___
>> 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 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] Error after starting mailman-suite

2019-08-23 Thread sandeep kumar
Hi Team

We observed the following error after starting the mailman-suite. If some
one has experienced the same please provide any inputs.


Exception happened during processing of request from ('127.0.0.1', 50210)
Traceback (most recent call last):
  File "/usr/lib64/python3.6/socketserver.py", line 651, in
process_request_thread
self.finish_request(request, client_address)
  File "/usr/lib64/python3.6/socketserver.py", line 361, in finish_request
self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib64/python3.6/socketserver.py", line 721, in __init__
self.handle()
  File
"/var/lib/mailman/venv3/lib64/python3.6/site-packages/Django-2.1.8-py3.6.egg/django/core/servers/basehttp.py",
line 171, in handle
self.handle_one_request()
  File
"/var/lib/mailman/venv3/lib64/python3.6/site-packages/Django-2.1.8-py3.6.egg/django/core/servers/basehttp.py",
line 179, in handle_one_request
self.raw_requestline = self.rfile.readline(65537)
  File "/usr/lib64/python3.6/socket.py", line 586, in readinto
return self._sock.recv_into(b)
ConnectionResetError: [Errno 104] Connection reset by peer

-- 
Regards
Sandeep Kumar
+91-9642669192
___
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: Migrating mailman 2 to mailman 3.1

2019-08-15 Thread sandeep kumar
Thanks and it is now working.

Regarding migration I have tried importing  the config pickle of mailman 2 in 
mailman 3 and we are able to get the list and member settings.

Also I have observed that we can import config pickle of a list only once in 
mailman 3. I mean if I make changes in the new list in mm3 and then I try again 
import21 the settings are remaining same as changed but not reverting to as mm2.

Also if there are any pending requests in MM2 we cannot import them. Correct me 
if I am wrong.

So as of now this the only way we can achieve the migration..?? By importing 
each and every list config file..??

Regards
Sandeep

Sent from my iPhone

> On 15-Aug-2019, at 10:53 AM, Abhilash Raj  wrote:
> 
> 
> 
>> On Wed, Aug 14, 2019, at 10:28 AM, Abhilash Raj wrote:
>> 
>> 
>>> On Wed, Aug 14, 2019, at 10:08 AM, Stephen J. Turnbull wrote:
>>> sandeep kumar writes:
>>> 
>>>> Now that we are ready to go into production. We are currently
>>>> running mailman 2 in our production. Now the biggest challenge is
>>>> we have to migrate around 3000 lists from mailman 2 to mailman 3.
>>>> Is there any documentation
>>> 
>>> There's a small amount, but we're not satisfied with it.  We have an
>>> on-going Season of Docs project to create migration documentation.
>>> 
>>>> or any inputs from the team would be appreciated and will be very
>>>> helpful.
>>> 
>>> Abhilash and Mark have substantial experience with migrating lists,
>>> and operating Mailman 2 in parallel with Mailman 3 (ie, gradual
>>> migration, not the same list on both servers!)  However, they've been
>>> doing this at scale of dozens of lists, maybe a dozen at a time.
>> 
>> 
>> I've also been (very slowly) working on automating the workflow for
>> migration to a level that it requires minimal user intervention. This
>> hasn't been tested or completed yet[1].
>> 
>> It is mostly complete, but if you can help complete it, it should
>> be a bit nicer than manually porting every list (i.e. multiple-commands per
>> list right now) vs single command with exception handling to keep
>> working till it reaches end. For 3k lists, it might be useful :)
>> 
>> 
>> [1]:https://gitlab.com/mailman/mailman/merge_requests/531
>> 
>>> 
>>> I hope that some of our really large-scale users will have something
>>> to say, but the cases I'm aware of are at your stage more or less --
>>> no post-mortems yet that I know of.
>>> 
>>>> Iam trying to access docs.mailman3.org but it is not opening don't
>>>> why.?
>>> 
>>> It appears that recent Firefox is very picky about the TLS versions it
>>> will connect to, and somehow mailman3.org doesn't support that.
>>> Abhilash?
>> 
>> DNS records need updating, I'm gonna poke at Barry.
> 
> It should now be working!
> 
>> 
>>> 
>>> In the meantime, try other browsers which may not be so picky about
>>> crypto algorithms.  Also you can try mailman.readthedocs.io.
>>> 
>>> Steve
>>> 
>> 
>> -- 
>>  thanks,
>>  Abhilash Raj (maxking)
>> 
> 
> -- 
>  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] Migrating mailman 2 to mailman 3.1

2019-08-13 Thread sandeep kumar
Hi Team

I have successfully completed implementation of mailman with some 
customizations (like sending sms to moderators for pending lists, 
Authenticating into mailman 3 using existing LDAP,and some minor changes)

Now that we are ready to go into production. We are currently running mailman 2 
in our production. Now the biggest challenge is we have to migrate around 3000 
lists from mailman 2 to mailman 3. Is there any documentation or any inputs 
from the team would be appreciated and will be very helpful. Iam trying to 
access docs.mailman3.org but it is not opening don't why.?

This group helped me a lot in bringing my mailman 3 upto this stage. The 
process of migration would complete my project. Requesting your valuable inputs 

Regards
Sandeep

Sent from my iPhone
___
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] Unsubscribing from a list using command

2019-08-05 Thread sandeep kumar
Hi

Can I have inputs on how to unsubscribe a member from a list from command
line..?

-- 
Regards
Sandeep Kumar
___
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: Integration of Mailman 3 with LDAP

2019-07-16 Thread sandeep kumar
There might be some minor details that I am not aware of, but if you
setup correct settings, other things should work okay. You *may* have to
create your own Sign-In pages though. I am assuming you won't have a
sign-up page.

We will be using the same Sign-In page and we will also be having Sign-Up
pages.
The Sign-Up page is required to make an entry of the registered user in the
mailman DB.

We are already having an ldap database of the users we want to use the same
ldap for our mailman authentication also.

We don't want to make a new ldap server setup for this.

Our way of Approach is

1. User will sign up in the mailman and his username will be noted in the
database.
2. When ever  user tries to login he should get the authenticated by ldap
which is already running for other services.
3. We need only moderators and list owners to login in to the mailman but
out ldap will be having even the members entries also which makes the login
of members also possible.
4. To restrict the login of members into mailman we thought of
authenticating to the members who are registered in mailman database.
5. So first when user tries to login his username has to be checked in
mailman database if the particular entry is present then he should be
authenticated by ldap.

Please help me in any deviation in the above approach. As the client
requirement is as above I thought of achieving this way.

Your inputs are most welcome.

Regards
Sandeep



On Tue, Jul 16, 2019 at 9:37 PM Abhilash Raj 
wrote:

> On Tue, Jul 16, 2019, at 4:12 AM, sandeep kumar wrote:
> > Hi Team
> >
> > We want to integrate LDAP authentication for a user to login into
> > postorious.
> >
> > When a user tries to login, he should be authenticated by an LDAP instead
> > of getting authenticated using the credentials saved in the mailman
> > database.
> >
> > What file should be edited and any small clue would be welcome.
>
> First see Django's Docs on authentication backends[1]. This[2] seems to
> come up as the most popular library for LDAP authentication in Django.
>
>
> [1]:
> https://docs.djangoproject.com/en/2.2/topics/auth/customizing/#specifying-authentication-backends
> [2]: https://django-auth-ldap.readthedocs.io/en/latest/
>
>
> You won't have to change anything in the source, only use the appropriate
> settings defined in the docs of Django-auth-ldap to integrate with LDAP.
>
> There might be some minor details that I am not aware of, but if you
> setup correct settings, other things should work okay. You *may* have to
> create your own Sign-In pages though. I am assuming you won't have a
> sign-up page.
>
> You'll end up making changes in `urls.py` in the mailman-suite project
> too, just to configure the right URLs to redirect to for authentication.
>
> Sorry for sparse information, but I hope this will be a good starting point
> for you. It would be awesome if you could also document this process
> if you succeed since there have been some requests in past about
> integrating with LDAP. It could help others in future :)
>
> > --
> > Regards
> > Sandeep Kumar
> > +91-9642669192
> > ___
> > 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
>


-- 
Regards
Sandeep Kumar
+91-9642669192
___
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: Integration of Mailman 3 with LDAP

2019-07-16 Thread sandeep kumar
Hi Abhilash

I am a naive to Python development, but my client was having the
requirement of sending SMS to the moderators.

We are using postgresql database . I have used psycopg2 module to fetch the
email address of the moderator from the database for the list that is
posted.(mlist_fqdnname)

>From the email address I have used ldapsearch to fetch mobile number of the
email address from ldap using subprocess module.

After receving the mobile number we are having SMS api to send the message
to the moderator to this I have imported urllib and urllib.request module
in parsing http requests.

I am not sure what I did was a right way of approach but I could able to
achieve that.

All the above piece of code was incorporated in hold.py file.

Request your valuable inputs on this approach. If there is any more better
approach your inputs are most welcome.

Regards
Sandeep

On Tue, Jul 16, 2019 at 10:34 PM Abhilash Raj 
wrote:

>
>
> On Tue, Jul 16, 2019, at 9:56 AM, sandeep kumar wrote:
> > Thanks Abhilash for valuable inputs.
> >
> > I will come back to you if in case of any challenges.
> >
> > We have also implemented sending SMS notification along with the mail
> > notification to the moderator whenever the post is held for approval.
>
> Would be curious to see how you did this, and maybe suggest something
> in case you are using internal APIs which could break when upgrading
> to a new version.
>
> > We could able to achieve that through the inputs received from this
> > mailing list group. Thanks once again
> >
> > Regards
> > Sandeep
> >
> > Sent from my iPhone
> >
> > > On 16-Jul-2019, at 9:37 PM, Abhilash Raj 
> wrote:
> > >
> > >> On Tue, Jul 16, 2019, at 4:12 AM, sandeep kumar wrote:
> > >> Hi Team
> > >>
> > >> We want to integrate LDAP authentication for a user to login into
> > >> postorious.
> > >>
> > >> When a user tries to login, he should be authenticated by an LDAP
> instead
> > >> of getting authenticated using the credentials saved in the mailman
> > >> database.
> > >>
> > >> What file should be edited and any small clue would be welcome.
> > >
> > > First see Django's Docs on authentication backends[1]. This[2] seems to
> > > come up as the most popular library for LDAP authentication in Django.
> > >
> > >
> > > [1]:
> https://docs.djangoproject.com/en/2.2/topics/auth/customizing/#specifying-authentication-backends
> > > [2]: https://django-auth-ldap.readthedocs.io/en/latest/
> > >
> > >
> > > You won't have to change anything in the source, only use the
> appropriate
> > > settings defined in the docs of Django-auth-ldap to integrate with
> LDAP.
> > >
> > > There might be some minor details that I am not aware of, but if you
> > > setup correct settings, other things should work okay. You *may* have
> to
> > > create your own Sign-In pages though. I am assuming you won't have a
> > > sign-up page.
> > >
> > > You'll end up making changes in `urls.py` in the mailman-suite project
> > > too, just to configure the right URLs to redirect to for
> authentication.
> > >
> > > Sorry for sparse information, but I hope this will be a good starting
> point
> > > for you. It would be awesome if you could also document this process
> > > if you succeed since there have been some requests in past about
> > > integrating with LDAP. It could help others in future :)
> > >
> > >> --
> > >> Regards
> > >> Sandeep Kumar
> > >> +91-9642669192
> > >> ___
> > >> 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
> >
>
> --
>   thanks,
>   Abhilash Raj (maxking)
>


-- 
Regards
Sandeep Kumar
+91-9642669192
___
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: Integration of Mailman 3 with LDAP

2019-07-16 Thread sandeep kumar
Thanks Abhilash for valuable inputs.

I will come back to you if in case of any challenges.

We have also implemented sending SMS notification along with the mail 
notification to the moderator whenever the post is held for approval. We could 
able to achieve that through the inputs received from this mailing list group. 
Thanks once again

Regards
Sandeep 

Sent from my iPhone

> On 16-Jul-2019, at 9:37 PM, Abhilash Raj  wrote:
> 
>> On Tue, Jul 16, 2019, at 4:12 AM, sandeep kumar wrote:
>> Hi Team
>> 
>> We want to integrate LDAP authentication for a user to login into
>> postorious.
>> 
>> When a user tries to login, he should be authenticated by an LDAP instead
>> of getting authenticated using the credentials saved in the mailman
>> database.
>> 
>> What file should be edited and any small clue would be welcome.
> 
> First see Django's Docs on authentication backends[1]. This[2] seems to
> come up as the most popular library for LDAP authentication in Django.
> 
> 
> [1]: 
> https://docs.djangoproject.com/en/2.2/topics/auth/customizing/#specifying-authentication-backends
> [2]: https://django-auth-ldap.readthedocs.io/en/latest/
> 
> 
> You won't have to change anything in the source, only use the appropriate
> settings defined in the docs of Django-auth-ldap to integrate with LDAP.
> 
> There might be some minor details that I am not aware of, but if you 
> setup correct settings, other things should work okay. You *may* have to
> create your own Sign-In pages though. I am assuming you won't have a
> sign-up page. 
> 
> You'll end up making changes in `urls.py` in the mailman-suite project
> too, just to configure the right URLs to redirect to for authentication.
> 
> Sorry for sparse information, but I hope this will be a good starting point
> for you. It would be awesome if you could also document this process
> if you succeed since there have been some requests in past about
> integrating with LDAP. It could help others in future :)
> 
>> -- 
>> Regards
>> Sandeep Kumar
>> +91-9642669192
>> ___
>> 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 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] Integration of Mailman 3 with LDAP

2019-07-16 Thread sandeep kumar
Hi Team

We want to integrate LDAP authentication for a user to login into
postorious.

When a user tries to login, he should be authenticated by an LDAP instead
of getting authenticated using the credentials saved in the mailman
database.

What file should be edited and any small clue would be welcome.

-- 
Regards
Sandeep Kumar
+91-9642669192
___
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: Integration of SMS alerts for moderator approval

2019-07-11 Thread sandeep kumar
Hi Team

We were able to integrate SMS successfully in to the mailman when there is
a notification for the moderator for the approval.

Along with mail notification we are also able to send SMS notification to
the moderator.

Regards
Sandeep

On Mon, Jun 3, 2019 at 12:58 PM sandeep kumar  wrote:

> Hi Team
>
> We are using mailman 2 in our production and we are testing mailman 3 to
> use in production.
>
> We have requirement in mailman 3 that is when a moderator receives email
> notification for a list posted he should also receive SMS alerts saying
> that so and so list is pending for approval.We have our SMS gateway setup
> and we are using this sending otp's,alerts etc.., now we want to integrate
> this service in sending moderator approval alerts
>
> Please provide a path and your valuable inputs to achieve this. This would
> be useful in future releases of mailman also.
>
> --
> Regards
> Sandeep Kumar
> +91-7702033396
>
>

-- 
Regards
Sandeep Kumar
+91-9642669192
___
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: Integration of SMS alerts for moderator approval

2019-06-06 Thread sandeep kumar
Hi Steve

For every mail notification that is sent to moderator for approval he
should also receive the SMS on his mobile saying so and so list is pending
for approval.
This is the requirement of the customer.

For SMS the message will be shortened form say "mail to X list from Y
person is pending for your approval".

When I mean by SMS gateway it is nothing but a SMS service that we are
already using for other purposes. We give an input to the SMS server with
phone number and message it will send the SMS to user.

I need to fetch the moderator email address of every list when an email is
sent to list. I am facing some challenges here in getting the moderator
email address. Can you please help where in the mailman code can I get the
moderator email address when a mail is sent to the list.

Cheers...!!
Sandeep

On Thu, Jun 6, 2019 at 10:36 PM Stephen J. Turnbull <
turnbull.stephen...@u.tsukuba.ac.jp> wrote:

> sandeep kumar writes:
>
>  > We have requirement in mailman 3 that is when a moderator receives email
>  > notification for a list posted he should also receive SMS alerts saying
>  > that so and so list is pending for approval.
>
> Anything related to SMS itself is way outside of our scope.
>
> Your requirement is unclear.  Is the notification to be sent every
> time a mail notification is to be sent?  Do you want both email and
> SMS notifications?  (I would think that would triple your employee
> turnover rate, but that's your call.)
>
> I suppose that you want the content of the SMS alert to be different
> from the normal email (shortened).
>
>  > We have our SMS gateway setup
>
> What do you mean by "gateway"?  An email-to-SMS gateway?
>
> I don't think SMS notifications would be difficult to do, but you need
> to be more specific about the requirements and the capabilities of the
> gateway.
>
> Steve
>


-- 
Regards
Sandeep Kumar
+91-9642669192
___
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: Integration of SMS alerts for moderator approval

2019-06-03 Thread sandeep kumar
Hi Xiaoxing

Thanks for your valuable reply.

For getting phone numbers of the moderators we are trying to query the LDAP 
service using the email ID of the moderator.
Please suggest if there is any other way around for this feature.

Regards
Sandeep

Sent from my iPhone

> On 03-Jun-2019, at 10:13 PM, Xiaoxing Ye  wrote:
> 
> Hi Sandeep,
> 
> SMS alerts sound to be an interesting feature, while I don't think it is high 
> priority though.
> 
> If you are willing to implement this feature, say you only want to send 
> message when any email is pending for approval, you might look at 
> mailman/src/mailman/chains/hold.py and insert the SMS logic in HoldChain. But 
> you will need to find a way to store the phone numbers of the moderators. If 
> the numbers are fixed, that's great. If not, you might also need to modify 
> the database schema.
> 
> Let's see if other people have any ideas.
> 
> Sidenote: I think if we have a rest callback it will be beneficial to ideas 
> like this as proposed in GSoC this year - if anyone wants to work on the 
> feature, it will be great.
> 
> Yours truly,
> Xiaoxing Ye
> http://www.linkedin.com/in/yexiaoxing
> 
> 
>> On Mon, Jun 3, 2019 at 8:38 PM sandeep kumar  wrote:
>> Hi Team
>> 
>> We are using mailman 2 in our production and we are testing mailman 3 to
>> use in production.
>> 
>> We have requirement in mailman 3 that is when a moderator receives email
>> notification for a list posted he should also receive SMS alerts saying
>> that so and so list is pending for approval.We have our SMS gateway setup
>> and we are using this sending otp's,alerts etc.., now we want to integrate
>> this service in sending moderator approval alerts
>> 
>> Please provide a path and your valuable inputs to achieve this. This would
>> be useful in future releases of mailman also.
>> 
>> -- 
>> Regards
>> Sandeep Kumar
>> +91-7702033396
>> ___
>> 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 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