Re: [Mailman-Users] Message discarded without reason logged in vette

2016-07-07 Thread Mark Sapiro
On 7/7/16 3:58 PM, Hirayama, Pat wrote:
> So, I found a 10 year old post where Mark Sapiro described some of the 
> reasons why "Message discarded" with only a message id and no reason happens:
> 
> Examples are when nothing is left after content filtering, a post from
> a moderated user when action is discard, a post from a non-member in
> discard_these_nonmembers, a post from a non-member with generic action
> discard, some cases of a text/html post when ARCHIVE_HTML_SANITIZER =
> 0 and a post matching a header_filter_rule with discard action.
> 
> I was wondering if there was a more complete list someplace?  Mostly because 
> I had this happen to one of my users 3 weeks ago, and I think that I've 
> managed to rule out everything that Mark wrote back then.


If the message in the vette log is "Message discarded, msgid: <...>",
that message is only produced in standard Mailman by IncomingRunner when
a handler raises DiscardMessage. Again in standard Mailman, the only
Handlers that do that are:

MimeDel
 - content filtering removes the entire message and filter_action is
other than Reject

Moderate
 - a post is from a moderated member with member_moderation_action Discard
 - a post is from a non-member in discard_these_nonmembers or with
generic_nonmember_action Discard

Scrubber
 - if the top level MIME type is text/html and ARCHIVE_HTML_SANITIZER =
0 (not the default, and this only applies if scrub_nondigest is Yes)

SpamDetect
 - when a message matches KNOWN_SPAMMERS
 - A post is From: a domain with DMARC p=reject (or maybe quarantine)
and dmarc_moderation_action is Discard
 - a message matches header_filter_rules with Discard action or with
Reject action and the message is to -owner

This is the current complete list for standard GNU Mailman. It is
essentially the same as in the old post with the addition of
dmarc_moderation_action. If your Mailman is from a downstream package or
has local mods, you can

grep -r DiscardMessage /path/to/Mailman/Handlers

to see if there are others

-- 
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] Message discarded without reason logged in vette

2016-07-07 Thread Hirayama, Pat
So, I found a 10 year old post where Mark Sapiro described some of the reasons 
why "Message discarded" with only a message id and no reason happens:

Examples are when nothing is left after content filtering, a post from
a moderated user when action is discard, a post from a non-member in
discard_these_nonmembers, a post from a non-member with generic action
discard, some cases of a text/html post when ARCHIVE_HTML_SANITIZER =
0 and a post matching a header_filter_rule with discard action.

I was wondering if there was a more complete list someplace?  Mostly because I 
had this happen to one of my users 3 weeks ago, and I think that I've managed 
to rule out everything that Mark wrote back then.

Thanks,
-p
--
Pat Hirayama
Systems Engineer / 206.667.4856 / phira...@fredhutch.org / Fred Hutch / Cures 
Start Here
CIT | Enterprise IT Services / Advancing IT and Data Services to Accelerate the 
Elimination of Disease

--
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] Mailman installation does not work

2016-07-07 Thread Mark Sapiro
On 7/7/16 11:02 AM, Bob wrote:
> 
> On 2016-07-07 10:02 AM, Mark Sapiro wrote:
>> On 7/6/16 10:38 AM, Bob Lydiate wrote:
>>
>>> When I try to access the web interface, I am asked if I want to open
>>> a file
>>> called 'admin' instead of opening a webpage called admin.
>>
>> This is an issue with your Apache config. See
>> .
>>
> 
> I have done what this page says as far as I can tell and it still
> doesn't serve up a webpage. What I have in
> '/etc/apache2/sites-enabled/mailman.conf' is
> 
>  
> AllowOverride None
> Options ExecCGI
> AddHandler cgi-script .cgi
> Require all granted
>
>
> Options FollowSymlinks
> AllowOverride None
> Require all granted
>
>
> AllowOverride None
> Require all granted
>

Plus more below...

