|
Prev: domain literals and virtusertable
Next: How do I run a program for any/all possible email address at my domain? (Probably dumb question)
From: Will Hatcher on 21 Jun 2008 16:47 How can I make sendmail run an external program to any and all possible email addresses to my domain? Basically, my software needs to create artificial/dynamic email addresses kind of on the fly (but to my domain) that can be sent from and to eternally, so I can't create a Unix 'user' for each one with a .forward. This is making me crazy because I did something like this a while back using smrsh and so forth but can't remember how it was done, and my knowledge of the terms is so rusty that I've been looking all around but can't nail it down. Thanks, -Will
From: Will Hatcher on 21 Jun 2008 18:30 On Jun 21, 2:37 pm, Andrzej Adam Filip <a...(a)onet.eu> wrote: > Will Hatcher <sili...(a)gmail.com> wrote: > > Use virtusertable to remap to plussed addresses > john....(a)example.com -> postmasteuser+john.doe > > virtusertable entries: > #v+ > # entries for addresses required by RFC > postmas...(a)example.com postmaster > ab...(a)example.com abuse > # entry for all remanding addresses in the domain > @example.com user+%1 > #v- > > Sendmail on Linuxes typically use procmail as local mailer program. > In such configurations ~/.procmailrc script > 1) will get "john.doe" in $1 > 2) will be called once per every recipient in example.com for > multirecipient messages Ah cool I figured it would be something like that. I did figure out a way after posting though, I wonder if it is evil? Basically, LUSER_RELAY seems to work, I just send that result to my custom program that then decides what to do with it. -W
From: Will Hatcher on 22 Jun 2008 17:13
> LUSER_RELAY is simple and it may be acceptable if: > * you do not need original envelope recipient information > * you do not want to limit "special deliveries" only to one/some local > email domains > Cool, thanks for the tips, LUSER_RELAY will work currently, but I'll keep your information handy to later improve my application. -W |