Email to web directory

keefe007

Verified User
Joined
Dec 25, 2004
Messages
292
One of my clients would like me to setup an email account in which all attachments going into that account are copied to a web folder on the same server.

More explicitly, they want to send emails containing .pdf attachments to scan@domain.com and have it placed in http://www.domain.com/scan.

I'm thinking of making a forward and pointing it to a script. Does anyone have a script that would serve this function?
 

floyd

Verified User
Joined
Mar 29, 2005
Messages
5,310
I'm thinking of making a forward and pointing it to a script.
That should work. Basically you need to look for a script that will extract the attachment and save it to a folder. There should be something out there on Google.
 

floyd

Verified User
Joined
Mar 29, 2005
Messages
5,310
I think the main problem keefe007 needed solved is getting a script to extract attachments.

I think using procmail is essentially doing the same thing as a forward in this case. You are still piping it to a script either way.
 

nobaloney

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
26,119
Location
California
Procmail is installed on your server because some older MTAs (for example, sendmail) cannot deliver mail on the local server themselves, and need procmail to do that for them. Exim can send mail anywhere you need it, and doesn't need procmail.

This thread actually doesn't belong in the E-Mail forum but in the scripting forum; I've moved it.

Jeff
 
Top