Re: [Mailman-Users] mm-handler support

2018-11-01 Thread Mark Sapiro
On 11/1/18 12:05 PM, Grant Taylor via Mailman-Users wrote:
> On 10/31/2018 08:14 PM, Mark Sapiro wrote:
> 
>> See 
> 
> Intriguing.
> 
> My python is quite bad, but that looks like it reads from STDIN and
> writes to STDOUT.  Which I think is not directly compatible with milters.


It's not a milter per se. It is a Postfix policy service
. The interface is
different from a milter. I don't know if there is anything comparable in
sendmail.


> But, it would serve as a starting place for a milter.


Yes, it could.


> Sadly I don't think that will work as is for me.  I'm running Sendmail
> and would need a milter.


Yes, I suspect it is Postfix specific.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] mm-handler support

2018-11-01 Thread Grant Taylor via Mailman-Users

On 10/31/2018 08:14 PM, Mark Sapiro wrote:

I think that would be good.


ACK

See my reply to Jim if you have opinions on how / when it's done.


See 


Intriguing.

My python is quite bad, but that looks like it reads from STDIN and 
writes to STDOUT.  Which I think is not directly compatible with milters.


But, it would serve as a starting place for a milter.

Sadly I don't think that will work as is for me.  I'm running Sendmail 
and would need a milter.




--
Grant. . . .
unix || die

--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] mm-handler support

2018-10-31 Thread Mark Sapiro
On 10/31/18 2:06 PM, Grant Taylor via Mailman-Users wrote:
> 
> Let me know if you'd like me to port these changes to mm-handler-2.1.10.
> 
> I may do this anyway to be running a newer mm-handler*.


I think that would be good.


> Aside:  I've often contemplated a milter that could hook into the Python
> pickles to optionally reject messages at SMTP time if a non-subscriber
> tries to send an email to a list.


See 

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] mm-handler support

2018-10-31 Thread Grant Taylor via Mailman-Users

On 10/29/2018 09:22 PM, Mark Sapiro wrote:
The most up to date version is 
.
For some info on the differences between this and the original 
,
see the thread beginning at 
.


Thank you for the links Mark.

It looks like mine is based off of the original (or a close variant 
there of).


The version I'm running:

   $VERSION = '$Id: mm-handler,v 1.2 2002/04/05 19:41:09 bwarsaw Exp $';

mm-handler-5100:

   $VERSION = '$Id: mm-handler 5100 2002-04-05 19:41:09Z bwarsaw $';

It looks like the changes consisted of the following:

 - Changing how the sendmail binary is called ($SENDMAIL) to pass 
different options:

- Change the ErrorMode from m (mail back) to q (return code)
- Change the from to be the null reverse path.
- Set to never return a DSN.
- Sets outgoing DNS parameter to only return headers.
- Sets an outgoing envelope ID.
 - I extensively re-wrote / re-factored what was a simple multi-line 
print to use MIME:: modules to build a proper DNS with all three 
sections.  (The last section is just the headers b/c of the outgoing 
SMTP parameter.)
 - I tweaked the ADDR: label to return an SMTP error (553 5.1.1 
<$list\@$server>...) error message.


Let me know if you'd like me to port these changes to mm-handler-2.1.10.

I may do this anyway to be running a newer mm-handler*.

Aside:  I've often contemplated a milter that could hook into the Python 
pickles to optionally reject messages at SMTP time if a non-subscriber 
tries to send an email to a list.




--
Grant. . . .
unix || die

--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] mm-handler support

2018-10-29 Thread Mark Sapiro
On 10/25/18 10:00 AM, Grant Taylor via Mailman-Users wrote:
> On 10/25/2018 09:22 AM, Mark Sapiro wrote:
>> Please make whatever changes you feel are needed and post them here,
>> and I will include them in the next release.
> 
> What is the authoritative version / source of mm-handler?


The most up to date version is
.
For some info on the differences between this and the original
,
see the thread beginning at
.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] mm-handler support

2018-10-25 Thread Grant Taylor via Mailman-Users

On 10/25/2018 09:22 AM, Mark Sapiro wrote:
Please make whatever changes you feel are needed and post them here, 
and I will include them in the next release.


What is the authoritative version / source of mm-handler?

I've got three different versions:

 - 2.1.10
 - 5100
 - modified form of an unknown version

I made some changes years ago to have mm-handler return a properly 
formatted DSN.  But I don't know what version it was based on.  As such, 
I can't submit patches.


I'd be willing to make similar changes to current and submit them if 
you're interested.


In hindsight I'd like to also add the Auto-Submitted: auto-generated 
header to the DSN.  And make sure it uses the Null Reverse Path.




--
Grant. . . .
unix || die

--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] mm-handler support

2018-10-25 Thread Mark Sapiro
On 10/24/18 2:52 PM, Jim Ziobro wrote:
> I used mm-handler to setup mailman here.  It is a wonderful piece of
> work!  Go Dave Champion (2006)!
> 
> There is a couple of simple things that need to be done:
>     - add the conversion to lowercase (solved over a decade ago!)
>     - handle POSTMASTER (RFC822)
> 
> I am a newbie to mailman but an old sendmail hand.  I'd be happy to make
> those changes.  Anyone else got comments about mm-handler?


Please make whatever changes you feel are needed and post them here, and
I will include them in the next release.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org