On 2011-08-24 at 19:40 -0700, Jim Pazarena wrote: > Is there an acl which can examine the From: name?
Yes, acl_smtp_data. Remember that the RFC822/2822/5322 headers come in as part of the message body, after the DATA verb. So in acl_smtp_rcpt, you haven't yet seen the From: header. Also, note that per specification, From: contains one-or-more addresses. Now, you might decide to declare that your MTA, implementing your policy, only accepts emails with only one address in From:. That is certainly your right, although someone sending such mails will tell their users that you're the one not following the specifications. Thus the ${address:...} expansion operator to get just the email address, from the display name, is not guaranteed to work, unless you first have an ACL rule which rejects messages with multiple addresses in "From:". Instead, you need to use ${addresses:...} for reliability. So, for reliability, if you want to just check the last email address to occur in the From: header, then: ${reduce{${addresses:$h_from:}}{}{$item}} -Phil -- ## 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/