Mandi! Mike Brudenell via Exim-users In chel di` si favelave... [sorry for the late answer...]
> I'm not too sure what you're asking??? Is it about the *errors_to* option for > routers in Exim? If so, the documentation for errors_to in the > *Specification* shows it is expanded when it is used. That is, you can use > a string expansion expression with the option to choose what value you > should assign it based on other things. > So you can write a string expansion that does whatever you need ??? for > example, test the domain of the recipient address to see whether they are > one of your local users or not, then do either a file- or LDAP-lookup to > see if there is a value to be sued for them. Exactly that. So my current condition is: condition = ${if and{{!eq{${domain:$sender_address}}{SRS_DOMAIN}}{!eq{$sender_address}{}}}} so i can rewrite as: condition = ${if and{ {!eq{${domain:$sender_address}}{SRS_DOMAIN}} {!eq{$sender_address}{}} or{ {eq{$domain}{}} {!eq{$domain}{SRS_DOMAIN}} } } } So condition apply (and errors_to get rewritten) if: + the sender's domain is not empty, AND + the sender's domain IS NOT the local domain (macro SRS_DOMAIN), AND + the recipient domain is empty, OR + the recipient domain is the local domain Could be? Thanks. -- Meno male che adesso non c'e` Nerone... (E. Bennato) -- ## List details at https://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/