qdated-check [seconds|days]seconds|days, if specified, will be the maximum age of an e-mail address. If the argument given is less than 1,000, it will be interpreted as a number of days. Otherwise, it will be interpreted as a number of seconds. If an address is older than this, qdated-check exits 100, and the mail will bounce. If seconds|days is not specified, it defaults to 604800 (one week).
qmail-check should be run from a .qmail file. For example, if user jblough sends mail using the address jblough-dated-*, he should have a file ~/.qmail-dated-default, the first line of which is:
|qdated-checkMake sure you add a line to this .qmail file specifying delivery to your mailbox!
If ~/.qdated-key doesn't exist or can't be read for any other reason, qdated-check exits 0, thus allowing any address. The user should create ~/.qdated-key with qdated-makekey or should fix the permissions on the file if it exists.
If the address is too old or if the cookie does not correspond to the timestamp, qdated-check exits 100, which causes the mail to bounce.
Note that you can run qdated-check with a maximum age of 0, and a future-dated address created by qdated-now will expire at the time specified in the timestamp. So "qdated-now 3" will create an address extension that expires in 3 days, and "qdated-now 14" will create an address extension that expires in 14 days. You may prefer to create all of your expiring addresses this way, rather than having all dated addresses expire after the same amount of time.