MESSAGE
DATE | 2016-02-29 |
FROM | Ruben Safir
|
SUBJECT | Subject: [Hangout-NYLXS] Fwd: Re: [Mailman-Users] speed up mailman
|
From hangout-bounces-at-nylxs.com Mon Feb 29 03:15:26 2016 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: from www.mrbrklyn.com (www.mrbrklyn.com [96.57.23.82]) by mrbrklyn.com (Postfix) with ESMTP id 8D057163DAD; Mon, 29 Feb 2016 03:15:11 -0500 (EST) X-Original-To: hangout-at-nylxs.com Delivered-To: hangout-at-nylxs.com Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by mrbrklyn.com (Postfix) with ESMTP id 9C0B7163DAB for ; Mon, 29 Feb 2016 02:36:56 -0500 (EST) Received: from [10.0.0.19] (www.mrbrklyn.com [96.57.23.82]) by mailbackend.panix.com (Postfix) with ESMTPSA id 2E5551766F for ; Mon, 29 Feb 2016 02:36:56 -0500 (EST) References: <56D3F0F6.6020307-at-msapiro.net> To: Hangout From: Ruben Safir X-Forwarded-Message-Id: <56D3F0F6.6020307-at-msapiro.net> Message-ID: <56D3F517.50908-at-panix.com> Date: Mon, 29 Feb 2016 02:36:55 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <56D3F0F6.6020307-at-msapiro.net> Subject: [Hangout-NYLXS] Fwd: Re: [Mailman-Users] speed up mailman X-BeenThere: hangout-at-nylxs.com X-Mailman-Version: 2.1.17 Precedence: list Reply-To: NYLXS Discussions List List-Id: NYLXS Discussions List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: hangout-bounces-at-nylxs.com Sender: "hangout"
any insights or opinions?
-------- Forwarded Message -------- Subject: Re: [Mailman-Users] speed up mailman Date: Sun, 28 Feb 2016 23:19:18 -0800 From: Mark Sapiro To: mailman-users-at-python.org
On 02/28/2016 10:51 PM, Ruben Safir wrote: > On 02/29/2016 01:34 AM, Mark Sapiro wrote: >> I think we can fix your issue fairly simply. >> >> Please, as I asked in my reply at >> , >> post the output from 'postconf -n' and the contents of mm_cfg.py. > > > Sorry, I got mixed up. Its just probably the frustration. Everyone > uses mailman, I don't know why I'm so stupid > >
> smtpd_recipient_restrictions = check_client_access > hash:/etc/postfix/helo_client_exceptions check_sender_access > hash:/etc/postfix/sender_checks, reject_invalid_hostname, > reject_non_fqdn_hostname, reject_non_fqdn_sender, > reject_non_fqdn_recipient, reject_unknown_sender_domain, > reject_unknown_recipient_domain, permit_mynetworks, > reject_unauth_destination, permit_mynetworks, reject_unauth_destination, > reject_invalid_hostname, reject_non_fqdn_hostname, > reject_non_fqdn_sender, reject_non_fqdn_recipient, > reject_unknown_sender_domain, reject_unknown_recipient_domain, > reject_rbl_client zen.spamhaus.org, reject_rbl_client bl.spamcop.net > reject_rbl_client cbl.abuseat.org, permit
This is almost certainly your problem. All those checks take time, especially if DNS is slow. If you send a message from a client and Postfix takes 5 seconds to accept it, it's no big deal. If Mailman sends to 10 or 20 recipients, and it takes Postfix a minute to respond, it still may be no big deal unless another two posts arrive in that minute , and so on until you have a big backlog.
I suggest that if you really want all those checks, that you set up a separate port for Mailman to send to without all those rbl lookups and recipient domain lookups. See below.
> vim /usr/lib/mailman/Mailman/mm_cfg.py > > ############################################### > # Here's where we get the distributed defaults. > > from Defaults import * > > ################################################## > # Put YOUR site-specific settings below this line. > DEFAULT_URL_PATTERN = 'http://%s/mailman/' > DEFAULT_NNTP_HOST = 'www.mrbrklyn.com' > DEFAULT_EMAIL_HOST = 'nylxs.com' > DEFAULT_URL_HOST = 'www.nylxs.com' > MTA = 'Postfix' > POSTFIX_ALIAS_CMD = '/usr/sbin/postalias' > POSTFIX_MAP_CMD = '/usr/sbin/postmap' > DELIVERY_MODULE = 'SMTPDirect' > SMTPHOST = 'mrbrklyn.com' > SMTPPORT = '25'
Here's where I'm suggesting changes. Pick a port, say 8000, although it could be anything that doesn't conflict.
Then change the above to
SMTPHOST = '127.0.0.1' SMTPPORT = 8000
(don't quote the port - it's a number, not a string)
Also, while you're at it I suggest adding
VERP_PASSWORD_REMINDERS = Yes VERP_PERSONALIZED_DELIVERIES = Yes VERP_DELIVERY_INTERVAL = 1
for more reliable bounce processing.
But, see below for changes to Postfix master.cf that you must make first.
> add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST) > add_virtualhost('lists.mrbrklyn.com', 'mrbrklyn.com') > IMAGE_LOGOS = '/mailmanicons/' > > > > There is another one in apache: > I don't know if it is being used. > vim /usr/local/apache/conf/mailman/Mailman/mm_cfg.py
No, that shouldn't be used.
In Postfix master.cf add the following stanza
127.0.0.1:8000 inet n - - - - smtpd -o smtpd_authorized_xforward_hosts=127.0.0.0/8 -o mynetworks=127.0.0.0/8 -o smtpd_recipient_restrictions=permit_mynetworks,reject -o smtpd_client_restrictions= -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_data_restrictions=
Make this addition to Postfix master.cf and reload Postfix. Only after you've done that and Postfix is listening on the loopback interface port 8000, make the changes to mm_cfg.py and restart Mailman.
-- Mark Sapiro The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ Mailman-Users mailing list Mailman-Users-at-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/mrbrklyn%40panix.com
_______________________________________________ hangout mailing list hangout-at-nylxs.com http://www.nylxs.com/
|
|