Bonjour 🙂

I'm trying to find a way to replicate this kind of port-based routing from 
Exim, into Postfix:

begin routers

regle_7025:
    driver      = redirect
    condition   = ${if eq {$interface_port}{7025} {1}{0}}
    errors_to   = [email protected]
    data        = [email protected]

regle_7026:
    driver      = redirect
    condition   = ${if eq {$interface_port}{7026} {1}{0}}
    errors_to   = [email protected]
    data        = [email protected]

smart_route:
        driver          = manualroute
        domains         = !+local_domains
        transport       = remote_smtp
        route_list      = * smtpm.test.ca


I've been trying some configuration and nothing seems to do the trick

In short, I want postfix to change the recipient of all email going through 
port 7025, 7026, etc
In exemple : email came from port 7025, then redirect/change recipient to 
[email protected]
if its 7026, redirect/change recipient to [email protected]

Maybe it's just not possible with postfix?

___________________________________

Étienne Gladu

Technicien développeur et intégrateur
Service du développement et de

la transformation du dossier étudiant - DETU

Université de Sherbrooke

USherbrooke.ca/sdtde/nos-projets/detu
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to