View previous topic :: View next topic |
Author |
Message |
DumbAss Apprentice
Joined: 30 Sep 2003 Posts: 247 Location: 't Steen
|
Posted: Mon Mar 22, 2004 11:03 pm Post subject: maildropfilter execute shell command |
|
|
Hi, I want, when I receive new email, execute a command. I want smbclient to send me a message.
I thought to be smart and add this line in /etc/maildroprc:
Quote: | xfilter "echo "You have got mail" | smbclient -M tim" |
But then I get this error message:
Quote: | status=deferred (temporary failure. Command output: maildrop: error writing to filter. /usr/bin/maildrop: Unable to filter message. ) |
Then I get the message but the mail is not delivered. Is there another way to achieve what I want? |
|
Back to top |
|
|
DumbAss Apprentice
Joined: 30 Sep 2003 Posts: 247 Location: 't Steen
|
Posted: Tue Mar 23, 2004 10:20 pm Post subject: |
|
|
Does anyone know the asnwer to this question? Or maybe another solution? |
|
Back to top |
|
|
DumbAss Apprentice
Joined: 30 Sep 2003 Posts: 247 Location: 't Steen
|
Posted: Wed Mar 24, 2004 2:22 pm Post subject: |
|
|
OK. I found out myself. I know what was wrong.
It was supposed to be like this:
Quote: | 'echo "You've got mail from $SENDER" |smbclient -M hostname' |
It really works well now! |
|
Back to top |
|
|
|