[Mimedefang] Storing "per SMTP session" data (?)
Andrzej Adam Filip
anfi at onet.eu
Sat Mar 7 03:59:46 EST 2009
"David F. Skoll" <dfs at roaringpenguin.com> wrote:
> Andrzej Adam Filip wrote:
>
>> What is the recommended way of storing "per SMTP session" data in
>> MIMEdefang filtering script?
>
>> e.g. to make one "RCPT TO:" check pass data to next "RCPT TO:" check
>> a) in the same transaction (per message)
>> b) in the same SMTP session (per SMTP session)
>
> The only way to store this is in the file system (well, or some other external
> mechanism like memcached or somesuch.)
>
> A convenient place is to dump the data in the current directory,
> because each message has its own (persistent) directory, typically on
> a ramdisk.
>
> All of the files created by MIMEDefang start with an upper-case letter,
> so if you name your persistence file starting with a lower-case letter,
> you won't clash with any MIMEDefang files.
>
> See MAINTAINING STATE in the mimedefang-filter(5) man page.
1) Which directory would you suggest for keeping "per connecting ip"
information in filter_relay and later?
[ preferably on the same partition as "per message" directories ]
2) Do you think MIMEDefang should create such directory and keep its
path in "$CWD" like variable?
--
[pl>en: Andrew] Andrzej Adam Filip : anfi at onet.eu
The public demands certainties; it must be told definitely and a bit
raucously that this is true and that is false. But there are no certainties.
-- H. L. Mencken, "Prejudice"
More information about the MIMEDefang
mailing list