Re: [Mailman-Users] Debugging user unknown

2018-02-17 Thread Mark Sapiro
On 02/17/2018 06:09 AM, Alexander wrote:
> 
> I am trying to setup mailman on my linux server running postfix and
> virtual host integration. So far I have updated main.cf to include:
> 
> alias_database = hash:/etc/mail/aliases, hash:/var/lib/mailman/data/aliases

It isn't necessary to include hash:/var/lib/mailman/data/aliases in
alias_database. It only says that /var/lib/mailman/data/aliases.db will
be updated if you issue a "newaliases" or "sendmail -bi" command which
isn't needed as Mailman issues the appropriate "postalias" command
whenever it updates /var/lib/mailman/data/aliases.


> alias_maps = hash:/etc/mail/aliases, hash:/var/lib/mailman/data/aliases

Good.


> virtual_alias_maps = hash:/var/lib/mailman/data/virtual-mailman,
> pgsql:/etc/postfix/pgsql_virtual_alias_maps.cf,
> hash:/var/lib/mailman/data/virtual-mailman


You have hash:/var/lib/mailman/data/virtual-mailman listed twice.

Do you have "XXX.com" in virtual_alias_domains? You probably need this
unless "XXX.com" is in virtual_mailbox_domains.


> Ran genaliases to create /var/lib/mailman/data/aliases and
> /var/lib/mailman/data/virtual-mailman which seem to contain the correct
> settings
> 
> However emails to mailmain@domain and list-staff@domain are bounced with
> unknown user:
> 
> Feb 17 22:01:32 tinyturtle postfix/virtual[1404]: 5F4DE460402:
> to=, relay=virtual, delay=0.12, delays=0.04/0/0/0.09,
> dsn=5.1.1, status=bounced (unknown user: "mail...@xxx.com")
> Feb 17 22:06:18 tinyturtle postfix/virtual[1731]: 3D12D460402:
> to=, relay=virtual, delay=0.08,
> delays=0.03/0.01/0/0.04, dsn=5.1.1, status=bounced (unknown user:
> "list-st...@xxx.com")
> 
> Since postfix/virtual is doing the bouncing I am suspected that the
> mapping (virtual-mailman) was picked up, and that i cannot find the
> mapping in aliases, but I could be wrong here.


Postfix virtual is the delivery agent for virtual_mailbox_domains, not
virtual_alias_domains.

It is possible to use virtual_alias_maps to map addresses that are in a
virtual_mailbox_domain, see
, so I'm not
sure why this isn't working, but if you still have issues after reading
the above link, post the output from 'postconf -n'.

-- 
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] Debugging user unknown

2018-02-17 Thread Alexander

G'day all,

I am trying to setup mailman on my linux server running postfix and 
virtual host integration. So far I have updated main.cf to include:


alias_database = hash:/etc/mail/aliases, hash:/var/lib/mailman/data/aliases
alias_maps = hash:/etc/mail/aliases, hash:/var/lib/mailman/data/aliases
virtual_alias_maps = hash:/var/lib/mailman/data/virtual-mailman, 
pgsql:/etc/postfix/pgsql_virtual_alias_maps.cf, 
hash:/var/lib/mailman/data/virtual-mailman


Ran genaliases to create /var/lib/mailman/data/aliases and 
/var/lib/mailman/data/virtual-mailman which seem to contain the correct 
settings


However emails to mailmain@domain and list-staff@domain are bounced with 
unknown user:


Feb 17 22:01:32 tinyturtle postfix/virtual[1404]: 5F4DE460402: 
to=, relay=virtual, delay=0.12, delays=0.04/0/0/0.09, 
dsn=5.1.1, status=bounced (unknown user: "mail...@xxx.com")
Feb 17 22:06:18 tinyturtle postfix/virtual[1731]: 3D12D460402: 
to=, relay=virtual, delay=0.08, 
delays=0.03/0.01/0/0.04, dsn=5.1.1, status=bounced (unknown user: 
"list-st...@xxx.com")


Since postfix/virtual is doing the bouncing I am suspected that the 
mapping (virtual-mailman) was picked up, and that i cannot find the 
mapping in aliases, but I could be wrong here.


