> When a USER receives a mail in the spool/mail - directory I
> want to execute a program/script.
> How can I configure Sendmail to execute a program when user
> receives a mail?
Configuring Sendmail is an absoultely huge and very difficult subject
and one that really has nothing to do with Linux since 99.99% of
sendmail configuration is platform independant. There are sendmail
books, web sites, FAQs, newsgroups, tee-shirts, coffee-mugs,
On a per-user basis users can put programs in their ~/.forward
$ echo $LOGNAME >~/.forward # If I want a copy of the mail in my mailbox too
$ echo "| /some/command" >>~/.forward # Pipe a copy into /some/command
Also the answer depends on what local mail delivery agent sendmail is
configured to use. For example on SuSE Linux the default is for
sendmail to be configured to use procmail as the local mail delivery
agent so you can put stuff in /etc/procmailrc.
\\ ( )
# ll l\\