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 emailpostfix and transports may do this IMHO not a job of dovecot as LDA/mailstorage -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20120713/a3cdf1eb/attachment-0004.bin>
Old school - in /etc/aliases you can set: user "|/home/user/script" And read the mail from stdin. Ken Voytek Eymont <voytek at 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 > > >-- >VoytekPacific.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.