Re: [exim] Archiving Problems

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Dean Bishop
Ημερομηνία:  
Προς: Chris Wilson
Υ/ο: exim-users
Αντικείμενο: Re: [exim] Archiving Problems
I just realized that I forgot to answer your question "Why two
routers?".

Only because I have two transports so that I can keep the incoming and
outgoing messages separated...a la:

Is this sane?
Thanks,
dean

TRANSPORTS
# Dean's Archiver Transport
incoming_local_copy:
driver = appendfile
delivery_date_add
envelope_to_add
directory = "${extract{5}{:}{${lookup
passwd{${lookup{$domain}lsearch*{/etc/userdomains}{$value}}}{$value}}}}/
mail/${domain}/${local_part}/.Archive.Incoming"
maildir_use_size_file
maildir_quota_directory_regex = ^(?:cur|new|\.(?!Trash$)[^\@]+)$
maildir_format
maildir_tag = ,S=$message_size
quota_size_regex = ,S=(\d+)
mode = 0660
quota = "${if exists{${extract{5}{:}{${lookup
passwd{${lookup{$domain}lsearch*{/etc/userdomains}{$value}}}{$value}}}}/
etc/${domain}/quota}
{${lookup{$local_part}lsearch*{${extract{5}{:}{${lookup
passwd{${lookup{$domain}lsearch*{/etc/userdomains}{$value}}}{$value}}}}/
etc/${domain}/quota}{$value}}} {}}"
quota_is_inclusive = false
quota_directory = "${extract{5}{:}{${lookup
passwd{${lookup{$domain}lsearch*{/etc/userdomains}{$value}}}{$value}}}}/
mail/${domain}/${local_part}"
return_path_add
user = "${lookup{$domain}lsearch* {/etc/userdomains}{$value}}"
group = ${extract{3}{:}{${lookup passwd{${lookup{$domain}lsearch*
{/etc/userdomains}{$value}}}{$value}}}}


outgoing_local_copy:
driver = appendfile
delivery_date_add
envelope_to_add
directory = "${extract{5}{:}{${lookup
passwd{${lookup{$sender_address_domain}lsearch*{/etc/userdomains}{$value
}}}{$value}}}}/mail/${sender_address_domain}/${sender_address_local_part
}/.Archive.Outgoing"
maildir_use_size_file
maildir_quota_directory_regex = ^(?:cur|new|\.(?!Trash$)[^\@]+)$
maildir_format
maildir_tag = ,S=$message_size
quota_size_regex = ,S=(\d+)
mode = 0660
quota = "${if exists{${extract{5}{:}{${lookup
passwd{${lookup{$sender_address_domain}lsearch*{/etc/userdomains}{$value
}}}{$value}}}}/etc/${sender_address_domain}/quota}
{${lookup{$sender_address_local_part}lsearch*{${extract{5}{:}{${lookup
passwd{${lookup{$sender_address_domain}lsearch*{/etc/userdomains}{$value
}}}{$value}}}}/etc/${sender_address_domain}/quota}{$value}}} {}}"
quota_is_inclusive = false
quota_directory = "${extract{5}{:}{${lookup
passwd{${lookup{$sender_address_domain}lsearch*{/etc/userdomains}{$value
}}}{$value}}}}/mail/${sender_address_domain}/${sender_address_local_part
}"
return_path_add
user = "${extract{2}{:}{${lookup
passwd{${lookup{$sender_address_domain}lsearch*{/etc/userdomains}{$value
}}}{$value}}}}"
group = "${extract{2}{:}{${lookup
passwd{${lookup{$sender_address_domain}lsearch*{/etc/userdomains}{$value
}}}{$value}}}}"


-----Original Message-----
From: Chris Wilson [mailto:chris@qwirx.com]
Sent: Saturday, December 03, 2011 4:20 PM
To: Dean Bishop
Cc: Chris Wilson; exim-users@???
Subject: RE: [exim] Archiving Problems

Hi Dean,

On Sat, 3 Dec 2011, Dean Bishop wrote:

> I'm not sure if you've misunderstood but then maybe I'm
> misunderstanding your message :).
>
> The only two routers involved in the archiving are the incoming router


> and the outgoing router.


Yes, I'm not sure why you need to separate them?

> The way I understand it, and this is based on what I consider my
> pretty slim knowledge of exim, is that when a message is being sent to


> the local alias from the local account the message is first archived
> as it passes through as it's being sent from sender's local account
> and then the outgoing message is archived again as it sent from the
> local alias to the recipient's local account.
>
> It's this last piece that I cannot figure out how to avoid. How do I
> make the router ignore messages that are being passed through during
> the re-direction from alias to account?


In that case I think that the solution I proposed should apply to your
case.

Cheers, Chris.
-- 
_____ __     _
\  __/ / ,__(_)_  | Chris Wilson <chris+sig@???> Cambs UK | / (_/
,\/ _/ /_ \ | Security/C/C++/Java/Ruby/Perl/SQL Developer |
\__/_/_/_//_/___/ | We are GNU : free your mind & your software |