mentby.com
Blog | Jobs | Help | Signup | Login

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

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*******
To contact the owner, e-mail: opensuse+owner*******


Jean-Daniel Dodin Wed, 15 Feb 2012 09:01:31 -0800

You can usually access mailman under  http://example.com/mailman

mailman can serve multiple domains, if you only need one, you probably
don't need virtual hosts.

I think that means mailman is accessible on all websites in your apach
config.

--
Per Jessen, Zürich (2.1
°C)

--
To unsubscribe, e-mail: opensuse unsubscribe*******
To contact the owner, e-mail: opensuse owner*******


Per Jessen Wed, 15 Feb 2012 23:19:10 -0800

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*******
To contact the owner, e-mail: opensuse owner*******


Per Jessen Wed, 15 Feb 2012 23:49:17 -0800

logical, but

http://www.culte.org/mailman

gives "error 404"

so the mailman pre-configuration do not work

ok, was what I thought

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*******
To contact the owner, e-mail: opensuse+owner*******


Jean-Daniel Dodin Wed, 15 Feb 2012 23:55:10 -0800

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/mailma/cgi-bin/
Alias
 
 
 
 
  mailmanicons
 /usr/lib/milman/icons/
Alias
 
 
 
 
  pipermail
 
  /var/ib/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*******
To contact the owner, e-mail: opensuse owner*******


Per Jessen Thu, 16 Feb 2012 00:02:31 -0800

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*******
To contact the owner, e-mail: opensuse owner*******


Per Jessen Thu, 16 Feb 2012 00:09:35 -0800

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...

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*******
To contact the owner, e-mail: opensuse+owner*******


Jean-Daniel Dodin Thu, 16 Feb 2012 00:47:53 -0800

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*******
To contact the owner, e-mail: opensuse+owner*******


Jean-Daniel Dodin Thu, 16 Feb 2012 01:05:47 -0800

Well it worked before, definitely, but now it has stopped again.

No, not at all.  The web-interface also works alone without postfix an
mailman actually running.

--
Per Jessen, Zürich (3.7
°C)

--
To unsubscribe, e-mail: opensuse unsubscribe*******
To contact the owner, e-mail: opensuse owner*******


Per Jessen Thu, 16 Feb 2012 02:25:20 -0800

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*******
To contact the owner, e-mail: opensuse+owner*******


Jean-Daniel Dodin Thu, 16 Feb 2012 02:41:40 -0800

I could be wrong but does adding -D MAILMAN to the APACHE_SERVER_FLAGS
make it work

Togan
--
To unsubscribe, e-mail: opensuse+unsubscribe*******
To contact the owner, e-mail: opensuse+owner*******


toganm Thu, 16 Feb 2012 02:49:47 -0800

[ 8< ]

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


Lars Müller Thu, 16 Feb 2012 03:34:25 -0800

we still need a on line acticle, not to be obliged to install a
product only to read a file.

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*******
To contact the owner, e-mail: opensuse+owner*******


Jean-Daniel Dodin Thu, 16 Feb 2012 04:36:39 -0800

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*******
To contact the owner, e-mail: opensuse+owner*******


Jean-Daniel Dodin Thu, 16 Feb 2012 04:44:10 -0800

The mailman.conf file uses "<IfDefine MAILMAN>".  (in my installation
anyway).

D = Define variable.

--
Per Jessen, Zürich (3.9
°C)

--
To unsubscribe, e-mail: opensuse unsubscribe*******
To contact the owner, e-mail: opensuse owner*******


Per Jessen Thu, 16 Feb 2012 05:09:57 -0800

And that's correct and that works.  Tested with openSUSE 11.4 and 12.1.

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.

No.

Lars
--
Lars Müller [ˈlaː(r)z ˈmʏlɐ]
Samba Team
SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany


Lars Müller Thu, 16 Feb 2012 05:15:48 -0800

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

sure, I will

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*******
To contact the owner, e-mail: opensuse+owner*******


Jean-Daniel Dodin Thu, 16 Feb 2012 07:22:43 -0800

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*******
To contact the owner, e-mail: opensuse+owner*******


Jean-Daniel Dodin Thu, 16 Feb 2012 07:42:12 -0800

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.

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*******
To contact the owner, e-mail: opensuse owner*******


Per Jessen Thu, 16 Feb 2012 09:32:43 -0800

may be open a new one, reopening rarely goes well.

