Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 3rd July 2006, 11:05
OnTheRun OnTheRun is offline
Member
 
Join Date: Nov 2005
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Question 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.
Reply With Quote
Sponsored Links
  #2  
Old 3rd July 2006, 23:09
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Did you check out the installatio manual? http://www.gnu.org/software/mailman/...all/index.html

It shows how to configure Postfix and Apache.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 4th July 2006, 09:46
OnTheRun OnTheRun is offline
Member
 
Join Date: Nov 2005
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #4  
Old 5th July 2006, 10:46
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

What's the output of
Code:
updatedb
locate virtual-mailman
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 5th July 2006, 15:37
OnTheRun OnTheRun is offline
Member
 
Join Date: Nov 2005
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #6  
Old 6th July 2006, 12:40
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Please try this:
Code:
cd /usr/local/mailman/data
postmap virtual-mailman
/etc/init.d/postfix restart
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 6th July 2006, 15:34
OnTheRun OnTheRun is offline
Member
 
Join Date: Nov 2005
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #8  
Old 7th July 2006, 12:41
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

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?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 7th July 2006, 15:34
OnTheRun OnTheRun is offline
Member
 
Join Date: Nov 2005
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Quote:
add_virtualhost()
? 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
Reply With Quote
  #10  
Old 8th July 2006, 12:17
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

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!
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs mholownych HOWTO-Related Questions 10 29th May 2006 03:39
Problem with Virtual Users And Domains With Postfix, Courier And MySQL Howto fenix Server Operation 4 11th March 2006 02:53
Another Problem: Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP bluegrass Installation/Configuration 24 8th March 2006 01:41
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs ebbay Installation/Configuration 9 4th March 2006 11:47
postfix config jmroth Installation/Configuration 6 18th September 2005 15:58


All times are GMT +2. The time now is 01:47.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.