Re: [exim] send mail to a script

Góra strony
Delete this message
Reply to this message
Autor: Heiko Schlittermann
Data:  
Dla: exim-users
Temat: Re: [exim] send mail to a script
TM Annie Kuo <annie@???> (Mo 01 Okt 2007 20:14:36 CEST):
> Hello,
>
> I'm tasked with configuring exim to send emails with a specific
> recipient format to a script to process the emails.
>
> I'm confused with when and how to use routers and transports,
> directors or system filtering/forwarding (or some combination
> thereof). I see in past emails that I might want to use a pipe in the
> alias file to do this (and configure transport and routers in the
> .conf file), but someone told me to use system filtering.



If I didn't misunderstand your question,
the most simple solution could be about like this:

In /etc/aliases just setup an alias:

    local-part:    "|/full/path/to/your/script"


(Of course, replace "local-part" with your special recipient and
/full/...scipt as well with the approbiate path name)

If your config is somewhat "standard", this should work out of the box.

    Best regards from Dresden
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann HS12-RIPE -----------------------------------------
 gnupg encrypted messages are welcome - key ID: 48D0359B ---------------
 gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2  7E92 EE4E AC98 48D0 359B -