yes, as you can see

http://culte.org/pipermail/linux-31/2012-February/thread.html

the archives are created, but no mail is sent to the list members.

how can I debug this? may be simply a bad variable somewhere!

I can send and receive mail from and to the server (thunderbird at
home, mailx on the server)

thanks
jdd

--
To unsubscribe, e-mail: opensuse+unsubscribe*******
To contact the owner, e-mail: opensuse+owner*******


Jean-Daniel Dodin Thu, 16 Feb 2012 09:41:54 -0800

That isn't mailman, that is pipermail.

What does the mail log show?

Is mailman running?  The mailman processes I mean?

--
Per Jessen, Zürich (1.9
°C)

--
To unsubscribe, e-mail: opensuse unsubscribe*******
To contact the owner, e-mail: opensuse owner*******


Per Jessen Thu, 16 Feb 2012 09:57:24 -0800

Le 16/02/2012 18:57, Per Jessen a écrit :

are the mail archived before mailman process them?

/var/log/mail says:
Feb 16 19:21:27 savage-reborn postfix/smtpd[2973]: warning: database
/var/lib/mailman/data/aliases.db is older than source file
/var/lib/mailman/data/aliases

mail.ifon: nothing since this morning
mail.warn: lot of spam rejected (recipient unknown)

the only problem seems to be the database one, but from the mailman
bin: ./check_db says "nothing to do".

seems to be !

systemctl status mailman.service
mailman.service - LSB: Starts the mailinglist manager Mailman
           Loaded: loaded (/etc/init.d/mailman)
           Active: active (running) since Thu, 16 Feb 2012 16:31:37
+0100; 2h 51min ago
          Process: 1851 ExecStop=/etc/init.d/mailman stop
(code=exited, status=0/SUCCESS)
          Process: 1859 ExecStart=/etc/init.d/mailman start
(code=exited, status=0/SUCCESS)
           CGroup: name=systemd:/system/mailman.service
                   ├ 1873 /usr/bin/python
/usr/lib/mailman/bin/mailmanctl --quiet --stale-lock-cleanup start
                   ├ 1874 /usr/bin/python /usr/lib/mailman/bin/qrunner
--runner=ArchRunner:0:1 -s
                   ├ 1875 /usr/bin/python /usr/lib/mailman/bin/qrunner
--runner=BounceRunner:0:1 -s
                   ├ 1876 /usr/bin/python /usr/lib/mailman/bin/qrunner
--runner=CommandRunner:0:1 -s
                   ├ 1877 /usr/bin/python /usr/lib/mailman/bin/qrunner
--runner=IncomingRunner:0:1 -s
                   ├ 1878 /usr/bin/python /usr/lib/mailman/bin/qrunner
--runner=NewsRunner:0:1 -s
                   ├ 1879 /usr/bin/python /usr/lib/mailman/bin/qrunner
--runner=OutgoingRunner:0:1 -s
                   ├ 1880 /usr/bin/python /usr/lib/mailman/bin/qrunner
--runner=VirginRunner:0:1 -s
                   └ 1881 /usr/bin/python /usr/lib/mailman/bin/qrunner
--runner=RetryRunner:0:1 -s

do mailman use an other port than postfix (25)? (could be a firewall
problem??)

thanks
jdd

--
To unsubscribe, e-mail: opensuse+unsubscribe*******
To contact the owner, e-mail: opensuse+owner*******


Jean-Daniel Dodin Thu, 16 Feb 2012 10:44:40 -0800

Yes, I'm pretty certain they are.

Run "newaliases".  This could be your problem - I'm pretty certain a
normal mailman installation will update your mail aliases.

No, mailman is only the list manager, postfix remains as the MTA.  For
delivery, Postfix will call mailman scripts via the aliases file.

--
Per Jessen, Zürich (1.4
°C)

--
To unsubscribe, e-mail: opensuse unsubscribe*******
To contact the owner, e-mail: opensuse owner*******


Per Jessen Thu, 16 Feb 2012 11:42:12 -0800

I did this several times, but the mailman aliases.db don't seems
affected. I wonder how it is managed

I even verify I can send a mail as mailman user (with mailx) but still
the list manager do not send me mails

I also followed this page

http://wiki.list.org/display/DOC/4.78+Troubleshooting-+No+ma[..]

without luck

I subscribed the mailman list, but seems it's moderated, I received no
mail

thanks

jdd

