[opensuse] configuring mailman
Hello, I have to configure mailman and do this for the first time. It was not so obvious to find the SuSE doc, so I copied it to the wiki here: http://en.opensuse.org/Mailman That said, I have followed all the steps and do not know where is mailman :-) I mean, how can I find mailman from the web? the first step of the instructions is: 1) in /etc/sysconfig/mailman tweak the parameters MAILMAN_SMTPHOST MAILMAN_DEFAULT_NNTP_HOST MAILMAN_DEFAULT_EMAIL_HOST MAILMAN_DEFAULT_URL_HOST MAILMAN_VIRTUAL_HOSTS and run "SuSEconfig -module mailman". my host is culte.org, so did I write in the file (same for all) but I let empty the VIRTUAL_HOSTS part, because I don't know what to write there. May I add myself a virtual mailman directory? the default /etc/apache2/conf.d/mailman.conf file is (and I don't see any ServerRoot): ScriptAlias /mailman/ /usr/lib/mailman/cgi-bin/ Alias /mailmanicons/ /usr/lib/mailman/icons/ Alias /pipermail/ /var/lib/mailman/archives/public/ <Directory /usr/lib/mailman/cgi-bin> order allow,deny allow from all </Directory> <Directory /usr/lib/mailman/icons> order allow,deny allow from all </Directory> <Directory /var/lib/mailman/archives/> Options +FollowSymLinks order allow,deny allow from all </Directory> thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
jdd wrote:
Hello,
I have to configure mailman and do this for the first time.
It was not so obvious to find the SuSE doc, so I copied it to the wiki here:
http://en.opensuse.org/Mailman
That said, I have followed all the steps and do not know where is mailman :-)
I mean, how can I find mailman from the web?
You can usually access mailman under http://example.com/mailman
the first step of the instructions is:
1) in /etc/sysconfig/mailman tweak the parameters MAILMAN_SMTPHOST MAILMAN_DEFAULT_NNTP_HOST MAILMAN_DEFAULT_EMAIL_HOST MAILMAN_DEFAULT_URL_HOST MAILMAN_VIRTUAL_HOSTS and run "SuSEconfig -module mailman".
my host is culte.org, so did I write in the file (same for all)
but I let empty the VIRTUAL_HOSTS part, because I don't know what to write there.
mailman can serve multiple domains, if you only need one, you probably don't need virtual hosts.
the default /etc/apache2/conf.d/mailman.conf file is (and I don't see any ServerRoot):
ScriptAlias /mailman/ /usr/lib/mailman/cgi-bin/ Alias /mailmanicons/ /usr/lib/mailman/icons/ Alias /pipermail/ /var/lib/mailman/archives/public/
I think that means mailman is accessible on all websites in your apache config. -- Per Jessen, Zürich (2.1°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Per Jessen wrote:
the default /etc/apache2/conf.d/mailman.conf file is (and I don't see any ServerRoot):
ScriptAlias /mailman/ /usr/lib/mailman/cgi-bin/ Alias /mailmanicons/ /usr/lib/mailman/icons/ Alias /pipermail/ /var/lib/mailman/archives/public/
I think that means mailman is accessible on all websites in your apache config.
Assuming you did a "rcapache2 reload" (or whatever the equivalent systemd incantation is). -- Per Jessen, Zürich (2.3°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 16/02/2012 08:18, Per Jessen a écrit :
You can usually access mailman under http://example.com/mailman
logical, but http://www.culte.org/mailman gives "error 404" so the mailman pre-configuration do not work
mailman can serve multiple domains, if you only need one, you probably don't need virtual hosts.
ok, was what I thought
the default /etc/apache2/conf.d/mailman.conf file is (and I don't see any ServerRoot):
ScriptAlias /mailman/ /usr/lib/mailman/cgi-bin/ Alias /mailmanicons/ /usr/lib/mailman/icons/ Alias /pipermail/ /var/lib/mailman/archives/public/
I think that means mailman is accessible on all websites in your apache config.
here my virtualhosts config (below), how do I insert mailman in it?: # forbid access to the entire filesystem by default <Directory /> Options None AllowOverride None Order deny,allow Deny from all </Directory> <Directory "/srv/www/htdocs"> Options FollowSymLinks Includes #AllowOverride None AllowOverride All Order allow,deny Allow from all #DirectoryIndex index.html index.php </Directory> NameVirtualHost *:80 <VirtualHost *:80> ServerName culte.org ServerAlias asso.culte.org ServerAlias www.culte.org ServerAlias 192.168.56.2 DocumentRoot /srv/www/htdocs/ DirectoryIndex index.html index.php <Directory /> Options None AllowOverride None Order deny,allow Allow from all </Directory> </VirtualHost> thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
jdd wrote:
here my virtualhosts config (below), how do I insert mailman in it?:
I am pretty certain the conf.d/mailman.conf will apply to all virtual hosts, but I've never used that config myself. If you don't think it is included, you can always take the three lines : ScriptAlias mailman /usr/lib/mailman/cgi-bin/ Alias mailmanicons /usr/lib/mailman/icons/ Alias pipermail /var/lib/mailman/archives/public/ and add them to your virtualhost config directly. I guess there is no doubt that mailman was installed in /usr/lib/mailman ? -- Per Jessen, Zürich (2.4°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Per Jessen wrote:
jdd wrote:
here my virtualhosts config (below), how do I insert mailman in it?:
I am pretty certain the conf.d/mailman.conf will apply to all virtual hosts, but I've never used that config myself. If you don't think it is included, you can always take the three lines :
ScriptAlias mailman /usr/lib/mailman/cgi-bin/ Alias mailmanicons /usr/lib/mailman/icons/ Alias pipermail /var/lib/mailman/archives/public/
and add them to your virtualhost config directly.
I guess there is no doubt that mailman was installed in /usr/lib/mailman ?
Hi jdd for me it works now: http://www.culte.org/mailman/listinfo -- Per Jessen, Zürich (2.4°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 16/02/2012 09:09, Per Jessen a écrit :
for me it works now:
does it really, not for me :-( (apache2, mailman and postfix are running! is the starting order important?) thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
jdd wrote:
Le 16/02/2012 09:09, Per Jessen a écrit :
for me it works now:
does it really, not for me :-(
Well it worked before, definitely, but now it has stopped again.
(apache2, mailman and postfix are running! is the starting order important?)
No, not at all. The web-interface also works alone without postfix and mailman actually running. -- Per Jessen, Zürich (3.7°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 16/02/2012 11:24, Per Jessen a écrit :
jdd wrote:
Le 16/02/2012 09:09, Per Jessen a écrit :
for me it works now:
does it really, not for me :-(
Well it worked before, definitely, but now it has stopped again.
well... thanks saying this. I added again the APACHE_SERVER_FLAGS line manually... and it worked (without error message) dunno why, but who cares :-) hope it will stay so thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, Feb 16, 2012 at 11:41:07AM +0100, jdd wrote: [ 8< ]
I added again the APACHE_SERVER_FLAGS line manually... and it worked (without error message)
dunno why, but who cares :-)
Please keep in mind to cleanup the wiki article. You've now made the experience and are able to do this. Please share your experience with the community after the community helped you to get it working. If it stays how it is I'm going to remove it next week. Cause if it stays with the current content a pointer to the README.SuSE file is enough. Thanks, Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany
Le 16/02/2012 12:33, Lars Müller a écrit :
On Thu, Feb 16, 2012 at 11:41:07AM +0100, jdd wrote: [ 8< ]
I added again the APACHE_SERVER_FLAGS line manually... and it worked (without error message)
dunno why, but who cares :-)
Please keep in mind to cleanup the wiki article. You've now made the experience and are able to do this. Please share your experience with the community after the community helped you to get it working.
If it stays how it is I'm going to remove it next week. Cause if it stays with the current content a pointer to the README.SuSE file is enough.
Thanks,
Lars
we still need a on line acticle, not to be obliged to install a product only to read a file. That said give me some time to test the system before adding anything. Right now I have access to the web interface, but the list manager itself don't seems to work (I don't receive any mail from it, when I can mail from my server account. more to come jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
well... befiore going further, I detected a big problem reading this: 5) In /etc/sysconfig/apache2, add "MAILMAN" to the APACHE_SERVER_FLAGS: a2enflag MAILMAN and restart Apache: rcapache2 restart I added APACHE_SERVER_FLAGS= a2enflag MAILMAN to the etc/sysconfig/apache2 and this filled the "ps ax" screen with 25102 ? S 0:00 /bin/bash /usr/sbin/sysconf_addword /etc/sysconfig/apache2 APACHE_SERVER_FLAGS MAILMAN 25107 ? S 0:00 /bin/bash /usr/sbin/a2enflag MAILMAN I now understand than the sentence should read In /etc/sysconfig/apache2, add "MAILMAN" to the APACHE_SERVER_FLAGS *with* a2enflag MAILMAN but as I never had to use a2enflag... that said this do not works, but say: a2enflag MAILMAN sysconf_addword: variable APACHE_SERVER_FLAGS does not occur in /etc/sysconfig/apache2 and if I add APACHE_SERVER_FLAGS = "MAILMAN" manually in the file, I get /etc/sysconfig/apache2: ligne274: APACHE_SERVER_FLAGS : command not found so I'm still stuck :-( thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 02/16/2012 09:47 AM, jdd wrote:
well... befiore going further, I detected a big problem
reading this:
5) In /etc/sysconfig/apache2, add "MAILMAN" to the APACHE_SERVER_FLAGS:
a2enflag MAILMAN and restart Apache: rcapache2 restart
I added
APACHE_SERVER_FLAGS= a2enflag MAILMAN
to the etc/sysconfig/apache2
I could be wrong but does adding -D MAILMAN to the APACHE_SERVER_FLAGS make it work Togan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 16/02/2012 11:49, Togan Muftuoglu a écrit :
I could be wrong but does adding -D MAILMAN to the APACHE_SERVER_FLAGS make it work
may be. right now I have APACHE_SERVER_FLAGS="MAILMAN" in the config file, and it works partially. Too short to say all works, but I have yet to understand why and what is the -D for? only openSUSE seems to need this flag (no such instruction in ubuntu web site) thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
jdd wrote:
Le 16/02/2012 11:49, Togan Muftuoglu a écrit :
I could be wrong but does adding -D MAILMAN to the APACHE_SERVER_FLAGS make it work
may be.
right now I have
APACHE_SERVER_FLAGS="MAILMAN"
in the config file, and it works partially. Too short to say all works, but I have yet to understand why
The mailman.conf file uses "<IfDefine MAILMAN>". (in my installation anyway).
and what is the -D for?
D = Define variable. -- Per Jessen, Zürich (3.9°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, Feb 16, 2012 at 01:42:55PM +0100, jdd wrote:
Le 16/02/2012 11:49, Togan Muftuoglu a écrit :
I could be wrong but does adding -D MAILMAN to the APACHE_SERVER_FLAGS make it work
may be.
right now I have
APACHE_SERVER_FLAGS="MAILMAN"
And that's correct and that works. Tested with openSUSE 11.4 and 12.1.
in the config file, and it works partially. Too short to say all works, but I have yet to understand why
It looks like you need to add a debugging section to the wiki article. I'm quite sure we'll never see one. As we'll never will see a further cleanup of the mailman wiki article.
and what is the -D for?
only openSUSE seems to need this flag (no such instruction in ubuntu web site)
No. Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany
Le 16/02/2012 14:15, Lars Müller a écrit :
On Thu, Feb 16, 2012 at 01:42:55PM +0100, jdd wrote:
APACHE_SERVER_FLAGS="MAILMAN"
And that's correct and that works. Tested with openSUSE 11.4 and 12.1.
yes, I have now access to the web interface and it seems to (mostly) works - I could subscribe two account through it I will later investigate to understand why a2enflags didn't work and why I had error messages
It looks like you need to add a debugging section to the wiki article.
sure, I will
I'm quite sure we'll never see one. As we'll never will see a further cleanup of the mailman wiki article.
and what is the -D for?
only openSUSE seems to need this flag (no such instruction in ubuntu web site)
No.
I was speaking of the mailman server flag, not the -D it's a french page, but it's easy to see there is no apache flag here http://fr.wikibooks.org/wiki/Ubuntu/Mailman#Apache NEW: I found and fixed a (documentation ?) bug. look at the 3) here: http://en.opensuse.org/Mailman a) adding POSTFIX_ADD_ALIAS_MAPS="hash:/etc/aliases, hash:/var/lib/mailman/data/aliases" to etc/sysconfig/postfix do *not* change anything in the main.cf file and so don't change the postfix config. SuSEconfig -module postfix say there is no config module, and running without option do not seems even to look at the main.cf file. I didn't try YaST. I remember some SuSEconfig modules where removed some years ago... b) Look like, in the main.cf file, the last config win. And the default openSUSE config add a alias_maps = so any change in the middle of the file, where the usual alias_maps config is is not used. This is the (?) bug. changing manually this line to alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases allowed the mailing list manager to receive mails *good*. I now have list archives with test messages! BUT I do *not* receive these messages from the list. Of course I subscribed with two different accounts to see the messages. archive page is here http://culte.org/pipermail/linux-31/2012-February/thread.html (and should be public) you can also subscribe the list to try if you want next step: read the logs thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
jdd wrote:
b) Look like, in the main.cf file, the last config win. And the default openSUSE config add a
alias_maps =
so any change in the middle of the file, where the usual alias_maps config is is not used. This is the (?) bug.
changing manually this line to
alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
https://bugzilla.novell.com/show_bug.cgi?id=737260 I thought I had accidentally done this change myself, but if you're seeing it too, I suggest you reopen.
BUT
I do *not* receive these messages from the list. Of course I subscribed with two different accounts to see the messages.
Is mailman running? Check the mail log, are the mails being sent? -- Per Jessen, Zürich (2.2°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
check_perms said that aliases.db hav 0100644 and should have 066x I chmod to 0660 postfix complaines not to be able to open the file, hope this will not be anymore with the change postfix also complained about restriction option lacking. I commented out the offending lins in main.cf still don't receive posts from the list jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
jdd
-
Lars Müller
-
Per Jessen
-
Togan Muftuoglu