USAGE:
Send an email to an existing address by adding a plus and a last use date in the format yymmdd
Example: anders+131020@andersson.se
REQUIREMENTS:
Sendmail version 8.8 or later
Milter (sendmail-milter)
If you are going to compile Time Limit Milter, you need:
Development includes for Sendmail (sendmail-devel)
Make sure your server is set to the correct date
This Readme is written for Fedora Core 14 but Time Limit Milter will probably work on any system running Sendmail and Milter.
COMPILE:
gcc -I/usr/local -I/usr/sbin -L/usr/lib/libmilter.a -L/usr/lib/libsm.a -o timelimitmilter timelimitmilter.c -lmilter -lpthread
INSTALLATION:
Add these lines to /etc/mail/sendmail.mc:
dnl Time Limit Milter:
INPUT_MAIL_FILTER(`tlmilter', `S=local:/var/run/timelimitmilter.sock')
Add the Time Limit Milter to the line defining Milters, could be like:
define(`confINPUT_MAIL_FILTERS', `tlmilter,greylist')dnl
Consider the order carefully, you probably want Time Limit Milter to be among the first milters.
Execute make
Copy the file timelimitmilter to /usr/sbin
Copy the file timelimitstart to /usr/sbin
Add these two lines to /etc/inittab:
# Time Limit Milter:
tl:35:respawn:/usr/sbin/timelimitstart
RUN:
/sbin/init q
/etc/init.d/sendmail restart
Or restart the entire machine