/etc/smrsh and maillist.php [message #19543] |
Tue, 03 August 2004 07:55 |
newnumbertwo
Messages: 38 Registered: June 2004
Karma:
|
Member |
|
|
i was wondering if anyone had had success piping messages into maillist.php via the sendmail restricted shell (/etc/smrsh).
i'm using fudforum 2.6.4, php 4.3.7 and sendmail 8.12.11 with a fedora core2 OS. i'm using mailman 2.1.5 for my mailing list manager, and attempting to integrate a forum with a mailing list using the maillist.php script.
the maillist.php script works great when i pipe messages into it manually. my web server is running using the same uid/gid that owns all the fudforum files. when i run the maillist.php script as this uid, i have no problems importing messages into the forums and have done this for over 40,000 messages in our archives.
my problems arise when i attempt to pipe incoming emails through the maillist.php script. at first, i followed smrsh tradition and added a symbolic link to the maillist.php script in /etc/smrsh. additionally, i set the maillist.php to be suid/sgid so the incoming email process wouldn't clobber the permissions on message_1, something that in previous testing with another smtp server caused me problems.
the user account running the web server and owning the FUDforum files is the email account i'm using to pipe the messages into maillist.php with. i don't have any problems running other programs suid/sgid in /etc/smrsh, but whenever i attempt to import a message using maillist.php, i'll get a '255 unknown mailer error' in my maillog.
i'm about to give up on trying to pipe messages directly into the forum from a .forward file and use a cron job to pick them up instead, but i wanted to ask on here first to see if anyone has gotten this mechanism to work.
|
|
|