![](https://secure.gravatar.com/avatar/b0e1435d663eb7476f704afb11930b87.jpg?s=120&d=mm&r=g)
What is the numerical MAIL_GID for postfix? 'make options' used to give that number but it isnt anymore.
![](https://secure.gravatar.com/avatar/ebfc60eae9ea8883bcc704944d998c18.jpg?s=120&d=mm&r=g)
Michael Sharp (ms@probsd.org) wrote:
What is the numerical MAIL_GID for postfix? 'make options' used to give that number but it isnt anymore.
I'm still confused about MAIL_GID
cd /usr/ports/mail/mailman make options make MAIL_GID=mailman install clean
after that I got:
RuntimeError: command failed: /usr/local/sbin/postalias /usr/local/mailman/data/aliases (status: 1, Operation not permitted)
with best regards,
-dikshie-
![](https://secure.gravatar.com/avatar/5d1f57b8e61bd61ebb2b77ede705767d.jpg?s=120&d=mm&r=g)
"MS" == Michael Sharp <ms@probsd.org> writes:
MS> Are you confused by my question? If so, Mailman has to be told which MTA MS> is is being built with, and that was done with make MAIL_GID=65535 install MS> clean because in 'make options' postfix had a designation of 65535.
No, it does not:
[yertle]mailman% make options ===> Build options for mailman-2.1.3: [[ ... ]]
MAIL_GID [mailnull] The group name or id under which your MTA performs mail delivery
Getting the value of MAIL_GID right is crucial to getting Mailman to work with your MTA. By default this port works with Sendmail. If you're using an alternative MTA installed from ports, you should set MAIL_GID at build time according to the following table. You may use either the group name or the numerical GID. (Please contact this port's maintainer if you wish to fill in the blanks or report mistakes!)
MTA | MAIL_GID | Submitted by Exim3 | nobody (65534) | <wjv@FreeBSD.org> Exim4 | mail (6) | <wjv@FreeBSD.org> Postfix | mailman | <vivek@khera.org> Qmail | ??? |
NOTE: for Postfix, the group may need to be 'nobody' if you are not using the Mailman integration for generating the postfix virtual and aliases files.
[[ ... ]]
![](https://secure.gravatar.com/avatar/d4258e6caa5b231603e992b430199997.jpg?s=120&d=mm&r=g)
The rights on the file /usr/local/mailman/data/aliases are not set properly. Try setting the file rights to 666 and see if the error goes away. Then you can tighten the rights up further
This is discussed in exhausting detail in the archives.
Jon Carnes
On Tue, 2003-09-30 at 13:09, Dikshie wrote:
![](https://secure.gravatar.com/avatar/5d1f57b8e61bd61ebb2b77ede705767d.jpg?s=120&d=mm&r=g)
"d" == dikshie <dikshie@ppk.itb.ac.id> writes:
d> cd /usr/ports/mail/mailman d> make options d> make MAIL_GID=mailman install clean
d> after that I got:
d> RuntimeError: command failed: /usr/local/sbin/postalias /usr/local/mailman/data/aliases (status: 1, Operation not permitted)
make sure /usr/local/mailman/data/aliases and ..../data/virtual are owned by user mailman, as are the *.db versions of the same files. In my installation, the data directory is group writable by group mailman. I assume the port did it that way, as I don't recall changing the group ownership, but it is possible.
What's the output of:
ls -la /usr/local/mailman/data
on your system?
![](https://secure.gravatar.com/avatar/ebfc60eae9ea8883bcc704944d998c18.jpg?s=120&d=mm&r=g)
Vivek Khera (khera@kcilink.com) wrote:
just fresh installed again with mailman-2.1.3 from FreeBSD port (and offcourse I've installed postfix-devel from FreeBSD port too)
ipv6#ipv6# uname -srm FreeBSD 5.1-CURRENT i386
ipv6#cd /usr/ports/mail/mailman ipv6#make MAIL_GID=mailman install clean
ipv6# ls -la /usr/local/mailman/ total 40 drwxrwsr-x 20 mailman mailman 512 Oct 1 12:51 . drwxr-xr-x 18 root wheel 512 Oct 1 12:49 .. drwxrwsr-x 11 root mailman 1536 Oct 1 13:00 Mailman drwxrwsr-x 4 root mailman 512 Oct 1 12:51 archives drwxrwsr-x 2 root mailman 1024 Oct 1 12:52 bin drwxrwsr-x 2 root mailman 512 Oct 1 12:51 cgi-bin drwxrwsr-x 2 root mailman 512 Oct 1 12:52 cron drwxrwsr-x 2 root mailman 512 Oct 1 13:00 data drwxrwsr-x 2 root mailman 512 Oct 1 12:51 icons drwxrwsr-x 2 root mailman 512 Oct 1 12:51 lists drwxrwsr-x 2 root mailman 512 Oct 1 13:00 locks drwxrwsr-x 2 root mailman 512 Oct 1 12:55 logs drwxrwsr-x 2 root mailman 512 Oct 1 12:51 mail drwxrwsr-x 24 root mailman 512 Oct 1 12:51 messages drwxrwsr-x 6 root mailman 512 Oct 1 12:51 pythonlib drwxrwsr-x 2 root mailman 512 Oct 1 12:51 qfiles drwxrwsr-x 2 root mailman 512 Oct 1 12:52 scripts drwxrwsr-x 2 root mailman 512 Oct 1 12:51 spam drwxrwsr-x 26 root mailman 512 Oct 1 12:51 templates drwxrwsr-x 4 root mailman 512 Oct 1 12:51 tests
then:
ipv6#cd /usr/local/mailman ipv6#bin/genaliases ipv6#su ipv6#chown mailman:mailman data/aliases*
ipv6# ls -la /usr/local/mailman/data/ total 70 drwxrwsr-x 2 root mailman 512 Oct 1 13:00 . drwxrwsr-x 20 mailman mailman 512 Oct 1 12:51 .. -rw-rw---- 1 mailman mailman 357 Oct 1 13:00 aliases -rw-r----- 1 mailman mailman 65536 Oct 1 13:00 aliases.db -rw-r--r-- 1 root mailman 10 Oct 1 12:52 last_mailman_version -rw-r--r-- 1 root mailman 14110 Oct 1 12:51 sitelist.cfg
then I edited postfix's main.cf
ipv6# vi /usr/local/etc/postfix/main.cf alias_maps = hash:/etc/aliases, hash:/usr/local/mailman/data/aliases
many thanks !
-dikshie-
![](https://secure.gravatar.com/avatar/ebfc60eae9ea8883bcc704944d998c18.jpg?s=120&d=mm&r=g)
Michael Sharp (ms@probsd.org) wrote:
What is the numerical MAIL_GID for postfix? 'make options' used to give that number but it isnt anymore.
I'm still confused about MAIL_GID
cd /usr/ports/mail/mailman make options make MAIL_GID=mailman install clean
after that I got:
RuntimeError: command failed: /usr/local/sbin/postalias /usr/local/mailman/data/aliases (status: 1, Operation not permitted)
with best regards,
-dikshie-
![](https://secure.gravatar.com/avatar/5d1f57b8e61bd61ebb2b77ede705767d.jpg?s=120&d=mm&r=g)
"MS" == Michael Sharp <ms@probsd.org> writes:
MS> Are you confused by my question? If so, Mailman has to be told which MTA MS> is is being built with, and that was done with make MAIL_GID=65535 install MS> clean because in 'make options' postfix had a designation of 65535.
No, it does not:
[yertle]mailman% make options ===> Build options for mailman-2.1.3: [[ ... ]]
MAIL_GID [mailnull] The group name or id under which your MTA performs mail delivery
Getting the value of MAIL_GID right is crucial to getting Mailman to work with your MTA. By default this port works with Sendmail. If you're using an alternative MTA installed from ports, you should set MAIL_GID at build time according to the following table. You may use either the group name or the numerical GID. (Please contact this port's maintainer if you wish to fill in the blanks or report mistakes!)
MTA | MAIL_GID | Submitted by Exim3 | nobody (65534) | <wjv@FreeBSD.org> Exim4 | mail (6) | <wjv@FreeBSD.org> Postfix | mailman | <vivek@khera.org> Qmail | ??? |
NOTE: for Postfix, the group may need to be 'nobody' if you are not using the Mailman integration for generating the postfix virtual and aliases files.
[[ ... ]]
![](https://secure.gravatar.com/avatar/d4258e6caa5b231603e992b430199997.jpg?s=120&d=mm&r=g)
The rights on the file /usr/local/mailman/data/aliases are not set properly. Try setting the file rights to 666 and see if the error goes away. Then you can tighten the rights up further
This is discussed in exhausting detail in the archives.
Jon Carnes
On Tue, 2003-09-30 at 13:09, Dikshie wrote:
![](https://secure.gravatar.com/avatar/5d1f57b8e61bd61ebb2b77ede705767d.jpg?s=120&d=mm&r=g)
"d" == dikshie <dikshie@ppk.itb.ac.id> writes:
d> cd /usr/ports/mail/mailman d> make options d> make MAIL_GID=mailman install clean
d> after that I got:
d> RuntimeError: command failed: /usr/local/sbin/postalias /usr/local/mailman/data/aliases (status: 1, Operation not permitted)
make sure /usr/local/mailman/data/aliases and ..../data/virtual are owned by user mailman, as are the *.db versions of the same files. In my installation, the data directory is group writable by group mailman. I assume the port did it that way, as I don't recall changing the group ownership, but it is possible.
What's the output of:
ls -la /usr/local/mailman/data
on your system?
![](https://secure.gravatar.com/avatar/ebfc60eae9ea8883bcc704944d998c18.jpg?s=120&d=mm&r=g)
Vivek Khera (khera@kcilink.com) wrote:
just fresh installed again with mailman-2.1.3 from FreeBSD port (and offcourse I've installed postfix-devel from FreeBSD port too)
ipv6#ipv6# uname -srm FreeBSD 5.1-CURRENT i386
ipv6#cd /usr/ports/mail/mailman ipv6#make MAIL_GID=mailman install clean
ipv6# ls -la /usr/local/mailman/ total 40 drwxrwsr-x 20 mailman mailman 512 Oct 1 12:51 . drwxr-xr-x 18 root wheel 512 Oct 1 12:49 .. drwxrwsr-x 11 root mailman 1536 Oct 1 13:00 Mailman drwxrwsr-x 4 root mailman 512 Oct 1 12:51 archives drwxrwsr-x 2 root mailman 1024 Oct 1 12:52 bin drwxrwsr-x 2 root mailman 512 Oct 1 12:51 cgi-bin drwxrwsr-x 2 root mailman 512 Oct 1 12:52 cron drwxrwsr-x 2 root mailman 512 Oct 1 13:00 data drwxrwsr-x 2 root mailman 512 Oct 1 12:51 icons drwxrwsr-x 2 root mailman 512 Oct 1 12:51 lists drwxrwsr-x 2 root mailman 512 Oct 1 13:00 locks drwxrwsr-x 2 root mailman 512 Oct 1 12:55 logs drwxrwsr-x 2 root mailman 512 Oct 1 12:51 mail drwxrwsr-x 24 root mailman 512 Oct 1 12:51 messages drwxrwsr-x 6 root mailman 512 Oct 1 12:51 pythonlib drwxrwsr-x 2 root mailman 512 Oct 1 12:51 qfiles drwxrwsr-x 2 root mailman 512 Oct 1 12:52 scripts drwxrwsr-x 2 root mailman 512 Oct 1 12:51 spam drwxrwsr-x 26 root mailman 512 Oct 1 12:51 templates drwxrwsr-x 4 root mailman 512 Oct 1 12:51 tests
then:
ipv6#cd /usr/local/mailman ipv6#bin/genaliases ipv6#su ipv6#chown mailman:mailman data/aliases*
ipv6# ls -la /usr/local/mailman/data/ total 70 drwxrwsr-x 2 root mailman 512 Oct 1 13:00 . drwxrwsr-x 20 mailman mailman 512 Oct 1 12:51 .. -rw-rw---- 1 mailman mailman 357 Oct 1 13:00 aliases -rw-r----- 1 mailman mailman 65536 Oct 1 13:00 aliases.db -rw-r--r-- 1 root mailman 10 Oct 1 12:52 last_mailman_version -rw-r--r-- 1 root mailman 14110 Oct 1 12:51 sitelist.cfg
then I edited postfix's main.cf
ipv6# vi /usr/local/etc/postfix/main.cf alias_maps = hash:/etc/aliases, hash:/usr/local/mailman/data/aliases
many thanks !
-dikshie-
participants (4)
-
Dikshie
-
Jon Carnes
-
Michael Sharp
-
Vivek Khera