Re: [Mailman-Users] mailan and postfix config problems

2012-10-31 Thread soportek
On 10/30/2012 10:12 PM, Mark Sapiro wrote:
> soportek wrote:
>>
>> Unfortunately after fixing the error and restarting postfix it still
>> doesn't write any data to /var/lib/mailman/data/virtual-mailman
> 
> 
> Did you run bin/genaliases after fixing POSTFIX_STYLE_VIRTUAL_DOMAINS?
> 

That was it. I forgot to run genaliases again. It is all working fine now.

> 
> If it were required, you'd need to run genaliases after running fix_url.
> 
> Also, is there some reason other than oversight that you didn't reply
> on list?
> 
Just oversight. Thank you for your help and patience.


--
Mailman-Users mailing list Mailman-Users@python.org
http://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: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] mailan and postfix config problems

2012-10-30 Thread soportek
On 10/30/2012 02:06 PM, Mark Sapiro wrote:
> On 10/30/2012 12:34 PM, soportek wrote:
>>
>> Ok, so I've reverted my previous changes and now I've followed the exact
>> instructions from
>> http://wiki.list.org/display/DOC/Integrating+Mailman+with+postfix
Ok, so now I first undid specific changes from the wiki tutorial,
removed entries from and postmapped /etc/postfix/transport and removed
mailman entry from /etc/postfix/master.cf

Now I've followed these 2 guides.
http://www.list.org/mailman-install/postfix-integration.html
http://www.list.org/mailman-install/postfix-virtual.html

relevant parts of my mailman mm_cfg.py look like this
  MTA = 'Postfix'
  DEB_LISTMASTER = 'postmas...@somedomain.org'
  POSTFIX_STYLE_VIRTUAL_DOMAIN = ['lists.somedomain.org']

and the relevant parts of my postfix main.cf look like this

  local_recipient_maps   = $alias_maps, proxy:unix:passwd.byname
  alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
  alias_database = hash:/etc/aliases
  virtual_alias_domains = lists.somedomain.org
  virtual_alias_maps = hash:/etc/postfix/virtual,
hash:/var/lib/mailman/data/virtual-mailman
  relay_domains = localhost

If I create a new list in the lists.somedomain.org domain I receive
confirmation from the list but writing to the list results in "
Recipient address rejected" from postfix.

/var/lib/mailman/data/aliases is being written but
/var/lib/mailman/data/virtual-mailman is not being updated by Mailman.

bin/check_perms returns no problems.


--
Mailman-Users mailing list Mailman-Users@python.org
http://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: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] mailan and postfix config problems

2012-10-30 Thread soportek
On 10/29/2012 12:36 PM, Mark Sapiro wrote:
> soportek wrote:
> 
> [...]
>>
>> I know this is postfix related but I am follwing the postfix config
>> INSTALL instructions from /var/lib/mailman/bin/postfix-to-mailman.py
> [...]
> First see the FAQ at <http://wiki.list.org/x/OIDD>.
> 
..
> 
> postfix_to_mailman.py is a third-party package which is not distributed
> by the GNU Mailman project, nor is it officially supported by the GNU
> Mailman project. It is an alternative to and incompatible with
> delivery to mailman via aliases and virtual alias maps.
> 

Ok, so I've reverted my previous changes and now I've followed the exact
instructions from
http://wiki.list.org/display/DOC/Integrating+Mailman+with+postfix

I can create new lists as lists.somedomain.org, aliases seem to be
created fine but then no mail is ever sent from the list. I can send a
request to the list and I don't receive a bounce. I don't see any errors
in the mailman o postfix log so I can't tell what is happening.

--
Mailman-Users mailing list Mailman-Users@python.org
http://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: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] mailan and postfix config problems

2012-10-29 Thread soportek
On 10/29/2012 12:36 PM, Mark Sapiro wrote:
> soportek wrote:
> 
> [...]
>>
>> I know this is postfix related but I am follwing the postfix config
>> INSTALL instructions from /var/lib/mailman/bin/postfix-to-mailman.py
> [...]
> First see the FAQ at <http://wiki.list.org/x/OIDD>.

> 
> Then see the results of this Google search
> <http://www.google.com/search?q=site:mail.python.org+inurl%3Amailman-users+%22postfix_to_mailman.py%22>;
> in particular see
> <http://mail.python.org/pipermail/mailman-users/2012-September/074017.html>
> 
> 
> postfix_to_mailman.py is a third-party package which is not distributed
> by the GNU Mailman project, nor is it officially supported by the GNU
> Mailman project. It is an alternative to and incompatible with
> delivery to mailman via aliases and virtual alias maps.
> 

Ah! Sorry I had no idea this script wasn't developed by the GNU Mailman
project. I must be the Nth person to bother the list about it.
Funny that none of my searches turned up that important detail. Seems
like it might be a good idea to recommend against using this script
directly in one of the FAQ's on the mailman site or here
http://wiki.list.org/display/DOC/Integrating+Mailman+with+postfix

--
Mailman-Users mailing list Mailman-Users@python.org
http://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: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] mailan and postfix config problems

2012-10-29 Thread soportek
I am migrating mailman lists from somedomain.org to lists.somedomain.org

I can create new lists for lists.somedomain.org and receive mail from
the list but sending mail to lists.somedomain.org results in

" Recipient address rejected: User unknown;"

I know this is postfix related but I am follwing the postfix config
INSTALL instructions from /var/lib/mailman/bin/postfix-to-mailman.py

and I have edited...

/etc/postfix/main.cf
/etc/postfix/master.cf
/etc/postfix/transport
/etc/mailman/mm_cfg.py

..as per those instructions.
I have also read these guides which provide more or less identical
instructions.
http://wiki.debian.org/Postfix#Mailman_with_Postfix
http://library.linode.com/email/mailman/debian-6-squeeze

The relevant section of my /etc/postfix/main.cf looks like this

  alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
  alias_database = hash:/etc/aliases
  virtual_alias_maps = hash:/etc/postfix/virtual
  local_recipient_maps   = $alias_maps, proxy:unix:passwd.byname

  relay_domains = $mydestination, lists.somedomain.org
  relay_recipient_maps = hash:/var/lib/mailman/data/virtual-mailman
  transport_maps = hash:/etc/postfix/transport
  mailman_destination_recipient_limit = 1


Something I find odd is that with the above config is that when I create
a new list nothing is being written to the file:
  /var/lib/mailman/data/virtual-mailman

I understood that should happen automatically.

--
Mailman-Users mailing list Mailman-Users@python.org
http://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: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org