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

Mailing List Archive: exim: users

wildcard recipients to script

 

 

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


brlewis at ourdoings

Jul 21, 2008, 8:01 PM

Post #1 of 6 (288 views)
Permalink
wildcard recipients to script

I run a photo-sharing site and I want to enable uploads by email.

Users will get an address like m-1234abcd5678efgh[at]ourdoings.com

I want exim4 (on Debian stable) to route m-*@ourdoings.com to a script.

If the script has output, bounce the message.

It seems like this shouldn't be hard to do, but I couldn't readily see from
the docs how to set up wildcard or regexp recipients. What's the best way
to do this?


--
http://ourdoings.com/
An Illustrated Archive of Your Doings
--
## List details at http://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/


brlewis at ourdoings

Jul 26, 2008, 8:03 PM

Post #2 of 6 (236 views)
Permalink
Re: wildcard recipients to script [In reply to]

Was this not answered because the answer is too easy, or because it's too
hard?

If it's easy, could someone please point me to the relevant FAQ or
documentation section?


On Mon, Jul 21, 2008 at 11:01 PM, Bruce Lewis <brlewis[at]ourdoings.com> wrote:

> I run a photo-sharing site and I want to enable uploads by email.
>
> Users will get an address like m-1234abcd5678efgh[at]ourdoings.com
>
> I want exim4 (on Debian stable) to route m-*@ourdoings.com to a script.
>
> If the script has output, bounce the message.
>
> It seems like this shouldn't be hard to do, but I couldn't readily see from
> the docs how to set up wildcard or regexp recipients. What's the best way
> to do this?
>
>
> --
> http://ourdoings.com/
> An Illustrated Archive of Your Doings
>



--
http://ourdoings.com/
An Illustrated Archive of Your Doings
--
## List details at http://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/


eximX1211 at linuxwan

Jul 26, 2008, 11:06 PM

Post #3 of 6 (234 views)
Permalink
Re: wildcard recipients to script [In reply to]

Bruce Lewis wrote:
> Was this not answered because the answer is too easy, or because it's too
> hard?
>
> If it's easy, could someone please point me to the relevant FAQ or
> documentation section?
>
>
> On Mon, Jul 21, 2008 at 11:01 PM, Bruce Lewis <brlewis[at]ourdoings.com> wrote:
>
>> I run a photo-sharing site and I want to enable uploads by email.
>>
>> Users will get an address like m-1234abcd5678efgh[at]ourdoings.com
>>
>> I want exim4 (on Debian stable) to route m-*@ourdoings.com to a script.
>>
>> If the script has output, bounce the message.
>>
>> It seems like this shouldn't be hard to do, but I couldn't readily see from
>> the docs how to set up wildcard or regexp recipients. What's the best way
>> to do this?

local_part_prefix
http://docs.exim.org/current/spec_html/ch15.html#id563137

--
The Exim Manual
http://www.exim.org/docs.html
http://docs.exim.org/current/

--
## List details at http://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/


brlewis at ourdoings

Jul 27, 2008, 2:05 PM

Post #4 of 6 (224 views)
Permalink
Re: wildcard recipients to script [In reply to]

Thanks Ted, that answered it.

I configured the following router and transport. Let me know if I did
anything stupid. This is my first time doing any exim configuration, and I
don't anticipate doing much more if any in the future.

ourdoings_upload_address:
local_part_prefix = m-
driver = accept
transport = ourdoings_upload_pipe

ourdoings_upload_pipe:
debug_print = "T: ourdoings_upload_pipe for $local_part@$domain"
driver = pipe
return_output = true
path = "/bin:/usr/bin"
command = "/usr/local/jetty/webapps/alpha/WEB-INF/photo_upload.sh"

--
http://ourdoings.com/
An Illustrated Archive of Your Doings
--
## List details at http://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-20080324 at djce

Jul 27, 2008, 2:23 PM

Post #5 of 6 (222 views)
Permalink
Re: wildcard recipients to script [In reply to]

On Sun, Jul 27, 2008 at 05:05:34PM -0400, Bruce Lewis wrote:
> ourdoings_upload_address:
> local_part_prefix = m-
> driver = accept
> transport = ourdoings_upload_pipe

That router has no 'domains' clause, so it will potentially match every
domain. I hope that's what you wanted.

--
Dave Evans
http://djce.org.uk/
http://djce.org.uk/pgpkey
Attachments: signature.asc (0.18 KB)


brlewis at ourdoings

Jul 27, 2008, 2:39 PM

Post #6 of 6 (223 views)
Permalink
Re: wildcard recipients to script [In reply to]

No, not what I wanted. Good thing I haven't changed my MX records just yet.

Added to the router:
domains = +local_domains


On Sun, Jul 27, 2008 at 5:23 PM, Dave Evans <exim-users-20080324[at]djce.org.uk>
wrote:

> On Sun, Jul 27, 2008 at 05:05:34PM -0400, Bruce Lewis wrote:
> > ourdoings_upload_address:
> > local_part_prefix = m-
> > driver = accept
> > transport = ourdoings_upload_pipe
>
> That router has no 'domains' clause, so it will potentially match every
> domain. I hope that's what you wanted.
>
> --
> Dave Evans
> http://djce.org.uk/
> http://djce.org.uk/pgpkey
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFIjOc/nYOJTU6nkkkRArdJAJ0cvCCogFPfW7VaYgjrrTaxaRu/2ACfVjii
> FiMHzZ905orhMKeEFCp+5o8=
> =I9Vu
> -----END PGP SIGNATURE-----
>
> --
> ## List details at http://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/
>



--
http://ourdoings.com/
An Illustrated Archive of Your Doings
--
## List details at http://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 RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.