[Dovecot] Antwort: Re: Running a script when a mail arrives

r.lang at scan-plus.de r.lang at scan-plus.de
Wed Sep 19 13:58:53 EEST 2007


Hi,

> This sounds like a better task to do at the MTA level. I know Postfix 

We use qmails 'qmail-command' - feature. For a certain virtual domain all 
mails
are filtered/sorted by a filterscript of our own. Check if your incoming 
mailserver
or MTA has such a capability. For qmail its as simple as placing a .qmail 
-File in the
users home directory with '|./path/to/scipt', the script getting the mail 
on its
stdin, and some more useful information via the environment.

Greetz,
Ruben

> has the capability to do such things. You can write a Perl script for 
> example and make entries in the main.cf and/or master.cf files and 
> postfix will pass the e-mail to that script during the rest of it's 
> processing.
> 
> Tom
> 
> Dennis Becker wrote:
> > Hi,
> > I'm trying to execute a script when a mail arrives in a given user's 
> > mailbox. Something like .dovecot.sieve.
> > The reason I'm not using sieve itself is that I need to do stuff on 
mail 
> > arrival, which is beyond sieve's features.
> > 
> > So is there a way to tell dovecot to run a script when a mail arrives 
in 
> > a certain mailbox? Optionally a solution to forward the whole mail to 
a 
> > script would be good too.
> > 
> 


More information about the dovecot mailing list