FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Mailing list integration
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Mailing list integration [message #162615] Wed, 23 June 2010 11:11 Go to next message
timwalter is currently offline  timwalter   United Kingdom
Messages: 12
Registered: June 2010
Karma: 0
Junior Member
Hi, on the steep bit of the learning curve...

Installed FUFforum (fairly) easily. Installed mailman, same server.
I have the mailman working fine.
I have mail from the forum going to the mailing list.
I cant get mail from the list to the forum...
I've added

list-bot: "|/usr/bin/php /var/FUDforum/scripts/maillist.php 1"
(and tried

list-bot: "|/usr/local/bin/php /var/FUDforum/scripts/maillist.php 1" as well) to /etc/aliases)

I've tried running that way, as a cron job and also from the command line.

Basically the output from the command line is

/var/FUDforum/scripts/maillist.php: 2: cannot open ?/php: No such file
/var/FUDforum/scripts/maillist.php: 3: /bin: Permission denied
/var/FUDforum/scripts/maillist.php: 4: Syntax error: "(" unexpected

I have chmod 777 maillist.php and checked its correct.

I'm now stuck halfway up the slope and stuck...

BTW which php shows
/usr/bin/php

Many thanks (as always an answer by yesterday would be great...!)
Tim
mail list sync [message #162620 is a reply to message #162615] Wed, 23 June 2010 11:58 Go to previous messageGo to next message
timwalter is currently offline  timwalter   United Kingdom
Messages: 12
Registered: June 2010
Karma: 0
Junior Member
Is there a specific path to investigate problems with this. All the rest of the system installed fine. I don't know where to start looking, having installed everything according to instructions...

I've configured /etc/aliases as per instructions (/usr/bin/php on Ubuntu)

WHere next, thanks
mailman/maillist.php troubleshooting... [message #162623 is a reply to message #162615] Wed, 23 June 2010 12:31 Go to previous messageGo to next message
yingtong is currently offline  yingtong   United Kingdom
Messages: 13
Registered: June 2010
Karma: 0
Junior Member
Hi, sorry if duplicated, some problems posting to this forum... a bad omen!

I have installed FUDforum and mailman on UBuntu

All fine and it sends messages from the forum to the mailman list.

I can't get themailman to forum to work despite following everything I can read to the letter.

ubuntu php seems to be in /usr/bin/php (no local) but no other changes.

Where / how do I start troubleshooting this, (relative noobie)

cheers

Tim
Re: Mailing list integration [message #162624 is a reply to message #162615] Wed, 23 June 2010 14:08 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3772
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
timwalter wrote:
/var/FUDforum/scripts/maillist.php: 2: cannot open ?/php: No such file


This typically happens when a PHP script is being processed as a shell script.

I bet you're running maillist.php from the command line, but you haven't fixed the first line of the script.
Re: Mailing list integration [message #162625 is a reply to message #162624] Wed, 23 June 2010 14:43 Go to previous messageGo to next message
yingtong is currently offline  yingtong   United Kingdom
Messages: 13
Registered: June 2010
Karma: 0
Junior Member
naudefj wrote on Wed, 23 June 2010 10:08
timwalter wrote:
/var/FUDforum/scripts/maillist.php: 2: cannot open ?/php: No such file


This typically happens when a PHP script is being processed as a shell script.

I bet you're running maillist.php from the command line, but you haven't fixed the first line of the script.



Yes, but this is the top of maillist.php


#!/usr/bin/php -q
<?/php
/**
* copyright            : (C) 2001-2010 Advanced Internet Designs Inc.
* email                : forum(at)prohost(dot)org
* $Id: maillist.php 4900 2010-02-07 08:54:10Z naudefj $
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; version 2 of the License.

**/


Re: Mailing list integration [message #162626 is a reply to message #162625] Wed, 23 June 2010 15:05 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3772
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Unfortunately I cannot help you any further. This is obviously not a FUDforum problem. Try a google to check for yourself.
Re: Mailing list integration [message #162627 is a reply to message #162626] Wed, 23 June 2010 15:33 Go to previous messageGo to next message
yingtong is currently offline  yingtong   United Kingdom
Messages: 13
Registered: June 2010
Karma: 0
Junior Member
naudefj wrote on Wed, 23 June 2010 11:05
Unfortunately I cannot help you any further. This is obviously not a FUDforum problem. Try a google to check for yourself.



Hi, thanks, I've spent most of the day googling... any ideas how I can track, mailman, to postfix, to forum process in any logfiles?
Re: Mailing list integration [message #162634 is a reply to message #162627] Sun, 27 June 2010 06:34 Go to previous messageGo to next message
naudefj is currently offline  naudefj   
Messages: 3772
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Try to change the /etc/aliases entry to
list-bot: "|/usr/bin/php /var/FUDforum/scripts/maillist.php 1 | logger"


Remember to run newaliases every time you change this file.

When the first message arrives and the script fails, the error will be written to /var/log/messages.
Re: Mailing list integration [message #162635 is a reply to message #162634] Sun, 27 June 2010 07:20 Go to previous messageGo to next message
naudefj is currently offline  naudefj   
Messages: 3772
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
You may also need to change the below setting in /etc/postfix/main.cf to the user that runs the webserver:

# The default_privs parameter specifies the default rights used by
# the local delivery agent for delivery to external file or command.
# These rights are used in the absence of a recipient user context.
# DO NOT SPECIFY A PRIVILEGED USER OR THE POSTFIX OWNER.
#
default_privs = www-data


When done, restart postfix with:
/etc/init.d/postfix restart

Re: Mailing list integration [message #162642 is a reply to message #162635] Sun, 27 June 2010 09:12 Go to previous messageGo to next message
yingtong is currently offline  yingtong   United Kingdom
Messages: 13
Registered: June 2010
Karma: 0
Junior Member
Thanks,

My server is currently rebuilding so will look at this when I'm back up and running, but thanks for the suggestion...
Tim
Re: Mailing list integration [message #162691 is a reply to message #162642] Fri, 02 July 2010 19:48 Go to previous messageGo to next message
yingtong is currently offline  yingtong   United Kingdom
Messages: 13
Registered: June 2010
Karma: 0
Junior Member
I still can't do this via /etc/aliases but have cracked it via pop mailbox.

Three questions, the forum only collects post if I run the maillist.php via cron, I cant see this in the documentation, but is this correct... (how often should maillist "run"?)

Also each mail appears on the mailing list (mailman) with this at the top of the post (in the body), is this right, can I remove it and whats the best way...


Content-Type: text/plain;
> charset="utf-8"
> Content-Transfer-Encoding: 8bit
> Organization: My forum, my way!
> In-Reply-To:<4C2D30CC(dot)3000406(at)yingtong(dot)co(dot)uk>
> X-FUDforum: baed86535067eaeaa54616100754ae4b<65>
> Message-ID:<41(dot)4c2d311a(at)www(dot)waltersoon(dot)co(dot)uk>

Finally, is there a "preferred" way of stopping spam entering via the mailing list facility. Malman is"secure" and I want the forum to be members only to write but global veiwable. If spam gets into the pop mailbox will it get sucked into the forum???

Cheers
Tim
Re: Mailing list integration [message #162695 is a reply to message #162691] Sat, 03 July 2010 09:14 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3772
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
yingtong wrote:
Three questions, the forum only collects post if I run the maillist.php via cron, I cant see this in the documentation, but is this correct... (how often should maillist "run"?)


Yes, it's correct. You need to run it as frequently as you want to load new posts. Every 2 to 3 minutes should work well.

yingtong wrote:
Also each mail appears on the mailing list (mailman) with this at the top of the post (in the body), is this right, can I remove it and whats the best way...

Content-Type: text/plain;
> charset="utf-8"
> Content-Transfer-Encoding: 8bit
> Organization: My forum, my way!
> In-Reply-To:<4C2D30CC(dot)3000406(at)yingtong(dot)co(dot)uk>
> X-FUDforum: baed86535067eaeaa54616100754ae4b<65>
> Message-ID:<41(dot)4c2d311a(at)www(dot)waltersoon(dot)co(dot)uk>


Looks like mailman cannot handle MIME encoded posts. Either that or FUDforum posts badly formatted messages.

yingtong wrote:
Finally, is there a "preferred" way of stopping spam entering via the mailing list facility. Malman is"secure" and I want the forum to be members only to write but global veiwable. If spam gets into the pop mailbox will it get sucked into the forum???


I don't use this myself, but I guess they will be loaded as well. It's quite easy to delete them afterwards. Alternatively, enable moderation and approve messages to be displayed.
Re: Mailing list integration [message #162726 is a reply to message #162695] Thu, 08 July 2010 19:48 Go to previous messageGo to next message
yingtong is currently offline  yingtong   United Kingdom
Messages: 13
Registered: June 2010
Karma: 0
Junior Member
[quote]naudefj wrote on Sat, 03 July 2010 05:14
yingtong wrote:
Three questions, the forum only collects post if I run the maillist.php via cron, I cant see this in the documentation, but is this correct... (how often should maillist "run"?)


Yes, it's correct. You need to run it as frequently as you want to load new posts. Every 2 to 3 minutes should work well.

I can't see any documentation of this, do I just guess?

yingtong wrote:
Also each mail appears on the mailing list (mailman) with this at the top of the post (in the body), is this right, can I remove it and whats the best way...

Quote:
Content-Type: text/plain;
> charset="utf-8"
> Content-Transfer-Encoding: 8bit
> Organization: My forum, my way!
> In-Reply-To:<4C2D30CC(dot)3000406(at)yingtong(dot)co(dot)uk[/email]>
> X-FUDforum: baed86535067eaeaa54616100754ae4b<65>
> Message-ID:<41(dot)4c2d311a(at)www(dot)waltersoon(dot)co(dot)uk[/email]>


Looks like mailman cannot handle MIME encoded posts. Either that or FUDforum posts badly formatted messages.


I can't configure Mailman to remove these...


Re: Mailing list integration [message #162729 is a reply to message #162726] Sat, 10 July 2010 07:05 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3772
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
yingtong wrote:
I can't see any documentation of this, do I just guess?


Yes, just pick a value that feels right and go with it. If it doesn't work well, you can always adjust it later.

yingtong wrote:
I can't configure Mailman to remove these...


It may help to ask on a Mailman support forum/list. If it's a FUDforum problem, we should be able to fix it. However, I don't think that's the case.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How Morons Can Install New Version of Fudforum to Their Host
Next Topic: Use getimagesize on an attached file from postproc.inc.t
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Dec 18 01:46:53 GMT 2024

Total time taken to generate the page: 0.02198 seconds