Hi, ive fixed the problem by changing owner of aliases, and virtual-mailman files to apache:mailman, the problem is , that postfix is now having problem to sending message : in postfix maillog i see :
Nov 23 14:16:15 sx2 Mailman mail-wrapper: Group mismatch error. Mailman expected the mail wrapper script to be executed as one of the following groups: [mail, postfix, mailman, nobody, daemon], but the system's mail server executed the mail script as group: "apache". Try tweaking the mail server to run the script as one of these groups: [mail, postfix, mailman, nobody, daemon], or re-run configure providing the command line option: '--with-mail-gid=apache'. Nov 23 14:16:15 sx2 postfix/local[12548]: 4F4CB80085: to=< [EMAIL PROTECTED]>, relay=local, delay=0.13, delays=0.05/0.01/0/0.06, dsn=5.3.0, status=bounced (Command died with status 2: "/usr/lib/mailman/mail/mailman post aha". Command output: Group mismatch error. Mailman expected the mail wrapper script to be executed as one of the following groups: [mail, postfix, mailman, nobody, daemon], but the system's mail server executed the mail script as group: "apache". Try tweaking the mail server to run the script as one of these groups: [mail, postfix, mailman, nobody, daemon], or re-run configure providing the command line option: '--with-mail-gid=apache'. ) Nov 23 14:16:15 sx2 postfix/cleanup[12534]: 6FF7680086: message-id=< [EMAIL PROTECTED]> Nov 23 14:16:15 sx2 postfix/smtpd[12531]: disconnect from sx2. Thanks On 11/22/07, Mark Sapiro <[EMAIL PROTECTED]> wrote: > > David Hlacik wrote: > > > >I need to setup mailman to use as MTA Postfix with virtual domains. > > > >I have 2 virtual domains 'something.domain.com' 'something2.domain.com' > > > > something.domain.com belongs to FQDN of server running mailman > > > >Configuration of my mm_cfg.py > > > > > >add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST) > > > The line above is redundant if you haven't first changed > DEFAULT_URL_HOST or DEFAULT_EMAIL_HOST. > > > >add_virtualhost('something2.domain.com','something2.domain.com') > > > >############################################################## > ># Put YOUR site-specific configuration below, in mm_cfg.py . # > ># See Defaults.py for explanations of the values. # > > > ># Note - if you're looking for something that is imported from mm_cfg, > but > >you > ># didn't find it above, it's probably in Defaults.py. > > > >MTA='Postfix' > >POSTFIX_STYLE_VIRTUAL_DOMAINS = [' something.domain.com',' > >something2.domain.com'] > > > This may or may not be correct depending on your Postfix configuration. > If 'something.domain.com' is in virtual_alias_domains in main.cf, then > the above is correct, but if only ' something2.domain.com' is in > virtual_alias_domains (something.domain.com is mydomain), then you want > > POSTFIX_STYLE_VIRTUAL_DOMAINS = [' something2.domain.com'] > > > >-------------- > > > >I ve generated default list mailman, set site password using mmsutepass. > > > >All i want is to properly generate virtual-mailman for postfix. > > > >The problem is adding a new mailinglist. When i will follow > >http://something2.domain.com/mailman/admin and will add new mailinglist > >called test for example after clicking on create mailinglist mailman will > > >come up with a message > >Bug in Mailman version 2.1.9 > > > >We're sorry, we hit a bug! > > > >Please inform the webmaster for this site of this problem. Printing of > >traceback and other system information has been explicitly inhibited, but > > >the webmaster can find this information in the Mailman error logs. > > > >this is mailman error log : > > > > > > > >Nov 22 18:30:30 2007 admin(3098): > >@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ > >admin(3098): [----- Mailman Version: 2.1.9 -----] > >admin(3098): [----- Traceback ------] > >admin(3098): Traceback (most recent call last): > >admin(3098): File "/usr/lib/mailman/scripts/driver", line 101, in > run_main > >admin(3098): main() > >admin(3098): File "/usr/lib/mailman/Mailman/Cgi/create.py", line 56, in > >main > >admin(3098): process_request(doc, cgidata) > >admin(3098): File "/usr/lib/mailman/Mailman/Cgi/create.py", line 238, > in > >process_request > >admin(3098): sys.modules[modname].create(mlist, cgi=1) > >admin(3098): File "/usr/lib/mailman/Mailman/MTA/Postfix.py", line 232, > in > >create > >admin(3098): _update_maps() > >admin(3098): File "/usr/lib/mailman/Mailman/MTA/Postfix.py", line 53, > in > >_update_maps > >admin(3098): raise RuntimeError, msg % (acmd, status, errstr) > >admin(3098): RuntimeError: command failed: /usr/sbin/postalias > >/etc/mailman/aliases (status: > >1, Operation not permitted) > >admin(3098): [----- Python Information -----] > > > >Thanks for helping me solving a problem. > > > I'm not sure what the exact cause is, but the problem is that > /usr/sbin/postalias when run as user=(apache or whatever your web > server runs as) and group=mailman doesn't have sufficient access to > read /etc/mailman/aliases and/or write/create /etc/mailman/aliases.db. > > This may be a SeLinux issue. It may be a simple permissions issue. The > location of aliases and virtual-mailman in /etc/mailman is a RedHat > specific FHS modification, and I'm not sure about the permissions in > this case, but I think /etc/mailman should be group:mailman and > permissions rwxrwsr-w, and the aliases and virtual-mailman files > should be also group:mailman and permissions rw-rw-r--. > > If the permissions are as I note (in particular /etc/mailman/ is > SETGID, group writable and group:mailman, and the files are group > writable, group:mailman and world readable), and you still have this > problem, then I think it must be a SeLinux issue. > > -- > Mark Sapiro < [EMAIL PROTECTED]> The highway is for gamblers, > San Francisco Bay Area, California better 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=show&file=faq01.027.htp