Happy New Year Everyone!
Today's struggle is with Mac OS X Server 10.4.8. I'd like to
be able to
trigger scripts by sending emails to a certain user and have
procmail
parse the emails and run scripts, but I can't seem to get
started.
The current status is:
- The ServerAdmin tool shows that POP and IMAP are running,
and I've
used the Workgroup Admin to enable mail for a test user.
- The server can send mail to external addresses from the
command line.
- Forwarding via /etc/aliases is working fine.
- Mail sent to local accounts from the command line vanishes
into thin
air--nothing in the mail queue, nothing in the system logs,
no mail
- I haven't been able to test procmail because I can't get
any local
accounts to receive mail.
here's a sample session:
smete105:~ paul$ mail paul
Subject: hi
hello
.
EOT
smete105:~ paul$ mailq
Mail queue is empty
smete105:~ paul$ mail
No mail for paul
this works fine:
smete105:~ paul$ mail paul me.berkeley.edu
Subject: hi
hello
.
EOT
Looking ahead to getting mail to work in the shell, I plan
to have
something like the following, comments welcome.
~paul/.forward:
'|exec /usr/bin/procmail'
~paul/.procmailrc
:0:
# If the message has the right From and Subject headers,
# use the body as the argument for my shell script.
* ^From.*someuser my.system
* ^Subject.*Push the button Max
| pushTheButtonMax.sh -b
:0:
! paul me.berkeley.edu
Thanks for any help,
PM
------------------------------------------------------------
------------
The following was automatically added to this message by the
list server:
For information about Micronet, including subscribing to
or unsubscribing from its mailing list and finding out
about upcoming meetings, please visit the Micronet Web site:
<http://micronet.be
rkeley.edu/>.
|