LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-19-2006, 01:01 PM   #1
Gethyn
Member
 
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
Qmail and MediaWiki on a virtual server


Hi there,

I'm running a web and mail server on a Slackware box at home, for educational purposes. Recently my friend asked me to put a wiki on there for him, using MediaWiki. When it's finished, the wiki will be public, but the rest of the site I would like to keep private. Apart from anything else, if the wiki takes off, it will have to be transferred to a higher powered server, in which case he'll want to maintain control of the wiki address and I'll want to keep control of my personal web address.

To facilitate this, my private stuff is run on the server's main address/hostname, and the wiki is accessed via a virtual host on a different address (under Apache 1.3.x). Prior to the wiki being installed, the qmail setup was used purely for my personal email. Now, however, we would like to use it for MediaWiki's automated email notifications. Leaving aside problems about such messages being filtered as spam, does anyone know how to configure the wiki messages to originate from the virtual server address, rather than the system hostname? At the moment, the messages have the "From:" address as specified in the wiki setup, but checking the headers of the messages it sends shows that the "Return-path:" is anonymous@hostname.com. I'd like it to be something like wiki-auto@wikiaddress.com.

Presumably this requires the configuration of another virtual mail domain in qmail, which I haven't done but shouldn't (hopefully) be too hard. Would that be enough? I'm guessing not, but what else needs to be done? I expect that something else needs to be changed in the MediaWiki install, but what? I don't know where to look, and haven't been able to find anything in the setup instructions on the MediaWiki homepage, or in "Similar Threads" on this site.

Thanks for any help you can give.
 
Old 12-19-2006, 03:52 PM   #2
jakev383
QmailToaster Developer
 
Registered: Dec 2005
Location: Burlington, NC
Distribution: CentOS, Voyage, Debian, Fedora
Posts: 220

Rep: Reputation: 31
Quote:
Originally Posted by Gethyn
Hi there,

I'm running a web and mail server on a Slackware box at home, for educational purposes. Recently my friend asked me to put a wiki on there for him, using MediaWiki. When it's finished, the wiki will be public, but the rest of the site I would like to keep private. Apart from anything else, if the wiki takes off, it will have to be transferred to a higher powered server, in which case he'll want to maintain control of the wiki address and I'll want to keep control of my personal web address.

To facilitate this, my private stuff is run on the server's main address/hostname, and the wiki is accessed via a virtual host on a different address (under Apache 1.3.x). Prior to the wiki being installed, the qmail setup was used purely for my personal email. Now, however, we would like to use it for MediaWiki's automated email notifications. Leaving aside problems about such messages being filtered as spam, does anyone know how to configure the wiki messages to originate from the virtual server address, rather than the system hostname? At the moment, the messages have the "From:" address as specified in the wiki setup, but checking the headers of the messages it sends shows that the "Return-path:" is anonymous@hostname.com. I'd like it to be something like wiki-auto@wikiaddress.com.

Presumably this requires the configuration of another virtual mail domain in qmail, which I haven't done but shouldn't (hopefully) be too hard. Would that be enough? I'm guessing not, but what else needs to be done? I expect that something else needs to be changed in the MediaWiki install, but what? I don't know where to look, and haven't been able to find anything in the setup instructions on the MediaWiki homepage, or in "Similar Threads" on this site.

Thanks for any help you can give.
I believe this is defined during the setup of media wiki. And I do believe you'll need to set up the domain in QMail on this machine that you want the messages sent from, otherwise QMail will think it's not a local domain and not accept messages for that domain name (unless you do something like add it to rcpthosts).
Looking in my LocalSettings.php file that was generated during install, it defined what email would send the lost password messages (which I assume would be additional types of messages as well).
Hope that helps some.
 
Old 12-19-2006, 06:43 PM   #3
Gethyn
Member
 
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Original Poster
Rep: Reputation: 32
Thanks for your response. The only variables corresponding to email I could find in LocalSettings.php were $wgEmergencyContact and $wgPasswordSender, both of which are configured to the outbound address that appears in the "From:" header of the mail. The "Return-path:" section of the header is still incorrect though.

Having done a quick test on wikipedia, which also uses MediaWiki, both the "From:" address and the "Return-path:" address are wiki@wikipedia.org, while the mailserver is mail.wikipedia.org. It seems they must have configured something I missed, or customised their version to get this working.

I'd appreciate any further suggestions!
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help setting up a pop3 server for virtual domains using qmail kumarsundaram Linux - Software 0 01-23-2006 07:06 PM
Virtual Hosts/Aliases With QMail warriorpoet Linux - Software 0 11-12-2004 10:05 AM
qmail +qmail-qfilter + qmail-scanner-queue+qmail-user-masq.pl problem countcobolt Linux - Networking 0 07-08-2004 11:29 AM
Qmail Virtual Domains questions Mogwai Linux - General 0 01-13-2002 04:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration