
3rd July 2006, 11:05
|
|
Member
|
|
Join Date: Nov 2005
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Mailman: Virtual domains
Hello all,
is it somehow possible, to integrate the (virtual) domains defined in ispconfig ( ->apache: virtual host, ->postfix: virtusertable) into mailman? If yes,
how do I do this?
Because I have mailman up and running, but when I try to create a mailing list on any domain except the main-domain, I get always "unknown virtual host".
Has anyone a solution for this?
Any help is appreciated
Thanks and with kind regards.
|

3rd July 2006, 23:09
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
Did you check out the installatio manual? http://www.gnu.org/software/mailman/...all/index.html
It shows how to configure Postfix and Apache.
|

4th July 2006, 09:46
|
|
Member
|
|
Join Date: Nov 2005
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hello Falko,
yes, I did check that, but had my problems with it 
I first did the following:
http://www.gnu.org/software/mailman/...ll/node13.html
Then I proceeded to:
http://www.gnu.org/software/mailman/...x-virtual.html
It says, that I should add:
Code:
hash:/usr/local/mailman/data/virtual-mailman
to the virtual_maps variable in the main.cf file of postfix.
Next I added:
Code:
POSTFIX_STYLE_VIRTUAL_DOMAINS = []
to the mm_cfg.py file of mailman.
The write at the beginning in the manual:
Code:
Mailman will write all virtual alias mappings to a file called, by default, /usr/local/mailman/data/virtual-mailman. It will also use postmap to create the virtual-mailman.db file that Postfix will actually use.
But I have no /usr/local/mailman/data/virtual-mailman nor /usr/local/mailman/data/virtual-mailman.db at all. Why this? What am I doing wrong? 
If this would work, would mailman know all domains from /etc/postfix/virtusertable?
Thank you and with kind regards
|

5th July 2006, 10:46
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
What's the output of
Code:
updatedb
locate virtual-mailman
?
|

5th July 2006, 15:37
|
|
Member
|
|
Join Date: Nov 2005
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hello Falko,
thank you for your answer.
I added
Quote:
|
hash:/usr/local/mailman/data/virtual-mailman
|
again (I had commented it out, because else postfix wont deliver any mails), and ran updatedb. The command "updatedb" outputs nothing.
"locate virtual-mailman" outputs:
Quote:
|
/usr/local/mailman/data/virtual-mailman
|
.
I now did /etc/init.d/postfix restart, but it always reports me:
Quote:
Jul 5 15:34:47 server postfix/smtpd[4139]: fatal: open database /usr/local/mailman/data/virtual-mailman.db: No such file or directory
Jul 5 15:35:01 server postfix/cleanup[4250]: fatal: open database /usr/local/mailman/data/virtual-mailman.db: No such file or directory
Jul 5 15:35:01 server postfix/trivial-rewrite[4251]: fatal: open database /usr/local/mailman/data/virtual-mailman.db: No such file or directory
|
What am I doing wrong?
Thank you and with kind regards.
|

6th July 2006, 12:40
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
Please try this:
Code:
cd /usr/local/mailman/data
postmap virtual-mailman
/etc/init.d/postfix restart
|

6th July 2006, 15:34
|
|
Member
|
|
Join Date: Nov 2005
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hello Falko,
thank you very much for your answer.
It seems to work now with the virtual-mailman file.
But it didn't copy any from the domains from apache / postfix to this file.
When I try to do a new mailinglist on a virtual domain, I get again
"Unknown virtual host: dom.ain".
How can I tell mailman to use the virtual domains from apache / postfix?
Thank you very much and with kind regards.
|

7th July 2006, 12:41
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
Did you follow this? http://www.gnu.org/software/mailman/...x-virtual.html
Do you have something like
Code:
virtual_alias_maps = <your normal virtual alias files>,
hash:/usr/local/mailman/data/virtual-mailman
in /etc/postfix/main.cf?
|

7th July 2006, 15:34
|
|
Member
|
|
Join Date: Nov 2005
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hello Falko,
yes, I did 
I have all the things configured, which they write there.
But I havent
Quote:
virtual_alias_maps =
hash:/some/path/to/virtual-dom1,
hash:/some/path/to/virtual-dom2,
hash:/some/path/to/virtual-dom2
|
I do have configured
Quote:
|
POSTFIX_STYLE_VIRTUAL_DOMAINS = []
|
I let this empty, because I want mailman for all (virtual)domains.
virtual_maps looks like this:
Quote:
|
virtual_maps = hash:/etc/postfix/virtusertable, hash:/usr/local/mailman/data/virtual-mailman
|
From my point of view, I've done everything like they wrote in the manual. But why it doesn't copy the domains to mailman?
Do I need to add ? Or is there any way, to do this automatically? I'd like to fill all domains from postfix/apache, which I added in ipsconfig in virtual-mailman automatically. Is there any way to do this? Or do I have to add all the domains by hand?
Thank you and with kind regards
|

8th July 2006, 12:17
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
It should be
Code:
virtual_alias_maps = hash:/some/path/to/virtual-dom1,
hash:/some/path/to/virtual-dom2,
hash:/some/path/to/virtual-dom2
instead of
Code:
virtual_alias_maps =
hash:/some/path/to/virtual-dom1,
hash:/some/path/to/virtual-dom2,
hash:/some/path/to/virtual-dom2
The leading white-space on the following lines is important!
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 04:03.
|
|
Recent comments
1 day 4 hours ago
1 day 4 hours ago
1 day 9 hours ago
1 day 15 hours ago
1 day 16 hours ago
1 day 17 hours ago
1 day 22 hours ago
2 days 4 hours ago
2 days 8 hours ago
2 days 10 hours ago