[Dovecot] ot: execute a script via email?
anyone has any tips what's best way to execute a script via email ?
I have a wget script that fetches some pages, and, emails me the output, there is no paramters passed, it's all in the script I'll like to email in and action the script to get the results email
-- Voytek
Am 13.07.2012 01:03, schrieb Voytek Eymont:
anyone has any tips what's best way to execute a script via email ?
I have a wget script that fetches some pages, and, emails me the output, there is no paramters passed, it's all in the script I'll like to email in and action the script to get the results email
postfix and transports may do this IMHO not a job of dovecot as LDA/mailstorage
Old school - in /etc/aliases you can set: user "|/home/user/script" And read the mail from stdin. Ken
Voytek Eymont <voytek@sbt.net.au> wrote:
anyone has any tips what's best way to execute a script via email ?
I have a wget script that fetches some pages, and, emails me the output, there is no paramters passed, it's all in the script I'll like to email in and action the script to get the results email
-- Voytek
Pacific.net
On 07/13/2012 03:42 AM, Ken Anderson wrote:
Voytek Eymont <voytek@sbt.net.au> wrote:
anyone has any tips what's best way to execute a script via email ?
I have a wget script that fetches some pages, and, emails me the output, there is no paramters passed, it's all in the script I'll like to email in and action the script to get the results email
-- Voytek Old school - in /etc/aliases you can set: user "|/home/user/script" And read the mail from stdin. Ken
There is available dovecot specific sieve extension (vnd.dovecot.pipe <http://hg.rename-it.nl/pigeonhole-0.3-sieve-extprograms/raw-file/tip/doc/rfc/spec-bosch-sieve-extprograms.txt>) to pipe messages to a pre-defined set of external programs.
Old school - in /etc/aliases you can set: user "|/home/user/script" And read the mail from stdin. Ken
works great but requires root to do this
Voytek Eymont <voytek@sbt.net.au> wrote:
anyone has any tips what's best way to execute a script via email ?
I have a wget script that fetches some pages, and, emails me the output, there is no paramters passed, it's all in the script I'll like to email in and action the script to get the results email
-- Voytek
Pacific.net
If you don't have root, you are probably going to be restricted from other methods by the security policy of a shared host. In that case, just use fetchmail or other means of checking mail for your 'trigger' message, then run your process where you DO have permission. Ken
Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl> wrote:
Old school - in /etc/aliases you can set: user "|/home/user/script" And read the mail from stdin. Ken
works great but requires root to do this
Voytek Eymont <voytek@sbt.net.au> wrote:
anyone has any tips what's best way to execute a script via email ?
I have a wget script that fetches some pages, and, emails me the output, there is no paramters passed, it's all in the script I'll like to email in and action the script to get the results email
-- Voytek
Pacific.net
Pacific.net
anyone has any tips what's best way to execute a script via email ?
use procmail - it's easy and actually works. you can do basically everything with procmail.
This question is off topic, dovecot is not SMTP agent.
I have a wget script that fetches some pages, and, emails me the output, there is no paramters passed, it's all in the script I'll like to email in and action the script to get the results email
use procmail and possibly formail to execute anything and optionally reply the result
man procmailrc man procmailex man formail
make sure procmail is actually executed on your mail system. depends of your MTA.
On 07/13/2012 11:14 AM, Wojciech Puchar wrote:
anyone has any tips what's best way to execute a script via email ?
use procmail - it's easy and actually works. you can do basically everything with procmail.
This question is off topic, dovecot is not SMTP agent.
I have a wget script that fetches some pages, and, emails me the output, there is no paramters passed, it's all in the script I'll like to email in and action the script to get the results email
use procmail and possibly formail to execute anything and optionally reply the result
man procmailrc man procmailex man formail
make sure procmail is actually executed on your mail system. depends of your MTA.
Are you willing to recommend procmail without any warnings/disclaimers whatsoever?
<quote src=" http://en.wikipedia.org/wiki/Procmail "> Stable release <http://en.wikipedia.org/wiki/Software_release_life_cycle> 3.22 / September 10, 2001 [...] Procmail is widely used on Unix <http://en.wikipedia.org/wiki/Unix>-based systems and stable, but no longer maintained; users who wish to use a maintained program are advised to use an alternative MDA, </quote>
Stable release <http://en.wikipedia.org/wiki/Software_release_life_cycle> 3.22 / September 10, 2001 [...] Procmail is widely used on Unix <http://en.wikipedia.org/wiki/Unix>-based systems and stable, but no longer maintained; users who wish to use a maintained program are advised to use an alternative MDA, </quote>
can you explain what is wrong in using greatly working program just because there are no new versions?
What kind of external "maintenance" you need for it?
Sorry but your warning is a pure nonsense. procmail is mature software and that's adventage.
Am 13.07.2012 20:46, schrieb Wojciech Puchar:
Stable release <http://en.wikipedia.org/wiki/Software_release_life_cycle> 3.22 / September 10, 2001 [...] Procmail is widely used on Unix <http://en.wikipedia.org/wiki/Unix>-based systems and stable, but no longer maintained; users who wish to use a maintained program are advised to use an alternative MDA, </quote>
can you explain what is wrong in using greatly working program just because there are no new versions?
What kind of external "maintenance" you need for it? Sorry but your warning is a pure nonsense. procmail is mature software and that's adventage
http://www.cvedetails.com/product/392/Procmail-Procmail.html?vendor_id=225
hopefully there will be not found any new security problem now withut get fixed
On 07/13/2012 09:06 PM, Reindl Harald wrote:
Am 13.07.2012 20:46, schrieb Wojciech Puchar:
Stable release <http://en.wikipedia.org/wiki/Software_release_life_cycle> 3.22 / September 10, 2001 [...] Procmail is widely used on Unix <http://en.wikipedia.org/wiki/Unix>-based systems and stable, but no longer maintained; users who wish to use a maintained program are advised to use an alternative MDA, </quote>
can you explain what is wrong in using greatly working program just because there are no new versions?
What kind of external "maintenance" you need for it? Sorry but your warning is a pure nonsense. procmail is mature software and that's adventage http://www.cvedetails.com/product/392/Procmail-Procmail.html?vendor_id=225
hopefully there will be not found any new security problem now withut get fixed
- IMHO Stable stream of new versions usually indicate maintenance group ready to fix would be vulnerabilities.
- I miss LMTP support in procmail. AFAIR it has been supported in some versions but current Debian version no longer mentions it in the man page.
10 years old version is something that IMHO must be mentioned when recommending procmail. For some people it is not important, for some people it is important information/hint.
versions but current Debian version no longer mentions it in the man page.
10 years old version is something that IMHO must be mentioned when recommending procmail. For some people it is not important, for some people it is important information/hint.
so you've mentioned. that's ok. but don't say it is bad.
not everyone in the world choose software based on age.
can you explain what is wrong in using greatly working program just because there are no new versions?
What kind of external "maintenance" you need for it? Sorry but your warning is a pure nonsense. procmail is mature software and that's adventage
http://www.cvedetails.com/product/392/Procmail-Procmail.html?vendor_id=225
hopefully there will be not found any new security problem now withut get fixed
so hack my mail. i use procmail heavily. i'm waiting
Am 14.07.2012 19:48, schrieb Wojciech Puchar:
can you explain what is wrong in using greatly working program just because there are no new versions?
What kind of external "maintenance" you need for it? Sorry but your warning is a pure nonsense. procmail is mature software and that's adventage
http://www.cvedetails.com/product/392/Procmail-Procmail.html?vendor_id=225
hopefully there will be not found any new security problem now withut get fixed
so hack my mail. i use procmail heavily. i'm waiting
would you stupid boy stop your permanently trolling on this list? what is your problem? that you saw the IOPS of SAN storages from me after your embarrassing discussion and now searching some other reason to piss around?
i only pointed out that your "pure nonsense" statement is naive and if you can not stand criticism be quit at all
Am 14.07.2012 20:28, schrieb Wojciech Puchar:
so hack my mail. i use procmail heavily. i'm waiting
would you stupid boy stop your permanently trolling on this list?
first i would need to start
you even quoted it
P.S.: youd o not need to reply-all if answering to members of a mailing-list, that is why "repyl to list" exists in thunderbird and other clients
participants (5)
-
Andrzej A. Filip
-
Ken Anderson
-
Reindl Harald
-
Voytek Eymont
-
Wojciech Puchar