Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help in mailer daemon process

2 views
Skip to first unread message

Bhavik

unread,
Jul 2, 2009, 12:47:14 AM7/2/09
to
Hi,
I want to implement mailer daemon process for the process, idea is
like somebody sends a mail with specific requirement. Once mailer
daemon receives a mail, parse it and process it.

I want to know how mailer daemon process runs ??
More specifically when I run this process it takes around 1-2 min and
average flow incoming mails is 6mail/min.

So want to know that whether mailer daemon runs serial mode like
process one mail then next OR it creates instances of process for the
each incoming mails ????????

Thanks in advance.... :-)

Message has been deleted

Bhavik

unread,
Jul 2, 2009, 11:21:52 AM7/2/09
to
On Jul 2, 11:28 am, Michael Vilain <vil...@NOspamcop.net> wrote:
> In article
> <b03b6f83-00c0-43cc-87ba-079b6929e...@t13g2000yqt.googlegroups.com>,
>
.....
>
> Hint: you didn't give any info on the mailer or OS, so I assumed a Unix
> variant with the standard mailing program sendmail.
>

Hi first of all thanks for the reply.....
I m using sun solaris and i have define alias with mail id (ex.-
autoP...@process.net) for this process in /etc/aliases so that
whenever somebody sends mail with using this id then this process will
be fork out.

So actually I want to know whether this daemon process will create
instance of the process OR it will execute in serial mode that one by
one mail ?

Maxwell Lol

unread,
Jul 2, 2009, 2:41:46 PM7/2/09
to
Bhavik <bhavikd...@gmail.com> writes:

> So actually I want to know whether this daemon process will create
> instance of the process OR it will execute in serial mode that one by
> one mail ?

When the mail delivery process occurs, it creates a new process.

The simplist way (in sendmail) is to have an entry in /etc/aliases like

# entry
myprocess: "|/usr/local/bin/mail-handler"

and that process reads the email, and must parse it itself.


Alternately, you can use procmail, have an account for the process,
and have in ~myprocess/.procmailrc some entry that does something.


This can be simple

#---
:0 f
| /usr/local/bin/handler


Or more complex using procmailrc, such as

:0 h c
* From:.*specialuser
* Subject:.*request
| /usr/local/bin/mail-handler >/usr/local/log/mail-handler.log

Bhavik

unread,
Jul 3, 2009, 10:22:56 AM7/3/09
to
On Jul 2, 11:41 pm, Maxwell Lol <nos...@com.invalid> wrote:

Thank you very for the answer... it helps lot... :-)

0 new messages