[Mailman-Users] {Spam?} Re: OT - Smart .forward replacement?

2018-11-25 Thread Mark Sapiro
On 11/25/18 12:28 PM, Grant Taylor via Mailman-Users wrote:
> On 11/25/18 1:03 PM, Lindsay Haisley (linode) wrote:
>> mail redirected through a .forward  will always fail SPF validation.
> 
> That is not always accurate.  It is relatively easy to configure an MTA
> to support Sender Rewriting Scheme, either for everything that is sent
> out or just things that don't originate from the system.
> 
> Thus a .forward is not guaranteed to fail SPF validation.  In fact, I
> would expect SPF validation to succeed on servers that are configured
> with SRS.


Yes, but in the context of this thread which is DMARC, SPF will pass,
but the SPF domain won't align with the From: domain so DMARC validation
by SPF will fail.


-- 
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] OT - Smart .forward replacement?

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

On 11/25/18 1:03 PM, Lindsay Haisley (linode) wrote:

mail redirected through a .forward  will always fail SPF validation.


That is not always accurate.  It is relatively easy to configure an MTA 
to support Sender Rewriting Scheme, either for everything that is sent 
out or just things that don't originate from the system.


Thus a .forward is not guaranteed to fail SPF validation.  In fact, I 
would expect SPF validation to succeed on servers that are configured 
with SRS.




--
Grant. . . .
unix || die



smime.p7s
Description: S/MIME Cryptographic Signature
--
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] OT - Smart .forward replacement?

2018-11-25 Thread Lindsay Haisley (linode)
On Nov 25, 2018, at 1:06 PM, Mark Sapiro  wrote:
> 
> A .forward normally does not cause issues with DMARC because .forward
> redirection normally does not transform the message in ways that break
> DKIM signatures.

Which assumes that the sending system includes a DKIM signature in the original 
message. If it does not, and the receiving system relies on SPF for DMARC 
alignment, then DMARC will fail since mail redirected through a .forward  will 
always fail SPF validation.

Sent from my iPhone

--
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] OT - Smart .forward replacement?

2018-11-25 Thread Mark Sapiro
On 11/25/18 11:12 AM, Lindsay Haisley wrote:
> 
> Similarly, if you're using from_is_list in Mailman,
> or dmarc_moderation_action, the domain name associated with the list
> must have a proper SPF record.


These days, publishing SPF and DKIM signing outgoing mail is good
practice in general, but it has nothing to do with DMARC unless the list
domain publishes a DMARC policy.

-- 
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] What file to Delete

2018-11-25 Thread Mark Sapiro
On 11/25/18 10:50 AM, David Andrews wrote:
> I have a couple lists that had large numbers of subscribe attempts that
> are now being held for confirmation -- tens of thousands of them. Since
> there is no choice in the UI to delete them all at once -- what file do
> I delete to get rid of them?  I am running 2.1.27 cPanel, although I
> don't think that matters. I do have access to the command line.


I suspect you mean the subscriptions are waiting moderator approval in
the admindb UI.

If these are the only things waiting moderator approval for a list, you
can remove the list's request.pck file and that will remove all
moderator requests for the list. A new file will be automatically
recreated when needed.

In cPanel this is
/usr/local/cpanel/3rdparty/mailman/lists//request.pck.

If you want to be more selective, see the scripts at
 and
. You would need to copy these to
/usr/local/cpanel/3rdparty/mailman/bin/ and run them as a user that has
write access to Mailman. See a brief description of these at
https://www.msapiro.net/scripts/ or install them and run with the --help
option.

-- 
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] OT - Smart .forward replacement?

2018-11-25 Thread Lindsay Haisley
On Sun, 2018-11-25 at 11:06 -0800, Mark Sapiro wrote:
> A .forward normally does not cause issues with DMARC because .forward
> redirection normally does not transform the message in ways that break
> DKIM signatures. Thus if the original message was DKIM signed by a
> domain "aligned" with the From: domain, the forwarded message should
> still pass DMARC. There is only an issue if the original sender was
> relying on SPF only to pass DMARC.

Similarly, if you're using from_is_list in Mailman,
or dmarc_moderation_action, the domain name associated with the list
must have a proper SPF record.

-- 
Lindsay Haisley   | "The first casualty when
FMP Computer Services | war comes is truth."
512-259-1190  |
http://www.fmp.com| -- Hiram W Johnson

--
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] OT - Smart .forward replacement?

2018-11-25 Thread Mark Sapiro
On 11/24/18 9:17 PM, Jayson Smith wrote:
> 
> I had
> a Mailman/DNS problem after upgrading a lot of packages. A message came
> in, Mailman couldn't properly look up the DMARC policy of the sending
> ISP, didn't munge the From: and sent the message on its way...


What was the lookup issue? I.e., what were the messages in Mailman's
error and maybe vette logs? What Mailman version is this?, beginning
with Mailman 2.1.25, some failures in DNS lookups of DMARC policy result
in mitigations being applied.

-- 
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] OT - Smart .forward replacement?

2018-11-25 Thread Mark Sapiro
On 11/25/18 10:43 AM, Lindsay Haisley wrote:
> 
> How does a .forward problem relate to Mailman? Please excuse my
> ignorance if this is obvious. I use Courier-MTA and the equivalent
> facility is the .courier file, which redirects email. In the case of
> Mailman mailing lists, I use the courier-to-mailman.py as a target in a
> .courier file to redirect _internally_ into Mailman. Otherwise external
> redirection in a .forward file (which is an ancient and venerable
> sendmail facility) can (probably will) cause problems if the
> redirection is from a "p=reject" domain to a service, such as Gmail,
> which honors this.


A .forward normally does not cause issues with DMARC because .forward
redirection normally does not transform the message in ways that break
DKIM signatures. Thus if the original message was DKIM signed by a
domain "aligned" with the From: domain, the forwarded message should
still pass DMARC. There is only an issue if the original sender was
relying on SPF only to pass DMARC.

-- 
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


[Mailman-Users] What file to Delete

2018-11-25 Thread David Andrews
I have a couple lists that had large numbers of subscribe attempts 
that are now being held for confirmation -- tens of thousands of 
them. Since there is no choice in the UI to delete them all at once 
-- what file do I delete to get rid of them?  I am running 2.1.27 
cPanel, although I don't think that matters. I do have access to the 
command line.


Dave

--
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] OT - Smart .forward replacement?

2018-11-25 Thread Lindsay Haisley
On Sun, 2018-11-25 at 00:17 -0500, Jayson Smith wrote:
> I've been using .forward to forward Email from some user mailboxes to 
> other addresses. Normally this works just fine, but a few weeks ago a 
> situation happened which demonstrates how it can be an epic fail. I had 
> a Mailman/DNS problem after upgrading a lot of packages.

How does a .forward problem relate to Mailman? Please excuse my
ignorance if this is obvious. I use Courier-MTA and the equivalent
facility is the .courier file, which redirects email. In the case of
Mailman mailing lists, I use the courier-to-mailman.py as a target in a
.courier file to redirect _internally_ into Mailman. Otherwise external
redirection in a .forward file (which is an ancient and venerable
sendmail facility) can (probably will) cause problems if the
redirection is from a "p=reject" domain to a service, such as Gmail,
which honors this.

> A message came 
> in, Mailman couldn't properly look up the DMARC policy of the sending 
> ISP, didn't munge the From: and sent the message on its way, and of 
> course the message was from AOL, just about everybody rejected it, I 
> woke up to fifty-five bounce reports…and all those bounce reports were 
> also forwarded to an Email account on an Internet by telephone service, 
> where deleting them was extremely slow.

Setting from_is_list to "Munge From" in General Options will apply
DMARC mitigation to _all_ From addresses. I believe this takes
precedence over dmarc_moderation_action which requires a DNS lookup of
the sender's DMARC policy.

It might be a good idea to use this setting preemptively any time you
make system changes (or may have problems) which may affect the ability
of Mailman to do a proper DNS lookup of a sender.s DMARC policy.

> What I'm looking for is possibly something that checks mailboxes from 
> time to time, and forwards all incoming messages that meet certain 
> parameters, taking care of DMARC difficulties along the way so the 
> forwarded messages will be accepted by the remote servers. E.G. my mom 
> uses that net by phone service, and would like to see Email which comes 
> to her regular Email address, but doesn't want to spend time deleting 
> Amazon order confirmations, Mailman moderation notices, and other 
> routine, automated, or irrelevant messages. Does such a thing exist?

Leaving from_is_list set to "Munge From" will take care of any DNS
outages, if you don't mind doing this. When it comes to specialized
software to do things such as scan mailboxes and take intelligent
action, I've found that I pretty much have to write my own, python
being my preferred language.

-- 
Lindsay Haisley   | "The first casualty when
FMP Computer Services | war comes is truth."
512-259-1190  |
http://www.fmp.com| -- Hiram W Johnson


--
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