[Mailman-Users] Permissions error

Mark Sapiro mark at msapiro.net
Thu Jul 2 17:23:23 CEST 2015


On 07/02/2015 07:56 AM, Steve Matzura wrote:
> I have a new Mailman implementation connected to Postfix which is in
> turn connected to Dovecot. These two components are working correctly,
> as I have mailboxes set up with them and have created a test Mailman
> mailing list and received confirmation that it has in fact been
> created. Now I'm attempting to subscribe a test user in the normal
> way, by sending an email to {list-name}-subscribe at MyDomain.com. I have
> not received a subscription confirmation, but the following
> information from /var/log/mailman/error shows a problem:
> 
> Jul 02 14:15:01 2015 gate_news(18693): Traceback (most recent call
> last):
> Jul 02 14:15:01 2015 gate_news(18693):   File
> "/usr/lib/mailman/cron/gate_news", line 293, in <module>
> Jul 02 14:15:01 2015 gate_news(18693):      main()
> Jul 02 14:15:01 2015 gate_news(18693):   File
> "/usr/lib/mailman/cron/gate_news", line 268, in main
> Jul 02 14:15:01 2015 gate_news(18693):      lock.lock(timeout=0.5)
> Jul 02 14:15:01 2015 gate_news(18693):   File
> "/usr/lib/mailman/Mailman/LockFile.py", line 243, in lock
> Jul 02 14:15:01 2015 gate_news(18693):      self.__write()
> Jul 02 14:15:01 2015 gate_news(18693):   File
> "/usr/lib/mailman/Mailman/LockFile.py", line 422, in __write
> Jul 02 14:15:01 2015 gate_news(18693):      fp = open(self.__tmpfname,
> 'w')
> Jul 02 14:15:01 2015 gate_news(18693): IOError :  [Errno 13]
> Permission denied:
> '/var/lock/mailman/gate_news.lock.{my-system-name}.{MyDomain.com}.18693.0'
> Here are the directory permissions:
> 
> drwxrwsr-x 2 root mailman 80 Jul  2 13:57 mailman
> lrwxrwxrwx 1 root root 11 Sep 14  2012 lock -> ../run/lock


gate_news runs every 5 minutes. do you see this error every 5 minutes?
Have you run Mailman's bin/check_perms?

In any case, issues with gate_news only affect gating from usenet of
those lists that have Mail<->News gateways -> gateway_to_mail = Yes.


> I also receive messages like these about every fifteen minutes in
> /var/log/mailman/bounce:
> 
> Jul 02 14:42:12 2015 (1308) post to mailman from
> mailman-owner@{my-domain.com}, size=1736,
> message-id=<mailman.53.1435726803.13146.mailman@{my-domain.com}>, 1
> failures
> Jul 02 14:42:16 2015 (1308) post to mailman from
> mailman-owner@{my-domain.com}, size=1733,
> message-id=<mailman.98.1435726804.13146.mailman@{my-domain.com}>, 1
> failures


Mailman is sending a notice to the 'mailman' list and it's
undeliverable. That doesn't look like a 'bounce' log message. It looks
more like 'post' log. What's in the 'smtp-failure' log?


> Thanks in advance for any assistance. I suspect it's something I've
> overlooked.


Yes. What's in the Postfix logs for these failures and for the message
sent to {list-name}-subscribe at MyDomain.com?

The most common issue here is you are using the Dovecot LDA and it
doesn't know how to deliver to Mailman. If you are using aliases to
deliver to Mailman, you have to ensure that mail to Mailman is handles
by the Postfix 'local' LDA, not Dovecot. See the FAQ at
<http://wiki.list.org/x/10715238> for a way to do this.

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan


More information about the Mailman-Users mailing list