Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: groyk on November 18, 2008, 01:40:23 PM

Title: cron catch specific attachment from email.
Post by: groyk on November 18, 2008, 01:40:23 PM
Hi.

How do I make a cron job that checks every 30 min. if a mailbox receives email with a specific attachment?

If email is received I need to copy the attachment to an Ibay and jun a php script that handles the file.

ex.
1. mailbox xxx@company.xx receives email with attachment yyy
2. cron runs and finds attachment yyy
3. cron copies attachment yyy to ibay
4. cron starts handle_attachment.php
5. cron deletes email if required
Title: Re: cron catch specific attachment from email.
Post by: Stefano on November 18, 2008, 09:25:47 PM
Hi

I think you should look at procmail..

Ciao
Stefano
Title: Re: cron catch specific attachment from email.
Post by: m on November 19, 2008, 12:55:52 AM
or better make a qpsmtp plugin, which allows to reject the mail at the smtp gateway
Title: Re: cron catch specific attachment from email.
Post by: groyk on November 19, 2008, 07:42:15 AM
or better make a qpsmtp plugin, which allows to reject the mail at the smtp gateway

Hi
How does this qpsmtp works? (Is it like a spam filter??)
Is it included in the base of SME 7?
Where do I find articles that describe my problem?