Re: [Mailman-Users] permission denied error on sending mails to mailinglist

2006-01-04 Thread dylan lim
Mayb this will make it clearer. Postfix is installed using yum install
postfix.
While mailman is compiled from source with the following options:

./configure --with-mail-gid=postfix --with-cgi-gid=apache

However, I keep encountering errors where postfix is unable to execute the
wrapper for /usr/local/mailman/mail/mailman

The errors on my maillog are here:

fatal: execvp /usr/local/mailman/mail/mailman : Permission denied

Can anyone point me in the right direction? Posting to postfix doesnt seem
to yield any remedies. Thanks


On 1/4/06, Mark Sapiro [EMAIL PROTECTED] wrote:

 dylan lim wrote:
 
 This is what I have done:
 
 I cd into my /usr/local/mailman directory.
 Did a
 
 chown mailman.mailman scripts
 chown mailman.mailman /usr/local/mailman/mail/mailman
 chmod 2755 scripts


 Actually, the scripts directory should be 2775. The wrappers that
 should be 2755 are /usr/local/mailman/mail/mailman and
 /usr/local/mailman/cgi-bin/*, but the cgi-bin/* wrappers are probably
 OK if the web interface works.


 chmod 2755 /usr/local/mailman/mail/mailman
 
 But I still got the same error.


 At this point, run

 bin/check_perms -f

 as root until you get no errors. That should fix most permissions. Then
 if Postfix still can't execute the /usr/local/mailman/mail/mailman
 wrapper for no permission (with status 1), and you can't figure out
 why, you might try asking on a Postfix group or list.

 --
 Mark Sapiro [EMAIL PROTECTED]   The highway is for gamblers,
 San Francisco Bay Area, Californiabetter use your sense - B. Dylan


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

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] permission denied error on sending mails to mailinglist

2006-01-04 Thread Mark Sapiro
dylan lim wrote:

Mayb this will make it clearer. Postfix is installed using yum install
postfix.
While mailman is compiled from source with the following options:

./configure --with-mail-gid=postfix --with-cgi-gid=apache


The --with-mail-gid=postfix doesn't come into play yet, because you
aren't getting that far. This causes the
/usr/local/mailman/mail/mailman wrapper to check that it was invoked
from the postfix group to prevent just anyone from running it. In your
case it isn't being executed because the OS is saying postfix doesn't
have permission to run it.


However, I keep encountering errors where postfix is unable to execute the
wrapper for /usr/local/mailman/mail/mailman

The errors on my maillog are here:

fatal: execvp /usr/local/mailman/mail/mailman : Permission denied

Can anyone point me in the right direction? Posting to postfix doesnt seem
to yield any remedies. Thanks


What happens if you log in as the postfix user/group (or su to the
postfix user/group) and try to run the wrapper?

/usr/local/mailman/mail/mailman

should produce

Usage: /usr/local/mailman/mail/mailman program [args...]

or something similar? If you get permission denied, you have to solve
that. If you don't, you have to figure out what is different between
your doing it and Postfix's doing it.


BTW, I believe that Postfix will try to execute the wrapper as the
user/group that owns the aliases.db file that contains the mailman
aliases. This may not be consistent with your --with-mail-gid=postfix
configure option.

-- 
Mark Sapiro [EMAIL PROTECTED]   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

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

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] permission denied error on sending mails to mailinglist

2006-01-03 Thread Mark Sapiro
dylan lim wrote:

I have set up Postfix+Mailman+htdig on a box and upon sending mails to the
mailing list I have encountered an error of

fatal: execvp /usr/local/mailman/mail/mailman: Permission denied

in my maillog. On my email client, I received a notification that
/usr/local/mailman/mail/mailman post has failed with an error of 1. Can
anyone point me in the right direction? Thank you.

Postfix is unable to pipe mail to the wrapper
(/usr/local/mailman/mail/mailman) because it doesn't have permission
to execute it. Permissions should be 2755 and group 'mailman' on all
wrappers.

-- 
Mark Sapiro [EMAIL PROTECTED]   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

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

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] permission denied error on sending mails to mailinglist

2006-01-03 Thread dylan lim
This is what I have done:

I cd into my /usr/local/mailman directory.
Did a

chown mailman.mailman scripts
chown mailman.mailman /usr/local/mailman/mail/mailman
chmod 2755 scripts
chmod 2755 /usr/local/mailman/mail/mailman

But I still got the same error.

On 1/4/06, Mark Sapiro [EMAIL PROTECTED] wrote:

 dylan lim wrote:
 
 I have set up Postfix+Mailman+htdig on a box and upon sending mails to
 the
 mailing list I have encountered an error of
 
 fatal: execvp /usr/local/mailman/mail/mailman: Permission denied
 
 in my maillog. On my email client, I received a notification that
 /usr/local/mailman/mail/mailman post has failed with an error of 1. Can
 anyone point me in the right direction? Thank you.

 Postfix is unable to pipe mail to the wrapper
 (/usr/local/mailman/mail/mailman) because it doesn't have permission
 to execute it. Permissions should be 2755 and group 'mailman' on all
 wrappers.

 --
 Mark Sapiro [EMAIL PROTECTED]   The highway is for gamblers,
 San Francisco Bay Area, Californiabetter use your sense - B. Dylan


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

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] permission denied error on sending mails to mailinglist

2006-01-03 Thread Mark Sapiro
dylan lim wrote:

This is what I have done:

I cd into my /usr/local/mailman directory.
Did a

chown mailman.mailman scripts
chown mailman.mailman /usr/local/mailman/mail/mailman
chmod 2755 scripts


Actually, the scripts directory should be 2775. The wrappers that
should be 2755 are /usr/local/mailman/mail/mailman and
/usr/local/mailman/cgi-bin/*, but the cgi-bin/* wrappers are probably
OK if the web interface works.


chmod 2755 /usr/local/mailman/mail/mailman

But I still got the same error.


At this point, run

bin/check_perms -f

as root until you get no errors. That should fix most permissions. Then
if Postfix still can't execute the /usr/local/mailman/mail/mailman
wrapper for no permission (with status 1), and you can't figure out
why, you might try asking on a Postfix group or list.

-- 
Mark Sapiro [EMAIL PROTECTED]   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

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

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp