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.... :-)
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 ?
> 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
Thank you very for the answer... it helps lot... :-)