Hi

> I guess that's poorly worded. I will try to improve it. It 
> doesn't matter how many recipients are in the message you 
> send. If you set max_rcpt to 1 on the smtp transport, the 
> *outgoing* messages will be sent with only one recipient. In 
> other words, it will split up the message for you automatically.

Okay, this makes a lot more sense. I assumed it to be for incoming smtp
messages.

However, I came up with this solution now:

verb_router:
  driver = redirect
  condition = ${if match {${lc:$sender_address [EMAIL PROTECTED]
{\N^(.*)-recipient@(.*) (\d*)-(.*)@(.*)$\N} }
  data = ${if match {${lc:$sender_address [EMAIL PROTECTED]
{\N^(.*)-recipient@(.*) (\d*)-(.*)@(.*)$\N} [EMAIL PROTECTED] }
  errors_to = ${if match {${lc:$sender_address [EMAIL PROTECTED]
{\N^(.*)-recipient@(.*) (\d*)-(.*)@(.*)$\N} [EMAIL PROTECTED] }

AFAIK, this shoud rewrite
  [EMAIL PROTECTED] => [EMAIL PROTECTED]
to
  [EMAIL PROTECTED] => [EMAIL PROTECTED]

Allowing me to send multiple RCPTs with different "number-email" pairs...

Any reason this should not work?
(And any way to prevent using the same regexp 3 times? I tried with data =
[EMAIL PROTECTED] only, but this gave me errors.)

Regards,
  Steffen

Attachment: smime.p7s
Description: S/MIME cryptographic signature

-- 
## 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/

Reply via email to