|
Re:what incoming address for mailing list? [message #10045 is a reply to message #10038] |
Fri, 16 May 2003 14:26 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The e-mail address you use to subscribe is not important, as long as it gets to your server and procmail will pick up on it.
As far as procmail config, that's up to you to figure out, however the actual bit about getting procmail to redirect message to FUD is shown through an example on the mailing list control panel.
FUDforum Core Developer
|
|
|
|
Re:what incoming address for mailing list? [message #10049 is a reply to message #10047] |
Fri, 16 May 2003 17:34 |
|
stevie
Messages: 35 Registered: May 2003 Location: Boston area, USA
Karma: 0
|
Member |
|
|
My message above is trying to understand the general flow, so I can debug better. Now, here is something more specific:
I changed my .procmailrc file to do logging - it now looks like:
TESTDIR=/Users/admin
MAILDIR=${TESTDIR}
LOGFILE=${TESTDIR}/Proctest.log
LOG="--- Logging for ${LOGNAME}, "
VERBOSE=yes
LOGABSTRACT=all
:0:
* ^TO_.*.com
| /web/fudfiles/scripts/maillist.php 1
From looking at the resulting log file, I can tell that procmail is indeed functioning in some way, because it "notices" my incoming email and tries to do something with the maillist.php script. But clearly something going terribly wrong. Here's the log (below), anyone care to guess about the problem?
--- Logging for admin, procmail: [503] Fri May 16 13:28:19 2003
procmail: Assigning "LOGABSTRACT=all"
procmail: Match on "(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?).*.com"
procmail: Couldn't determine implicit lockfile from "/web/fudfiles/scripts/maillist.php"
procmail: Locking ".lock"
procmail: Executing "/web/fudfiles/scripts/maillist.php,1"
/web/fudfiles/scripts/maillist.php: ?php: No such file or directory
/web/fudfiles/scripts/maillist.php: /Applications: is a directory
/web/fudfiles/scripts/maillist.php: line 5: syntax error near unexpected token `(C'
/web/fudfiles/scripts/maillist.php: line 5: `* copyright : (C) 2001,2002 Advanced Internet Designs Inc.'
procmail: Non-zero exitcode (2) from "/web/fudfiles/scripts/maillist.php"
procmail: Assigning "LASTFOLDER=/web/fudfiles/scripts/maillist.php 1"
procmail: Unlocking ".lock"
procmail: Bypassed locking "/var/mail/admin.lock"
procmail: Assigning "LASTFOLDER=/var/mail/admin"
procmail: Opening "/var/mail/admin"
procmail: Acquiring kernel-lock
procmail: Notified comsat: "admin@0:/var/mail/admin"
From zzzzz(at)zzzzzz(dot)com Fri May 16 13:28:19 2003
Subject: hi at 1:30
Folder: /var/mail/admin 832
Thanks all! -Steve
|
|
|
Re:what incoming address for mailing list? [message #10051 is a reply to message #10049] |
Fri, 16 May 2003 17:40 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Hmm here is what you need to do:
1) You need to determine the path of your PHP binary
2) Replace the existing path of PHP binary in the 1st line of /web/fudfiles/scripts/maillist.php with that path.
If it still does not work, remove the 1st line inside maillist.php
and change
| /web/fudfiles/scripts/maillist.php 1
To
| /path/to/php/binary/php /web/fudfiles/scripts/maillist.php 1
FUDforum Core Developer
|
|
|
|
|