Re: [exim] Archiving Problems

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Dean Bishop
日付:  
To: Chris Wilson
CC: exim-users
題目: Re: [exim] Archiving Problems
Hey Chris,

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.

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?

Thanks,
dean



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

Hi Dean,

On Sat, 3 Dec 2011, Dean Bishop wrote:

>     At the end of the day, thanks to the list, I have what I

consider to
> be a workable solution. I've resolved the NDR and exim log error
> message issue. The one outstanding issue is the duplication of
> outgoing archived messages when a message is sent from a local account


> to a local alias.


Why so complicated? Why two routers?

The problem seems to be that when a message is directed to an alias,
each expansion of the alias is passed down the entire router stack
again, resulting in duplicates for each one. (If I misunderstood this,
please ignore the rest of this email).

You can avoid this by setting redirect_router on all your redirect
routers, setting it to the router after incoming_archiver, like this:

begin routers

outgoing_archiver: ...

incoming_archiver: ...

dnslookup:
# or whatever your next router is

aliases:
     driver = redirect
     data =
${lookup{$local_part}wildlsearch{/etc/exim/domains/$domain}}
     # this is the important part:
     # don't archive redirected emails again!
     redirect_router = dnslookup
     ...


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