Re: Integrate With A Mailing List [message #31782 is a reply to message #31780] |
Wed, 17 May 2006 22:59 |
darren
Messages: 16 Registered: January 2006
Karma:
|
Junior Member |
|
|
aleman wrote on Wed, 17 May 2006 18:34 | OK Latest in the continuing saga that is my struggle with everything UNIX based
I have successfullt set up FUDForum, Modified the template, and set up mailing from the forum to a Subscription List (Handled by Mailman)! Yay!
Ok now the bit that I thought would be tricky, going from the mailing list to FUDForum . . . . procmail . . . oh . . . . Yeuch!
Off to google, and come up with a basic introduction to mail forwarding using procmail. Right, now according to the instructions on the mailing list page of FUDForum I need to add something along the lines of
:0:
* ^TO_ .*ukhbtest(at)lists(dot)uk-homebrew(dot)info
| /home//ukhomebrew/uk-homebrew.info/.forum/scripts/maillist.php 2
into my .procmailrc file (or better still a rc.subscription file that I have included in the .procmailrc file)
OK done that with pico
Still didn't work mail went to and back from the mailing list but didn't appear in the forum, and nothing in the pm log either. Checked hosts wiki and found some more instructions. I have to set mail up to pipe through procumail using a .forward.something file. . . . Ok Done that . . . Oh Now mail doesn't get to the mailing list it gets returned to sender . . . AH BUT THERE IS A PM LOG! procmail is working!! Oh . . . Contents of log are
procmail: [20191] Wed May 17 15:16:56 2006
procmail: No match on "(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To).*[^-a-zA-Z0-9_.])?) .*ukhbtest(at)lists(dot)uk-homebrew(dot)info"
procmail: Assigning " LASTFOLDER=/mnt/thresher/vol/boot/spunky/doodles/ukhomebrew/Maildir/new/114 7904216.20191_1.chopstick "
procmail: Notified comsat: "ukhomebrew@0 :/mnt/thresher/vol/boot/spunky/doodles/ukhomebrew/Maildir/new/1147904216.20 191_1.chopstick "
From MAILER-DAEMON Wed May 17 15:16:56 2006
Subject: Mail delivery failed: returning message to sender
Folder: /mnt/thresher/vol/boot/spunky/doodles/ukhomebrew/Maildir/new 2494
OK anyone got any ideas. To me it seems that the ^TO_ isn't matching the list address, which is definately correct, could the regex be confusing matters?
Regards
Aleman
|
The procmail FAQ says that "a .* just after ^TO or ^TO_ is also superfluous" - http://laku19.adsl.netsonic.fi/%7Eera/procmail/mini-faq.html#syntax
In other words, try something like
:0:
* ^TO_ukhbtest(at)lists(dot)uk-homebrew(dot)info
... without the .*
[Updated on: Wed, 17 May 2006 23:05] Report message to a moderator
|
|
|