[Mimedefang] Custom SMTP relaying

Adam Lanier adam at krusty.madoff.com
Thu Oct 19 12:20:04 EDT 2006


On Thu, 2006-10-19 at 11:13 -0400, David F. Skoll wrote:
> Roedel, Mark wrote:
> 
> > What would be the simplest way to specify -- either in Sendmail config
> > files, or in our existing MIMEDefang filter code -- that we want to
> > messages to certain (about a half-dozen or so) users redirected to the
> > Can-It machine rather than handed off directly to our Exchange server?
> 
> In Sendmail, you'd need to use the ldap_routing FEATURE, which can
> route based on the entire e-mail address (not just the domain.)
> 
> In MIMEDefang, you'd have to hack something in filter_end that iterates
> over @Recipients.  For any recipient that should be rerouted (based
> on whatever criteria you like), you'd need to delete that recipient
> (let's say foo at letu.edu) and add a new recipient (foo at canit.letu.edu).
> 
> You'd then have a mailertable entry routing canit.letu.edu to the CanIt
> machine.  And the final piece of the puzzle is to convince your Exchange
> server to accept foo at canit.letu.edu as a local recipient.

Couldn't you use virtusertable to rewrite the recipient addresses to the
Can-It host?

virtusertable
user at foo.com		user at can-it-host.foo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://lists.mimedefang.org/pipermail/mimedefang_lists.mimedefang.org/attachments/20061019/052ba729/attachment.sig>


More information about the MIMEDefang mailing list