[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Routing by sender



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2005-11-03 13:49, Philip Wigg wrote:
> Hi,
> 
> Is it possible to route email based on the envelope sender? I want all
> email from abc.com to go to smarthost A and all email from xyz.com to
> go to smarthost B. I suppose I'm looking for a smtproutes file, but
> based on the sender rather than the destination domain. The reason is
> that we have an application that generates email that needs to appear
> as if it comes from two separate companies and the two companies want
> the email to pass through their own corporate mail relays before it's
> delivered to it's recipient.
> 

One possible solution:

Say you are A.com, your customer is B.com and the intended recipient is
someone@xxxxx

If you can arrange messages from the application to be created with
someone%C.com@xxxxx recipient instead of someone@xxxxx and the
mailserver of B.com can deal with the percenthack then it can be done.

Let's say that the MTA of B.com is qmail and that in the B.com's
control/percenthack they put:
- ----------------
B.com
- ----------------

B.com's qmail will take the someone%C.com@xxxxx recipient then turn this
to someone@xxxxx and send the relevant message to C.com's MTA

This is higly problematic nevertheless as the B.com's MTA must make sure
that it accepts such percenthack messages only from A.com's MTA
otherwise it becomes an open relay. This can't be done, mind you,
without patching B.com's qmail to only accept percenthack messages from
the A.com's MTA (and you'll need to make a custom patch for that).

Quite possibly the MTA of B.com is not qmail or one of the MTAs that
support someone%C.com@xxxxx but may support relaying via the
someone@xxxxx@B.com or someone!C.com@xxxxx notation. Again it depends on
what the MTA of B.com is and if its admin can properly configure it
(esp. without creating an open relay).





- --
Best regards,
Thanos Massias
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD4DBQFDajk1Sy9m2i8jedwRAmF6AJdumNwRPnnTSh4v8vvqQJ7QguEhAJ9vrMAO
v9sDkr8cez5NXwu9w2YS3w==
=U+eY
-----END PGP SIGNATURE-----