[Exim] need a way for detecting loops and changing bounce re…

Top Page
Delete this message
Reply to this message
Author: Arkadiusz Miskiewicz
Date:  
To: exim-users
Subject: [Exim] need a way for detecting loops and changing bounce reason
I have situation where use can set email aliases and forwarding so for example
he can set:

- mail sent to email1@??? is directed to realaccountX
- realaccountX has forwarding to email2@???
- email2@??? is directed to realaccountY
- realaccountY has forwarding to email1@???

realaccount's are on local host so exim tries to route them but since
sql_virtual_aliases router skipped: previously routed email1@???
and I end up with ,,Unrouteable address'' for email1@???.

Now I want to add another router (probably) that will fail in such case with
different reason (than unroutable address) like ,,User has loop in email
setup''.

Any ideas on how to get that behaviour? How to detect such situation (probably
detecting ,,previously routed'' will be enough)?

--
Arkadiusz Miśkiewicz     CS at FoE, Wroclaw University of Technology
arekm.pld-linux.org, 1024/3DB19BBD, JID: arekm.jabber.org, PLD/Linux