I have also run newaliases to ensure the local aliases are updated, but 
this did not resolve this issue.


Any pointers on what else to do, to help me debug my configuration.

Kind regards
Alex
--
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] messages getting auto discarded

2018-02-17 Thread Jim Dory
Thanks for your help Mark.. I think your last sentence nailed it.

/jim

On Fri, Feb 16, 2018 at 11:18 PM, Mark Sapiro  wrote:

> On 02/16/2018 11:55 PM, Jim Dory wrote:
> > We are on Mailman 2.1.23. CPanel version.
> >
> > Here is a typical auto discard vette log entry from a guy who isn't
> > subscribed on the particular email he used, but is on other email
> addresses:
> >
> > Feb 16 18:13:35 2018 (1341) Message discarded, msgid: <
> > calkxjosaahubcrzcmmbwfpsrcjdzpwiwy--n95_1bdk4kni...@mail.gmail.com>'
> >list: Nome-announce,
> >handler: Moderate
>
>
> This is a normal non-member discard. it is either because the non-member
> address is in discard_these_nonmembers or not in any *_these_nonmembers
> and generic_nonmember_action is Discard.
>
>
> > This message went to a nome-announce.bounces "Auto discard notification"
> I
> > can actually see the message in that notification.
>
>
> Right. I forgot about forward_auto_discards.
>
>
> > What has changed in the last month or two is when a non-member used to
> try
> > to post, I would get a nome-announce-bounces "Nome-announce post from
> > some...@nome.net requires approval" and the message would be "Post to a
> > moderated list".
>
>
> That should only happen if the post is from a member whose mod bit is
> set and member_moderation_action is Hold.
>
>
> > In that case I could then go into the administrative
> > interface "Tend to pending moderator requests" and review who had tried
> to
> > post and act on it one way or another. If it was a local non-spam email I
> > could write to the person and tell them to subscribe and give
> instructions,
> > or to use their subscribed email account.
>
>
> What you are describing is more like a post being held because
> generic_nonmember_action is Hold, but then the reason is 'Post by
> non-member to a members-only list'
>
>
> > But now it seems like if anyone
> > tries to post with an unsubscribed account, I don't see them unless I go
> > through the (up to) hundreds of "Auto discard notification"s. So I'm
> > thinking now it isn't to do with any of my spam filters because I haven't
> > touched them for several months.. except I did add that ^parsons@nome
> \.net$
> > last entry in the sender filters not too long ago.
>
>
> It has nothing to do with your spam filters. I think you, perhaps
> inadvertently, changed Privacy options... -> Sender filters ->
> generic_nonmember_action from Hold to Discard.
>
> --
> 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/
> james%40dorydesign.com
>
--
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] messages getting auto discarded

2018-02-17 Thread Mark Sapiro
On 02/16/2018 11:55 PM, Jim Dory wrote:
> We are on Mailman 2.1.23. CPanel version.
> 
> Here is a typical auto discard vette log entry from a guy who isn't
> subscribed on the particular email he used, but is on other email addresses:
> 
> Feb 16 18:13:35 2018 (1341) Message discarded, msgid: <
> calkxjosaahubcrzcmmbwfpsrcjdzpwiwy--n95_1bdk4kni...@mail.gmail.com>'
>list: Nome-announce,
>handler: Moderate


This is a normal non-member discard. it is either because the non-member
address is in discard_these_nonmembers or not in any *_these_nonmembers
and generic_nonmember_action is Discard.


> This message went to a nome-announce.bounces "Auto discard notification" I
> can actually see the message in that notification.


Right. I forgot about forward_auto_discards.


> What has changed in the last month or two is when a non-member used to try
> to post, I would get a nome-announce-bounces "Nome-announce post from
> some...@nome.net requires approval" and the message would be "Post to a
> moderated list".


That should only happen if the post is from a member whose mod bit is
set and member_moderation_action is Hold.


> In that case I could then go into the administrative
> interface "Tend to pending moderator requests" and review who had tried to
> post and act on it one way or another. If it was a local non-spam email I
> could write to the person and tell them to subscribe and give instructions,
> or to use their subscribed email account.


