[Pymilter] use py-milter to change the routing of a Mail

Gerhard Schmidt estartu at augusta.de
Mon Aug 6 10:03:19 EDT 2018


Am 06.08.2018 um 15:44 schrieb Stuart Gathman:
> Sendmail routing is controlled by mailertable.db (and SMTP AUTH
> passwords are stored in authinfo.db), and mailertable.db can be updated
> without restarting sendmail.  In most distros,  mailertable.db is
> writable only by root - but one solution is to make it writable by your
> milter.  I am assuming that you have a huge database of clients, with
> authorized MTA configured for each client - and therefore cannot easily
> use the mailertable and authinfo tables for sendmail as a static
> configuration.
> 
> I believe you are correct in that I am not aware of any milter api
> substitute for mailertable/authinfo.  You could also update
> mailertable.db/authinfo.db whenever you update the corresponding record
> in your client database, but you probably have many MTAs, and therefore
> want to do it only when actually sending an email for a client.  Hence,
> doing it from milter is the optimum time to do it.

Mailertable is for routing based on to: not on from:

I'm trying to send a mail with a from: uuuu at xyz.com to the smarthost
that is allowd to send @xyz.com mails regardless of the destination
(to:) address. mails from vvvv at zyx.com will be routed over an different
mailserver that is allowed to send mails for @zyx.com regardless about
the destination of the Mail and so on.

Regards
   Estartu



<!DSPAM:1650F8619D82117728162434>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://gathman.org/pipermail/pymilter/attachments/20180806/fbda1993/attachment.sig>


More information about the Pymilter mailing list