PhorumMail HOWTO?
Posted by Christoph Kuhn
PhorumMail HOWTO? December 28, 2001 02:58PM |
Hello,
I searched 'the whole net' about informations to PhorumMail, but nothing usable found. Does someone know about a HOWTO?
The informations in the sourcecode don't really help me.
In which szenarios does PhorumMail work? Must be Majordomo? What's about the 'PhorumMail Code'? It's like 'Config suffix' an identifier?
Thank you!
chris
I searched 'the whole net' about informations to PhorumMail, but nothing usable found. Does someone know about a HOWTO?
The informations in the sourcecode don't really help me.
In which szenarios does PhorumMail work? Must be Majordomo? What's about the 'PhorumMail Code'? It's like 'Config suffix' an identifier?
Thank you!
chris
<b>Re: PhorumMail HOWTO?</b> January 03, 2002 02:30AM |
<HTML>I had written a huge post about this the other night right here in this thread and before I could finish our (dealnews.com) mysql server freaked out (3AM) and I had lost the text I had written in the shuffle of switching apps and checking pages.
I will try and write it all out again soon.</HTML>
I will try and write it all out again soon.</HTML>
Re: PhorumMail HOWTO? March 07, 2002 11:43PM |
Registered: 23 years ago Posts: 20 |
Re: PhorumMail HOWTO? March 15, 2002 02:42PM |
Registered: 23 years ago Posts: 39 |
<b>Re: PhorumMail HOWTO?</b> March 16, 2002 11:41PM |
<HTML>Lets say you have a mailing list and the list address is list@server.com. The first thing you need to do is pick out an email address that will receive phorum emails. Let's use phorum@server.com.
Ok, now create a forum or edit an existing one. In the admin there are 3 fields when adding a forum that have an affect on all mail sent from Phorum. These are not required to be used with Phorummail, but you can. The fields are "Email All Posts To", "Return Email Address", and "Email Subject Tag". You want to set "Email All Posts To" to the mailing list address of list@server.com. You want to set "Return Email Address" to the address to the incoming phorum address of phorum@server.com. You can set "Email Subject Tag" to something if you like. Only Phorum posts will have this tag added to their subject. When you create the forum, the success message contains the id of the newly created forum. You need this. If this was an already existing forum, it is the number after the i in the url when using the forum. For example, here in the doc forum, it is 5.
Now, this is where things get complicated. It does not matter what mailing list software you run. In fact, you can interact with any mailing list, even ones you don't run. This means Phorum can be used to archive mailing lists. However, it does matter what mail server you are running. I personally run qmail. If you have any control over the mail server running on your server I strongly suggest you switch to qmail.
Anyhow, here is the way I would do it with qmail. qmail uses files call .qmail files to control mail delivery. sendmail uses an alias file of some sort. What we have to do is redirect the email to the phorummail script. So, I create a .qmail file called .qmail-phorum. That tells qmail that any messages coming in for phorum@server.com are to be delivered according to the instructions in this file. In that file I will put one line of text:
|/path/to/phorum/scripts/phorummail.php forum=5 path=/path/to/phorum
Of course, replace /path/to/phorum/ with the actual file path of the phorum install. An remember that forum id we needed, that is what the 5 is in that line.
That is all there is to it. Really. Now, there are some things to watch out for. For one, be sure that the phorummail.php script is executable. I think in sendmail you have to tell it what scripts are safe to run. Another thing is checking that your forum files and settings files are readable by the user receiving the mail. For qmail, if you are using the main alias directory, this will mean having your forum settings readable by all. If you are putting .qmail files in your home directory, the mail will be delivered using your user. Most likely, this means that no changes need to be made to the files permissions.
If someone knows the details for sending mails through external apps for sendmail or other mail servers please post them here.</HTML>
Ok, now create a forum or edit an existing one. In the admin there are 3 fields when adding a forum that have an affect on all mail sent from Phorum. These are not required to be used with Phorummail, but you can. The fields are "Email All Posts To", "Return Email Address", and "Email Subject Tag". You want to set "Email All Posts To" to the mailing list address of list@server.com. You want to set "Return Email Address" to the address to the incoming phorum address of phorum@server.com. You can set "Email Subject Tag" to something if you like. Only Phorum posts will have this tag added to their subject. When you create the forum, the success message contains the id of the newly created forum. You need this. If this was an already existing forum, it is the number after the i in the url when using the forum. For example, here in the doc forum, it is 5.
Now, this is where things get complicated. It does not matter what mailing list software you run. In fact, you can interact with any mailing list, even ones you don't run. This means Phorum can be used to archive mailing lists. However, it does matter what mail server you are running. I personally run qmail. If you have any control over the mail server running on your server I strongly suggest you switch to qmail.
Anyhow, here is the way I would do it with qmail. qmail uses files call .qmail files to control mail delivery. sendmail uses an alias file of some sort. What we have to do is redirect the email to the phorummail script. So, I create a .qmail file called .qmail-phorum. That tells qmail that any messages coming in for phorum@server.com are to be delivered according to the instructions in this file. In that file I will put one line of text:
|/path/to/phorum/scripts/phorummail.php forum=5 path=/path/to/phorum
Of course, replace /path/to/phorum/ with the actual file path of the phorum install. An remember that forum id we needed, that is what the 5 is in that line.
That is all there is to it. Really. Now, there are some things to watch out for. For one, be sure that the phorummail.php script is executable. I think in sendmail you have to tell it what scripts are safe to run. Another thing is checking that your forum files and settings files are readable by the user receiving the mail. For qmail, if you are using the main alias directory, this will mean having your forum settings readable by all. If you are putting .qmail files in your home directory, the mail will be delivered using your user. Most likely, this means that no changes need to be made to the files permissions.
If someone knows the details for sending mails through external apps for sendmail or other mail servers please post them here.</HTML>
Re: PhorumMail HOWTO? March 17, 2002 03:39AM |
Registered: 23 years ago Posts: 39 |
Re: PhorumMail HOWTO? April 04, 2002 11:29AM |
Registered: 21 years ago Posts: 2 |
Re: PhorumMail HOWTO? April 05, 2002 08:37PM |
Re: PhorumMail HOWTO? April 20, 2002 02:38PM |
Registered: 23 years ago Posts: 39 |
<b>Re: PhorumMail HOWTO?</b> April 23, 2002 08:42AM |
<HTML>alias file:
[wks.uts.ohio-state.edu]
Peter Bowyer wrote:
>
> Does anyone know how you'd direct the mail to phorummail
> using sendmail and/or procmail?
>
> Thanks,
> Peter.</HTML>
[wks.uts.ohio-state.edu]
Peter Bowyer wrote:
>
> Does anyone know how you'd direct the mail to phorummail
> using sendmail and/or procmail?
>
> Thanks,
> Peter.</HTML>
Re: PhorumMail HOWTO? April 23, 2002 11:56AM |
Registered: 21 years ago Posts: 3 |
IMHO something like
:0
* ^Resent-Sender: your.mailinglist@your.server.domain
| /path/to/phorum/scripts/phorummail.php forum=15 path=PATH_TO_PHORUM
in your .procmailrc should work.
Or did i misunderstand the question?
chris
:0
* ^Resent-Sender: your.mailinglist@your.server.domain
| /path/to/phorum/scripts/phorummail.php forum=15 path=PATH_TO_PHORUM
in your .procmailrc should work.
Or did i misunderstand the question?
chris
Re: PhorumMail HOWTO? April 23, 2002 02:36PM |
Registered: 23 years ago Posts: 39 |
Re: PhorumMail HOWTO? April 26, 2002 03:03AM |
Registered: 23 years ago Posts: 39 |
Just one (hopefully the last) problem remaining... that of duplicate posts. Please see post [phorum.org] for the details.
Thanks,
Peter.
Thanks,
Peter.
Re: PhorumMail HOWTO? May 06, 2002 12:33PM |
Am I correct in thinking that I should get email sent to the address specified in "Email All Posts To:" whenever someone posts?
I've set this to my own email address on two different servers set up with the latest stable version of Phorum, but nothing is coming through. Tested the mail() function to make sure to worked, and it's fine.
Anyone have any idea what could go wrong here?
I've set this to my own email address on two different servers set up with the latest stable version of Phorum, but nothing is coming through. Tested the mail() function to make sure to worked, and it's fine.
Anyone have any idea what could go wrong here?
<b>Re: PhorumMail HOWTO?</b> May 08, 2002 01:12AM |
Re: PhorumMail HOWTO? May 08, 2002 02:31PM |
Re: PhorumMail HOWTO? August 08, 2003 04:56PM |
These steps are necessary for getting phorummail to work under Sendmail. They may not be in order and completely coherent, but if you have it installed you shouldn't have too much trouble.
Be sure you've configured mailman with:
./configure --with-mail-gid=mail
Be sure to edit /etc/aliases after you create a new list. The lines you need to add come in the email after your create the list.
Be sure phorummail has a sym link in /etc/smrsh:
ln -s /var/www/html/phorum/scripts/phorummail.php phorummail
Make forum mail alias in /etc/aliases like:
listname-phorum: "|/etc/smrsh/phorummail forum=3"
Run:
newaliases
Restart sendmail:
service sendmail restart
Put the following in the phorum settings:
Email All Posts To: listname@host.com
Return Email Address: listname@host.com
Subscribe listname-phorum@host.com to the mailing list!
Be sure you've configured mailman with:
./configure --with-mail-gid=mail
Be sure to edit /etc/aliases after you create a new list. The lines you need to add come in the email after your create the list.
Be sure phorummail has a sym link in /etc/smrsh:
ln -s /var/www/html/phorum/scripts/phorummail.php phorummail
Make forum mail alias in /etc/aliases like:
listname-phorum: "|/etc/smrsh/phorummail forum=3"
Run:
newaliases
Restart sendmail:
service sendmail restart
Put the following in the phorum settings:
Email All Posts To: listname@host.com
Return Email Address: listname@host.com
Subscribe listname-phorum@host.com to the mailing list!
Re: PhorumMail HOWTO? August 08, 2003 04:58PM |
Re: PhorumMail HOWTO? September 06, 2003 02:21PM |
Registered: 20 years ago Posts: 1 |
Re: PhorumMail HOWTO? October 11, 2003 12:30PM |
Sorry, you do not have permission to post/reply in this forum.