Kris Deugau: > Jeetu wrote: > > im trying to use mimedefang milter to append footer based on > > Authenticated sender address > > MIMEDefang provides all sorts of useful info from the MTA in various > global variables. > > The one you're looking for is $SendmailMacros{"auth_authen"}, and should > be available without any special configuration. > man mimedefang-filter has the complete list of globals, and fairly clear > notes on which "sendmail macros" are available at which stages of > filtering. AFAICT Postfix automatically provides most of them; it's > only if you're using sendmail that you have to specifically tell it to > provide some of these macros to the milter.
That is a good point. Postfix makes these automatically available along with the MAIL FROM address: milter_mail_macros = i {auth_type} {auth_authen} {auth_author} {mail_addr} {mail_host} {mail_mailer} This is better than trying to scape it from a Received: header. Wietse