>>
>>> I did alter the config setup to have mydomain.ca rather than
>>> lists.mydomain.ca, but that is the only change I made to the config
>>> as it
>>> came through.
>>
>> What exactly did you change?
> from /etc/mailman/mm_cfg.py
> DEFAULT_EMAIL_HOST = 'faithwalk.ca'
> DEFAULT_URL_HOST   = 'faithwalk.ca'
> 
> and from /etc/apache2/sites-enabled/mailman.conf
> 
> ServerName faithwalk.ca
> DocumentRoot /var/www/
> ErrorLog /var/log/apache2/lists-error.log
> CustomLog /var/log/apache2/lists-access.log combined
> 
> 
> Options FollowSymLinks
> AllowOverride None
> 
> 
> Alias /pipermail/ /var/lib/mailman/archives/public/
> Alias /images/mailman/ /usr/share/images/mailman/
> ScriptAlias /admin /usr/lib/cgi-bin/mailman/admin
> ScriptAlias /admindb /usr/lib/cgi-bin/mailman/admindb
> ScriptAlias /confirm /usr/lib/cgi-bin/mailman/confirm
> ScriptAlias /create /usr/lib/cgi-bin/mailman/create
> ScriptAlias /edithtml /usr/lib/cgi-bin/mailman/edithtml
> ScriptAlias /listinfo /usr/lib/cgi-bin/mailman/listinfo
> ScriptAlias /options /usr/lib/cgi-bin/mailman/options
> ScriptAlias /private /usr/lib/cgi-bin/mailman/private
> ScriptAlias /rmlist /usr/lib/cgi-bin/mailman/rmlist
> ScriptAlias /roster /usr/lib/cgi-bin/mailman/roster
> ScriptAlias /subscribe /usr/lib/cgi-bin/mailman/subscribe
> ScriptAlias /mailman/ /usr/lib/cgi-bin/mailman/
> 


Your Apache config looks OK. Have you enabled mod_cgi?


> The things that I am searching out are the things mentioned above plus
> mail not being delivered through the list. I am pretty focused on
> figuring out the web interface problem first as it was the first problem
> I noticed. I have figured out that mailman is working, I can create
> lists and add members through the command line, but the list mail is not
> getting delivered. The mail log says it was sent, but I do not receive
> it on any of the addresses I added to my testlist.


See .

Also, when you say "The mail log says it was sent" do you mean you see
entries in /var/log/mail.log saying the mail to a final recipient was
successfully delivered to that recipient's MX. If so, the problem is
between that MX and the final recipient's mailbox. If that's not what
you mean, what is in the mail.log?

-- 
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] Mailman installation does not work

2016-07-07 Thread Bob

Thanks for responding Mark. My replies to your comments are below.

On 2016-07-07 10:02 AM, Mark Sapiro wrote:

On 7/6/16 10:38 AM, Bob Lydiate wrote:

Problem 1
When I run 'check_perms -f' it tells me that the permissions on
/var/lib/mailman/cron bad group (has:root, expected list) (fixing)
this problem is repeated with 9 other scripts. When I check the actual
directory '/var/lib/mailman' I find that these files are all links to
'/usr/lib/*; where the correct group is set.


You can ignore the check_perms error. It comes about because the Debian
(and hence Ubuntu) package patches check_perms to use os.lstat rather
than os.stat and thus looks at the mode and group of the symlink instead
of the target. The mode and group of the symlink are irrelevant and
can't be changed anyway.



Thank you for pointing this out. I was hoping that this was the case.






When I try to access the web interface, I am asked if I want to open a file
called 'admin' instead of opening a webpage called admin.


This is an issue with your Apache config. See
.



I have done what this page says as far as I can tell and it still 
doesn't serve up a webpage. What I have in 
'/etc/apache2/sites-enabled/mailman.conf' is


 
AllowOverride None
Options ExecCGI
AddHandler cgi-script .cgi
Require all granted
   
   
Options FollowSymlinks
AllowOverride None
Require all granted
   
   
AllowOverride None
Require all granted
   




when I run '/etc/init.d/mailman start' or the equivalent for postfix or
apache, I get no errors.


OK.



I did alter the config setup to have mydomain.ca rather than
lists.mydomain.ca, but that is the only change I made to the config as it
came through.


What exactly did you change?

from /etc/mailman/mm_cfg.py
DEFAULT_EMAIL_HOST = 'faithwalk.ca'
DEFAULT_URL_HOST   = 'faithwalk.ca'

and from /etc/apache2/sites-enabled/mailman.conf

ServerName faithwalk.ca
DocumentRoot /var/www/
ErrorLog /var/log/apache2/lists-error.log
CustomLog /var/log/apache2/lists-access.log combined


Options FollowSymLinks
AllowOverride None


Alias /pipermail/ /var/lib/mailman/archives/public/
Alias /images/mailman/ /usr/share/images/mailman/
ScriptAlias /admin /usr/lib/cgi-bin/mailman/admin
ScriptAlias /admindb /usr/lib/cgi-bin/mailman/admindb
ScriptAlias /confirm /usr/lib/cgi-bin/mailman/confirm
ScriptAlias /create /usr/lib/cgi-bin/mailman/create
ScriptAlias /edithtml /usr/lib/cgi-bin/mailman/edithtml
ScriptAlias /listinfo /usr/lib/cgi-bin/mailman/listinfo
ScriptAlias /options /usr/lib/cgi-bin/mailman/options
ScriptAlias /private /usr/lib/cgi-bin/mailman/private
ScriptAlias /rmlist /usr/lib/cgi-bin/mailman/rmlist
ScriptAlias /roster /usr/lib/cgi-bin/mailman/roster
ScriptAlias /subscribe /usr/lib/cgi-bin/mailman/subscribe
ScriptAlias /mailman/ /usr/lib/cgi-bin/mailman/





