Re: [exim] Exim Consolidating users

Top Page
Delete this message
Reply to this message
Author: Jonathan Gilpin
Date:  
To: exim-users@exim.org
Subject: Re: [exim] Exim Consolidating users
On 24 Feb 2010, at 18:51, Phil Pennock wrote:

> On 2010-02-24 at 18:16 +0000, Jonathan Gilpin wrote:
>> I'm not using smtp... I have a catchall alias of *@domain going to a maildir. I then end up with a message with two addresses in the Envelope-To: E.G
>
> So can you *please* provide the relevant configuration (Router and
> Transport) so that we have something to look at and work from to
> diagnose the problem, instead of working blind?


For the routers I have:

MYSQL_Q_LOCAL=SELECT domain FROM MYSQL_EMAILTABLE WHERE domain='${quote_mysql:$domain}' AND (local_part='${quote_mysql:$local_part}' or local_part='*') AND mail != ''


virtual_local_spam:
driver = accept
condition = "${if eq{$h_X-Spam-Flag:}{YES} {1}{0}}"
domains = ${lookup mysql {MYSQL_Q_LOCAL}{$value}}
headers_add = "X-Envelope-To: ${lc:${original_local_part}@${original_domain}}"
transport = virtual_local_spam_delivery

virtual_local_mailbox:
driver = accept
domains = ${lookup mysql {MYSQL_Q_LOCAL}{$value}}
headers_add = "X-Envelope-To: ${lc:${original_local_part}@${original_domain}}"
transport = virtual_local_md_delivery

virtual_local_md_delivery:
driver = appendfile
directory = ${lookup mysql {MYSQL_Q_BOXNAME}{$value}}
maildir_format
user = mailnull
group = mail
mode = 0660
directory_mode = 0770
envelope_to_add
return_path_add

virtual_local_spam_delivery:
driver = appendfile
directory = ${lookup mysql {MYSQL_Q_BOXNAME}{$value}}/.Spam
maildir_format
user = mailnull
group = mail
mode = 0660
directory_mode = 0770
envelope_to_add
return_path_add

A mail to: gg@??? and ga@??? both if which do not exist are caught by the catchall, one email is delivered as shows in the logs:

2010-02-24 18:15:02 1NkLlE-000AJ2-Pu SA: Action: scanned but message isn't spam: score=2.9 required=4.0 (scanned in 2/2 secs | Message-Id: E1NkLlE-000AJ2-Pu@???). From <root@???> (local) for gg@???, ga@???
2010-02-24 18:15:02 1NkLlE-000AJ2-Pu => postmaster <gg@???> R=virtual_local_mailbox T=virtual_local_md_delivery

That email has two addresses on the X-Envelope-To: fields.

If I create a mailbox for gg@??? and then send the message again, one message goes to the gg@??? mailbox and the other to the catchall@ domain.com, I cannot create a mailbox for every single address as in some instances we cannot be made aware of what mailboxes exist on the final destination server.

So I would like to have a seperate message delivered for each RCPT To which would create the same effect..

Jonathan






>
>> I looked at the batch_max function but that seems to be for SMTP only?
>
> No, it's not. max_rcpt is SMTP-only.
>
> -Phil