Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

Random Idea... Possible?

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


mike.lyon at gmail

Apr 18, 2012, 12:36 PM

Post #1 of 7 (315 views)
Permalink
Random Idea... Possible?

Has anyone ever used / configured Exim as an email server to receive
incoming e-mails, capture an attached file and then save the file off
somewhere in a directory?

We currently have some partners and such that send us files via SCP but it
seems getting someone knowledgeable to set that up on the partner's side
can sometimes be an extremely painful task.

Was just a random idea. Wanted to see if anyone has ever done it before.

Thanks,
Mike

--
Mike Lyon
408-621-4826
mike.lyon [at] gmail

http://www.linkedin.com/in/mlyon
--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


mike.kennedy at dillards

Apr 18, 2012, 12:55 PM

Post #2 of 7 (305 views)
Permalink
Re: Random Idea... Possible? [In reply to]

On Wed, Apr 18, 2012 at 2:36 PM, Mike Lyon <mike.lyon [at] gmail> wrote:

> Has anyone ever used / configured Exim as an email server to receive
> incoming e-mails, capture an attached file and then save the file off
> somewhere in a directory?
>
> We currently have some partners and such that send us files via SCP but it
> seems getting someone knowledgeable to set that up on the partner's side
> can sometimes be an extremely painful task.
>
> Was just a random idea. Wanted to see if anyone has ever done it before.
>
> Thanks,
> Mike
>
>
I'm doing something comparable, using a transport_filter pointing to a
crummy perl script I wrote to strip off attachments matching certain mime
types and discard them. It would probably be trivial to perform a uudecode
and save the result instead of discarding.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


jpmens.dns at gmail

Apr 18, 2012, 11:55 PM

Post #3 of 7 (304 views)
Permalink
Re: Random Idea... Possible? [In reply to]

> Has anyone ever used / configured Exim as an email server to receive
> incoming e-mails, capture an attached file and then save the file off
> somewhere in a directory?

I recommend MailScanner [1] which, apart from a number of other useful
tasks, has done that for me in the past. It's rather easy to integrate
with Exim and documentation is pretty good.

Otherwise a transport to a pipe with a custom made program ought to do
the trick.

-JP

[1] http://www.mailscanner.info/

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


centos.admin at gmail

Apr 19, 2012, 12:41 PM

Post #4 of 7 (304 views)
Permalink
Re: Random Idea... Possible? [In reply to]

On 4/19/12, Mike Lyon <mike.lyon [at] gmail> wrote:
> Has anyone ever used / configured Exim as an email server to receive
> incoming e-mails, capture an attached file and then save the file off
> somewhere in a directory?
>
> We currently have some partners and such that send us files via SCP but it
> seems getting someone knowledgeable to set that up on the partner's side
> can sometimes be an extremely painful task.
>
> Was just a random idea. Wanted to see if anyone has ever done it before.

Not exactly an exim solution but a couple years back, we had a similar
requirement and I thought it was easier just to run a cronjob on a
script that basically "checks" emails and pull the attachments for
saving elsewhere.

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


odhiambo at gmail

Apr 19, 2012, 10:16 PM

Post #5 of 7 (298 views)
Permalink
Re: Random Idea... Possible? [In reply to]

On Thu, Apr 19, 2012 at 09:55, Jan-Piet Mens <jpmens.dns [at] gmail> wrote:

> > Has anyone ever used / configured Exim as an email server to receive
> > incoming e-mails, capture an attached file and then save the file off
> > somewhere in a directory?
>
> I recommend MailScanner [1] which, apart from a number of other useful
> tasks, has done that for me in the past. It's rather easy to integrate
> with Exim and documentation is pretty good.
>
> Otherwise a transport to a pipe with a custom made program ought to do
> the trick.
>
> -JP
>
>
Procmail would be a lot easier. One global rule and voila!

--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
I can't hear you -- I'm using the scrambler.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


mike.tubby at thorcom

Apr 19, 2012, 11:38 PM

Post #6 of 7 (301 views)
Permalink
Re: Random Idea... Possible? [In reply to]

On 20/04/2012 06:16, Odhiambo Washington wrote:
> On Thu, Apr 19, 2012 at 09:55, Jan-Piet Mens<jpmens.dns [at] gmail> wrote:
>
>>> Has anyone ever used / configured Exim as an email server to receive
>>> incoming e-mails, capture an attached file and then save the file off
>>> somewhere in a directory?
>> I recommend MailScanner [1] which, apart from a number of other useful
>> tasks, has done that for me in the past. It's rather easy to integrate
>> with Exim and documentation is pretty good.
>>
>> Otherwise a transport to a pipe with a custom made program ought to do
>> the trick.
>>
>> -JP
>>
>>
> Procmail would be a lot easier. One global rule and voila!
>

Or you could "capture" you files in the MIME ACL while they are unpacked
for you and identified in:

/var/spool/exim/scan/...

and just trap the sender address and content type and call a bit of PERL
to do the dirty work, or if your requirement is particularly simple and
you know the sender you can just use:

decode = <filename/path>


Mike





--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


exim-users at lists

Apr 20, 2012, 2:05 AM

Post #7 of 7 (306 views)
Permalink
Re: Random Idea... Possible? [In reply to]

On 20/04/12 06:16, Odhiambo Washington wrote:

>>> Has anyone ever used / configured Exim as an email server to receive
>>> incoming e-mails, capture an attached file and then save the file off
>>> somewhere in a directory?
>>
>> I recommend MailScanner [1] which, apart from a number of other useful
>> tasks, has done that for me in the past. It's rather easy to integrate
>> with Exim and documentation is pretty good.
>>
>> Otherwise a transport to a pipe with a custom made program ought to do
>> the trick.
>>
> Procmail would be a lot easier. One global rule and voila!

I wrote a Perl script a while back which makes numerous modifications to
incoming email, which can be called directly from an Exim
transport_filter, procmail, or anything else which pipes an email to a
script and gets a replacement email from that scripts output.

Depending on your level of Perl foo, you might be able to glean some
useful tips from it as it's pretty well commented:

https://github.com/mikecardwell/gpgit/
https://raw.github.com/mikecardwell/gpgit/master/gpgit.pl

It basically gpg encrypts email. I use it for encrypting all of my
incoming email that isn't already encrypted. If you want to use inline
encryption rather than PGP/MIME it does several lossy operations to try
and flatten the email down to a single text part first. If it's
multipart text/html and text/plain, it strips the HTML part (assuming
the text part has at least some content). If it has any image
attachments that are referred to from that HTML, it strips those too.

--
Mike Cardwell https://grepular.com/ http://cardwellit.com/
OpenPGP Key 35BC AF1D 3AA2 1F84 3DC3 B0CF 70A5 F512 0018 461F
XMPP OTR Key 8924 B06A 7917 AAF3 DBB1 BF1B 295C 3C78 3EF1 46B4
Attachments: signature.asc (0.58 KB)

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.