[Mimedefang] Storing "per SMTP session" data (?)
David F. Skoll
dfs at roaringpenguin.com
Fri Mar 6 11:44:06 EST 2009
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.
Regards,
David.
More information about the MIMEDefang
mailing list