procmail - can it send a notification email?
Christian Schult
cschult at gmx.de
Wed Jan 2 10:08:02 UTC 2008
Hello David,
David Fletcher wrote:
[...]
> >from bash on the server "just works" and sends the email to me via my service
> provider. What I want to do if possible is work this command into a
> procmailrc recipe so that procmail notifies me that she has email, without
> saying what the email is or where it's from. That's her business.
>
> What I have at the moment is this:-
>
> :0
> * ^To.*wife@
> {
> :0:
> wife
>
> :0 A
> (sendEmail \
> -f procmail at example.com \
> -t me at example.com \
> -u "Notification" \
> -m "Your wife has new email" \
> -s auth.smtp.example.com \
> -xu userid -xp password)
> }
>
> which is made up from what I've found in the man pages and google. The message
> gets delivered to the mail box, but I can't get it to send the notification.
> Am I taking a reasonable approach or is this completely wrong?
Looks good to me, maybe the round brackets aren't needed. What's in
the logfiles? Turn logging on in .procmailrc:
PMDIR="$HOME/.procmail # where your procmail files reside
LOGFILE=$PMDIR/log
LOGABSTRACT=all
VERBOSE=on
Also look into the log of sendEmail to see if the mail was even
generated and track the way the mail took.
Christian
More information about the kubuntu-users
mailing list