The EXIM manual has a very simplistic example:
verp_smtp:
driver = smtp
max_rcpt = 1
return_path = \
${if match {$return_path}{^(.+?)[EMAIL PROTECTED]
[EMAIL PROTECTED]
This is incomplete. I've looked for hours trying to find the answer
to a "complete" version, have given up and am posting.
What I desire is something like is to send to:
[EMAIL PROTECTED]
and have the following happen. I've just started working with EXIM
and am unsure of syntax. Here's the logic though:
if match {$return_path}{^(.+?)[EMAIL PROTECTED] {
#
# if I understand EXIM syntax this code will only proceed
# for addresses of the form '[EMAIL PROTECTED]'
#
return_path = \
${if match {$return_path}{^(.+?)[EMAIL PROTECTED]
[EMAIL PROTECTED]
#
# determine the correct 'real_recipient' who will be receiving
# this email (SMTP RCPT) by chopping off the trailing '-request'
#
real_recipient = ${extract{1}{-}{$local_part}}
#
# fixup all the headers where 'Deliver-To: ...' is a guess at
# what header to add to set the correct SMTP 'RCPT TO: ...' info
#
headers_remove "Deliver-To:To:Return-Path:Errors-To:"
headers_add "Deliver-To: $real_recipient\nTo: $real_recipient\n\
Return-Path: $return_path\n\Errors-To: $return_path"
}
The manual example will always fail as sending mail to
[EMAIL PROTECTED] will always cause:
"Recipient address rejected: User unknown
as the recipient should be [EMAIL PROTECTED] rather than [EMAIL PROTECTED]
Thanks.
--
Can you feel like $1,000,000 all day, every day? Yes you can!
Your simple secrets are here - http://RadicalHealth.com/peak
--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/