Re: [Mailman-Users] postfix+mailman, part 2

2004-04-19 Thread Anne Ramey
It looks like your file permissions are good, but what user is actually 
running mailman?

Anne
On Apr 16, 2004, at 7:55 AM, David Relson wrote:
On Fri, 16 Apr 2004 07:01:09 +0530 (IST)
Yogesh Subhash Talekar wrote:
okie .. i think you should:

Add the line /var/lib/mailman/data/aliases to alias_maps and *remove*
it from virtual_alias_maps.
Just make sure that you run:
/usr/bin/postmap on var/lib/mailman/data/virtual-mailman
And
/usr/sbin/postaliases on /var/lib/mailman/data/aliases
The problem is the user test-subscribe should be resolvable locally
Lo Yogesh,

Thanks for writing.  After my post I did some more research and
experimentation, which resulted in /etc/postfix/main.cf having the 
lines
you suggest, i.e.:

virtual_alias_maps = hash:/etc/postfix/virtual,
   hash:/var/lib/mailman/data/virtual-mailman
alias_maps = hash:/etc/postfix/aliases,
   hash:/var/lib/mailman/data/aliases
Postfix now has a different complaint, i.e

[EMAIL PROTECTED]: Command died with status
2:
/usr/lib/mailman/mail/mailman subscribe bogofilter. Command
output: Group
mismatch error.  Mailman expected the mail wrapper script to be
executed as
group mailman, but the system's mail server executed the mail
script as
group nogroup.  Try tweaking the mail server to run the script as
group
mailman, or re-run configure,  providing the command line option
`--with-mail-gid=nogroup'.
Checking user and group id's, I have:

[EMAIL PROTECTED] mail]# ll /usr/lib/mailman/mail/mailman
-rwxrwsr-x 1 mailman mailman 6248 Mar 14 16:46
/usr/lib/mailman/mail/mailman*
[EMAIL PROTECTED] mail]# grep mailman /etc/passwd /etc/group
/etc/passwd:mailman:x:1200:1200::/home/mailman:/bin/false
/etc/group:mailman:x:1200:
AFAICT, the permissions are set properly.  Do you know how to tweak the
mail server (as suggested by mailman)?
Thanks.

David


--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/


Re: [Mailman-Users] postfix+mailman, part 2

2004-04-19 Thread David Relson
On Mon, 19 Apr 2004 20:04:27 +0530 (IST)
Yogesh Subhash Talekar wrote:

 hi,
 
 As the erros says you should have configured the mailman
 '--with-mail-gid=nogroup' option.
 
 So go to your extracted tar-ball directory, so su - mailman and as a
 user mailman say:
 $ ./configure --prefix=/var/lib/mailman --with-var-prefix=/var/mailman
 --with-cgi-gid=nogroup --with-mail-gid=nogroup
 $ make
 $ make install
 
 This should work.
 
 May be you installed mailman when logged in as root!
 
 --yogesh

Greetings All,

Searching the web, I learned that postfix uses the group id of the owner
of file /var/lib/mailman/data/aliases.db when it runs mailman.  So the
fix was to change that file's permissions to:

 -rw-r-1 mailman  mailman 12288 Apr 18 23:49 aliases.db
Thanks to all of you who responded to my query.  Your support is
appreciated.

David

--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/


Re: [Mailman-Users] postfix+mailman, part 2

2004-04-16 Thread David Relson
On Fri, 16 Apr 2004 07:01:09 +0530 (IST)
Yogesh Subhash Talekar wrote:

 okie .. i think you should:
 
 Add the line /var/lib/mailman/data/aliases to alias_maps and *remove*
 it from virtual_alias_maps.
 
 Just make sure that you run:
 /usr/bin/postmap on var/lib/mailman/data/virtual-mailman
 And
 /usr/sbin/postaliases on /var/lib/mailman/data/aliases
 
 The problem is the user test-subscribe should be resolvable locally

Lo Yogesh,

Thanks for writing.  After my post I did some more research and
experimentation, which resulted in /etc/postfix/main.cf having the lines
you suggest, i.e.:

virtual_alias_maps = hash:/etc/postfix/virtual,
   hash:/var/lib/mailman/data/virtual-mailman

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

Postfix now has a different complaint, i.e

   
[EMAIL PROTECTED]: Command died with status
2:
/usr/lib/mailman/mail/mailman subscribe bogofilter. Command
output: Group
mismatch error.  Mailman expected the mail wrapper script to be
executed as
group mailman, but the system's mail server executed the mail
script as
group nogroup.  Try tweaking the mail server to run the script as
group
mailman, or re-run configure,  providing the command line option
`--with-mail-gid=nogroup'.

Checking user and group id's, I have:

[EMAIL PROTECTED] mail]# ll /usr/lib/mailman/mail/mailman
-rwxrwsr-x 1 mailman mailman 6248 Mar 14 16:46
/usr/lib/mailman/mail/mailman*

[EMAIL PROTECTED] mail]# grep mailman /etc/passwd /etc/group
/etc/passwd:mailman:x:1200:1200::/home/mailman:/bin/false
/etc/group:mailman:x:1200:

AFAICT, the permissions are set properly.  Do you know how to tweak the
mail server (as suggested by mailman)?

Thanks.

David

--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/


[Mailman-Users] postfix+mailman, part 2

2004-04-15 Thread David Relson
I found part of my problem.  In /etc/postfix/main.cf was

virtual_alias_maps = hash:/etc/postfix/virtual,
   hash:/var/lib/mailman/data/aliases,
   hash:/var/lib/mailman/data/virtual-mailman

The aliases line equates test-subscribe with |...test subscribe
and generated the pecular userid in the user unknown message. 

Removing the aliases reference and leaving virtual-mailman gives:

  [EMAIL PROTECTED]: unknown user:
test-subscribe

which is much more reasonable.  However my subscribe message still
hasn't gotten to mailman.

What am I missing??

Thanks.

David

--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/


Re: [Mailman-Users] postfix+mailman, part 2

2004-04-15 Thread Yogesh Subhash Talekar
okie .. i think you should:

Add the line /var/lib/mailman/data/aliases to alias_maps and *remove* it
from virtual_alias_maps.

Just make sure that you run:
/usr/bin/postmap on var/lib/mailman/data/virtual-mailman
And
/usr/sbin/postaliases on /var/lib/mailman/data/aliases

The problem is the user test-subscribe should be resolvable locally

--yogesh


 I found part of my problem.  In /etc/postfix/main.cf was

 virtual_alias_maps = hash:/etc/postfix/virtual,
hash:/var/lib/mailman/data/aliases,
hash:/var/lib/mailman/data/virtual-mailman

 The aliases line equates test-subscribe with |...test subscribe
 and generated the pecular userid in the user unknown message.

 Removing the aliases reference and leaving virtual-mailman gives:

   [EMAIL PROTECTED]: unknown user:
 test-subscribe

 which is much more reasonable.  However my subscribe message still
 hasn't gotten to mailman.

 What am I missing??

 Thanks.

 David

 --
 Mailman-Users mailing list
 [EMAIL PROTECTED]
 http://mail.python.org/mailman/listinfo/mailman-users
 Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
 Searchable Archives:
 http://www.mail-archive.com/mailman-users%40python.org/


--yogesh


One RAID to backup them all, one RAID to find them, one RAID to bring them
all and in the darkness bind them.





--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/