Thanks for the reply Bill, The problem here is that I need to rewrite the headers for multiple recipients so the only way how to separate them (AFAIK) is to get in emails one by one and check the rcpt_to value.
Since I can't touch the headers yet I need to set some flags or variables, understood Could you please provide some simple syntax for doing so? Checking rcpt_to against a list of users and adding a flag at SMTP time and checking this flag at DATA (or later) time and modifying the headers? Or just point me to some papers which deal with this thing specifically (I found few but maybe you know more readable ones) Can I perhaps use this new variable even in the rewrite part? Thank you either way Searcher wrote: > Hi there, > > how would I go about an ACL SMTP time header rewrite? > I need to check RCPT TO, that's not in the headers so can't use regular > rewrite/31_exim4-config_rewriting > > Thanks > -src- > > At RCPT TO you don't yet have any headers.... Prior to DATA, all an smtp session has is a 'negotiation' situation. Your MTA and the distant sender are introducing themselves, exchanging credentials, describing what is available and what is wanted (connect, helo, mail_from, rcpt_to). Ever see two dogs meeting for the first time? Much the same. You can *prepare* headers to be substituted or appended later, and can set flags to cause whatever you have prepped to be actioned. Or NOT. But DATA is the earliest you are transferred the message and its headers and attachments (if any). That said, a flag, value, or string carried in an acl_m variable might serve you better than header alteration. Bill
PGP.sig
Description: PGP signature
-- ## List details at http://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/