--
To unsubscribe, e-mail: opensuse+unsubscribe*******
To contact the owner, e-mail: opensuse+owner*******


Jean-Daniel Dodin Thu, 16 Feb 2012 14:56:18 -0800

"newaliases" only manages the aliases specified with
postfix::alias_database.

Depending on how openSUSE has set this up, the mailman aliases.db coul
be fixed, but it might be updated by mailman whenever you change the
list configuration.  In the latter case, postfix will notice the chang
and automatically reload it.  
Check that the mailman alias is in fact part of your postfix config.
Check postfix::alias_maps.

I have a feeling that the mail aliases are being ignored by postfix.

--
Per Jessen, Zürich (0.7
°C)

--
To unsubscribe, e-mail: opensuse unsubscribe*******
To contact the owner, e-mail: opensuse owner*******


Per Jessen Fri, 17 Feb 2012 00:17:13 -0800

some time silent beacause a reboot didn't allow the network to restart
on the server. Glad it was a virtual server and the host still worked,
so I could fix this, after much work.

For whatever reason, ipv6 forgived the network start (but only since
the last start, few days ago).

But this do not makes mailman work better, still investigating (the
aliases)

jdd

--
To unsubscribe, e-mail: opensuse+unsubscribe*******
To contact the owner, e-mail: opensuse+owner*******


Jean-Daniel Dodin Sat, 18 Feb 2012 03:54:39 -0800

French readers can follow my work here

http://dodin.org/wordpress/?p=13

I subscribed the mailman-user mailing list and posted there but the
first posts are moderated, so not yet published

jdd

--
To unsubscribe, e-mail: opensuse+unsubscribe*******
To contact the owner, e-mail: opensuse+owner*******


Jean-Daniel Dodin Mon, 20 Feb 2012 03:01:24 -0800

just a note to say I could install mailman on an other server (11.4,
if this have any importance) and it works without problem.

so I will asap redo all the config on the 12.1 one to see if this
solve the problem

thanks
jdd

--
To unsubscribe, e-mail: opensuse+unsubscribe*******
To contact the owner, e-mail: opensuse+owner*******


Jean-Daniel Dodin Mon, 20 Feb 2012 05:39:55 -0800

problem solved.

as dumb as we could think.

For any unknown reason, SuSEconfig thought that mm_cfg.py was hand

once I found it and replaced the default one by the openSUSE one, all
started as needed

I will soon comment the wiki page

thanks
jdd

--
To unsubscribe, e-mail: opensuse+unsubscribe*******
To contact the owner, e-mail: opensuse+owner*******


Jean-Daniel Dodin Tue, 21 Feb 2012 03:06:35 -0800

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

Feb 17 10:35:06 savage-reborn postfix/smtpd[6881]: connect from
smtp5-g21.free.fr[212.27.42.5]
Feb 17 10:35:07 savage-reborn postfix/smtpd[6881]: C037C3FBBB:
client=smtp5-g21.free.fr[212.27.42.5]
Feb 17 10:35:08 savage-reborn postfix/cleanup[6897]: C037C3FBBB:
message-id=<4F3E1F47.4050007*******>
Feb 17 10:35:08 savage-reborn postfix/qmgr[2268]: C037C3FBBB:
from=<jdanield*******>, size=797, nrcpt=1 (queue active)
Feb 17 10:35:08 savage-reborn postfix/smtpd[6881]: disconnect from
smtp5-g21.free.fr[212.27.42.5]
Feb 17 10:35:08 savage-reborn postfix/local[6898]: C037C3FBBB:
to=<linux-31*******>, relay=local, delay=1.2,
delays=0.85/0.01/0/0.37, dsn=2.0.0, status=sent (delivered to command:
/usr/lib/mailman/mail/mailman post linux-31)
Feb 17 10:35:08 savage-reborn postfix/qmgr[2268]: C037C3FBBB: removed

--
To unsubscribe, e-mail: opensuse+unsubscribe*******
To contact the owner, e-mail: opensuse+owner*******


Jean-Daniel Dodin Wed, 22 Feb 2012 15:09:23 -0800

a post that made in 6 days after post...

gmane problem...

jdd

--
To unsubscribe, e-mail: opensuse+unsubscribe*******
To contact the owner, e-mail: opensuse+owner*******


Jean-Daniel Dodin Thu, 23 Feb 2012 01:24:35 -0800



Related Topics

Post a Comment