Re: [exim] Setting ACL variable to a random string

Top Page
Delete this message
Reply to this message
Author: Florian Weimer
Date:  
To: Mike Cardwell
CC: exim-users
Subject: Re: [exim] Setting ACL variable to a random string
* Mike Cardwell:

>> Is there a better way to achieve this than using something like
>> ${readfile{/proc/sys/kernel/random/uuid}{\n}}?
>
> You could concatenate the timestamp with the process id and the number
> of rcpt commands received. Eg:


Thanks, good idea. It's not guaranteed to be unique, but it's good
enough for my purpose.

> $tod_epoch.$pid.${eval:$rcpt_count+$rcpt_defer_count+$rcpt_fail_count}


Except that I'd like a per-message identifier. Incrementing a counter
in the HELO/MAIL FROM ACLs should do the trick, though.

-- 
Florian Weimer                <fweimer@???>
BFK edv-consulting GmbH       http://www.bfk.de/
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99