[Exim] Shadow Transport glitch

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Odhiambo G. Washington
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: [Exim] Shadow Transport glitch
Hello,

I have two problems with shadow transport.

The major one is that I don't seem to be able to understand the spec.txt
on this one. I looked and thought the substr explanations are meant for
some code gurus;)

I have set a shadow transport to my main local delivery transport. However,
I want to tie two condtions to it:

1. run the transport only if $local_part is listed in /some/file
2. since it's for archiving mail, I'd like the folder to which these
mails are store to be named /some/path/YEAR-MONTH/ - it's one of those
substr thingies which I don't seem understand so far...

I have the following added to local_delivery transport

shadow_transport = backup_delivery
shadow_condition = ${lookup{$local_part}lsearch{/usr/local/etc/exim/mail_backup_users}{1}{0}}


Problem 1: when the condition is set, the shadow transport fails to run.
Problem 2: the "file = " is not what I want. I'd like a substr value that
           expands to "2002-11"


backup_delivery:
driver = appendfile
delivery_date_add
envelope_to_add
file = /home2/Mail-backup/${substr_0_10:$tod_log}/${local_part}
group = mail
mode = 0600
return_path_add
user = exim
# mode = 0660



Thank you.


-Wash

--
Odhiambo Washington   <wash@???>  "The box said 'Requires
Wananchi Online Ltd.  www.wananchi.com      Windows 95, NT, or better,'
Tel: +254 2 313985-9  +254 2 313922         so I installed FreeBSD."
GSM: +254 72 743223   +254 733 744121       This sig is McQ!  :-)



Think twice before speaking, but don't say "think think click click".