Forum

/ Home \ \ Subjects /



Subject: Using procmail

12/06/2007 07:01 xxx:
Is this possible to use procmail with small http server? How can I do this?
12/06/2007 10:09 Max:
If I know right, procmail is independent mail server. You may use it instead internal SMTP and POP3 servers. In this case just disable SMTP and POP3 in Small HTTP server, customize and run procmail server.


12/06/2007 13:42 xxxx:
No, procmail isn`t independent. It must be run by mail server like sendmail or postfix. Is there such possibility in small http server? I can`t found it in configuration
12/06/2007 17:30 Max:
Sendmail and Postfix are independent mail systems. An example Sendmail is not only sendmail utility that you use to send messages it can work as SMTP server too.
You may use external utility like sendmail to send messages from CGI-script, and from Small HTTP forward-files and from antivirus script. In this case the message will be send independent.
Small HTTP server provide full mail services and instead sendmail you may use sndmsg. This utility can send your messages through any SMTP server, or put it in outbox directory.

In UNIX systems for most compatible you may create /usr/bin/sendmail script with next content:
#!/bin/sh
/var/shttps/sndmsg -o smtp://127.0.0.1 $@
#--------- End
(in this example sndmsg in /var/shttps directory)
In this case not need a changes in sendmail-oriented scripts.


18/06/2007 18:50 xxxxxx:
Hmm I dont`t understand what do you mean.... I don`t have sendmail installed and I don`t have sndmsg.

I want to implement mail receving events using .procmailrc, but is there any way to get this file precessed by smallhttp?

Or maybe there is another way to implement mail receiving events (for example, run php script after new mail received)
19/06/2007 02:50 Max:
sndmsg included in shttplnx.tgz, shttpbsd.tgz packages.

May be I don`t understand right what doing procmail and why do you want to use it...

Small HTTP will not processing .procmailrc itself but it may run procmail (probably in filter mode) from antivirus script (when message has been received but before moved to user`s mailbox), or from user`s "forward" file (after message moved to user`s mailbox).


User: Password: New user:   Save password: