[CentOS] Receive, process and send email
Les Mikesell
lesmikesell at gmail.com
Sun Sep 20 20:19:09 UTC 2009
CSB wrote:
> We wish to do the following:
> 1. receive an email with an attachment
> 2. process the email body to get some information from it
> 3. send an outbound email to an email address based on the information
> derived from step 2. The email will include the attachment received in step
> 1
>
> I'm not sure where to start with this one so any suggestions would be
> appreciated.
Directing received email to a program can be done either with a sendmail alias
that pipes to a program or a procmail recipe, depending on whether the address
is a real system user or not.
If you want to program in perl, look at MIME::tools to parse the inbound copy's
body and attachments and perhaps Mail::Sender to reassemble and re-send.
--
Les Mikesell
lesmikesell at gmail.com
More information about the CentOS
mailing list