What you are describing is more like a post being held because
generic_nonmember_action is Hold, but then the reason is 'Post by
non-member to a members-only list'


> But now it seems like if anyone
> tries to post with an unsubscribed account, I don't see them unless I go
> through the (up to) hundreds of "Auto discard notification"s. So I'm
> thinking now it isn't to do with any of my spam filters because I haven't
> touched them for several months.. except I did add that ^parsons@nome\.net$
> last entry in the sender filters not too long ago.


It has nothing to do with your spam filters. I think you, perhaps
inadvertently, changed Privacy options... -> Sender filters ->
generic_nonmember_action from Hold to Discard.

-- 
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] messages getting auto discarded

2018-02-17 Thread Jim Dory
We are on Mailman 2.1.23. CPanel version.

Here is a typical auto discard vette log entry from a guy who isn't
subscribed on the particular email he used, but is on other email addresses:

Feb 16 18:13:35 2018 (1341) Message discarded, msgid: <
calkxjosaahubcrzcmmbwfpsrcjdzpwiwy--n95_1bdk4kni...@mail.gmail.com>'
   list: Nome-announce,
   handler: Moderate

This message went to a nome-announce.bounces "Auto discard notification" I
can actually see the message in that notification.

What has changed in the last month or two is when a non-member used to try
to post, I would get a nome-announce-bounces "Nome-announce post from
some...@nome.net requires approval" and the message would be "Post to a
moderated list". In that case I could then go into the administrative
interface "Tend to pending moderator requests" and review who had tried to
post and act on it one way or another. If it was a local non-spam email I
could write to the person and tell them to subscribe and give instructions,
or to use their subscribed email account. But now it seems like if anyone
tries to post with an unsubscribed account, I don't see them unless I go
through the (up to) hundreds of "Auto discard notification"s. So I'm
thinking now it isn't to do with any of my spam filters because I haven't
touched them for several months.. except I did add that ^parsons@nome\.net$
last entry in the sender filters not too long ago.

On Fri, Feb 16, 2018 at 7:04 PM, Mark Sapiro  wrote:

> On 02/16/2018 11:09 AM, Jim Dory wrote:
> > I've gotten a ton of spam directed at our mailing list so I set up some
> > auto discard filters. Unfortunately I don't know regular expressions so
> may
> > have misconfigured - result is some seemingly valid messages getting
> > discarded (could be different reason than my filters).
> >
> > A couple yesterday were from un-subscribed users. but usually I get a
> > bounce saying it is held for moderation.. though not in this case. I
> don't
> > always check the auto discard messages because of the number of them,
> but a
> > registered user sent an email that never showed up as a bounce (held for
> > moderation) or as accepted, so I assume it was auto discarded as well.
>
>
> First, you need to look at logs. Mailman's vette log will have a message
> like
>
> Message discarded, msgid: ...'
> list: ...,
> handler: ...
>
> for each discarded message. In the case of header_filter_rules, the
> handler will be SpamDetect.
>
> Note that if you change the action to Hold,the vette log message will be
>
>  post from  held, message-id=<...>: 
>
> and if your Mailman is 2.1.26,  will tell you which regexp
> matched. Prior to 2.1.26 it just says "message matched a filter rule"
>
>
> > Here's my filter config for subject:
> > ...
>
>
> You should be aware that these regexps are matched case-insensitively.
> You can't make them be case-sensitive.
>
>
> > and legacy:
> > # Lines that *start* with a '#' are comments.
>
> For bounce_matching_headers it appears you just have the defaults which
> probably never match as they are over 15 years old, and these result in
> Holds, not Discards.
> >
> > and email:
> >
> ...
>
> If these are in discard_these_nonmembers, the handler will be Moderate.
>
>
> > The subject on one discarded msg was (from unsubscribed user - just used
> > wrong email):
> > MEDITATION! RURAL BUSINESS FINANCE! Register today.
> >
> > And another subject same situation:
> > SPARC MEETING
> >
> > Message sources didn't give me any clues, but I could provide one if it
> > would help.
>
>
> How are you seeing these things if the messages are discarded?
>
> --
> 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/
> james%40dorydesign.com
>
--
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