I have checked the archives and have searched out the issues that I
suspect, but have found nothing that worked to fix these issues.


What exactly are your issues? What doesn't work? What do you do that
produces a result different from what you expect, and what is the result?

The things that I am searching out are the things mentioned above plus 
mail not being delivered through the list. I am pretty focused on 
figuring out the web interface problem first as it was the first problem 
I noticed. I have figured out that mailman is working, I can create 
lists and add members through the command line, but the list mail is not 
getting delivered. The mail log says it was sent, but I do not receive 
it on any of the addresses I added to my testlist.



--
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] Mailman 2 + Postfix + virtual domains + lists subdomain

2016-07-07 Thread Mark Sapiro
On 7/7/16 1:43 AM, Jérôme wrote:
>
> Le 2016-07-06 23:43, Mark Sapiro a écrit :
>
>> VIRTUAL_MAILMAN_LOCAL_DOMAIN = 'localhost'
>
> This was the missing part. I did it and now it works.
>
> Should this be mentionned in the doc page ?
>
> https://www.gnu.org/software/mailman/mailman-install/postfix-virtual.html


It is explained in Defaults.py ;)

It probably should be mentioned on that page, and that page should
probably be rewritten anyway, as it is more complicated than necessary.

I'll work on it. Thanks for the feedback.

-- 
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] Mailman installation does not work

2016-07-07 Thread Mark Sapiro
On 7/6/16 10:38 AM, Bob Lydiate wrote:
> 
> Problem 1
> When I run 'check_perms -f' it tells me that the permissions on
> /var/lib/mailman/cron bad group (has:root, expected list) (fixing)
> this problem is repeated with 9 other scripts. When I check the actual
> directory '/var/lib/mailman' I find that these files are all links to
> '/usr/lib/*; where the correct group is set.


You can ignore the check_perms error. It comes about because the Debian
(and hence Ubuntu) package patches check_perms to use os.lstat rather
than os.stat and thus looks at the mode and group of the symlink instead
of the target. The mode and group of the symlink are irrelevant and
can't be changed anyway.


> When I try to access the web interface, I am asked if I want to open a file
> called 'admin' instead of opening a webpage called admin.


This is an issue with your Apache config. See
.


> when I run '/etc/init.d/mailman start' or the equivalent for postfix or
> apache, I get no errors.


OK.


> I did alter the config setup to have mydomain.ca rather than
> lists.mydomain.ca, but that is the only change I made to the config as it
> came through.


What exactly did you change?


> I have checked the archives and have searched out the issues that I
> suspect, but have found nothing that worked to fix these issues.


What exactly are your issues? What doesn't work? What do you do that
produces a result different from what you expect, and what is the result?


-- 
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] Mailman installation does not work

2016-07-07 Thread Bob Lydiate
I am reinstalling Mailman after having to change servers. I am using Ubuntu
16.04, Apache, Postfix, Mailman. I have apache and postfix both working and
serving mail and web. I have installed and re-installed Mailman a couple of
times to try and get it working right and now have no idea what is creating
the problem that stops it from working. I have several issues that I can
identify, and I am sure there are several that I have missed.

Problem 1
When I run 'check_perms -f' it tells me that the permissions on
/var/lib/mailman/cron bad group (has:root, expected list) (fixing)
this problem is repeated with 9 other scripts. When I check the actual
directory '/var/lib/mailman' I find that these files are all links to
'/usr/lib/*; where the correct group is set.

When I try to access the web interface, I am asked if I want to open a file
called 'admin' instead of opening a webpage called admin.

when I run '/etc/init.d/mailman start' or the equivalent for postfix or
apache, I get no errors.

I did alter the config setup to have mydomain.ca rather than
lists.mydomain.ca, but that is the only change I made to the config as it
came through.

I have checked the archives and have searched out the issues that I
suspect, but have found nothing that worked to fix these issues.

Bob
--
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] Mailman 2 + Postfix + virtual domains + lists subdomain

2016-07-07 Thread Jérôme
Thanks again, Mark, for the detailed explaination.

Le 2016-07-06 23:43, Mark Sapiro a écrit :
> On 7/6/16 1:51 PM, Jérôme wrote:

> VIRTUAL_MAILMAN_LOCAL_DOMAIN = 'localhost'

This was the missing part. I did it and now it works.

Should this be mentionned in the doc page ?

https://www.gnu.org/software/mailman/mailman-install/postfix-virtual.html

I don't know how specific it is.

From a quick search, it only appears in a doc page which has an explicit
"not recommended" label:

https://wiki.list.org/DOC/Integrating%20Mailman%20with%20postfix

-- 
Jérôme

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