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.
Did you check out the installatio manual? http://www.gnu.org/software/mailman/mailman-install/index.html It shows how to configure Postfix and Apache.
Hello Falko, yes, I did check that, but had my problems with it I first did the following: http://www.gnu.org/software/mailman/mailman-install/node13.html Then I proceeded to: http://www.gnu.org/software/mailman/mailman-install/postfix-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
Hello Falko, thank you for your answer. I added 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: . I now did /etc/init.d/postfix restart, but it always reports me: What am I doing wrong? Thank you and with kind regards.
Please try this: Code: cd /usr/local/mailman/data postmap virtual-mailman /etc/init.d/postfix restart
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.
Did you follow this? http://www.gnu.org/software/mailman/mailman-install/postfix-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?
Hello Falko, yes, I did I have all the things configured, which they write there. But I havent I do have configured I let this empty, because I want mailman for all (virtual)domains. virtual_maps looks like this: 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
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!
Hello Falko, thank you for your answer Isn't Code: virtual_maps = hash:/etc/postfix/virtusertable, hash:/usr/local/mailman/data/virtual-mailman the same as Code: virtual_alias_maps = hash:/some/path/to/virtual-dom1, hash:/some/path/to/virtual-dom2, hash:/some/path/to/virtual-dom2 ? Else I would have to enter all the virtual domains, which I acquired in ISPconfig by hand? I thought, that that would happen with: Code: virtual_maps = hash:/etc/postfix/virtusertable, hash:/usr/local/mailman/data/virtual-mailman ? Do I have to add all virtual-domains by hand? With kind regards
Hehe, that's right But if it's the same, then postfix should save the entries from: Code: hash:/etc/postfix/virtusertable also to Code: hash:/usr/local/mailman/data/virtual-mailman ? So Mailman should have the very same virtual domains as in the virtusertable file from postfix?
I'm no mailman expert. I installed it once on an ISPConfig system for a customer. It was on a RedHat or Fedora system, and I used the distribution's package for it. It came with a README file that had the instructions about how to finish the installation. Do you find a README or INSTALL file somewhere?