View Single Post
Old 18th March 2013, 07:19
Parsec Parsec is offline
Join Date: Jan 2013
Posts: 66
Thanks: 1
Thanked 9 Times in 8 Posts

You most probably could setup a system whereby the email is forwarded but not kept locally while still retaining the ability for them to use the outgoing smtp.. but it's definitely much simpler just to automatically remove old mail they don't pickup. Just use "find" in a simple script and run it daily with a cron. Script eg:


find /var/vmail/* -mtime +2 -exec rm -f () \;
find /var/vmail/* -mtime +2 -exec rm -f () \;

...etc etc

Run it via cron once a day and it will delete anything over 2 days old in that directory. I would leave a day or two's mail in case one day they phone up and say "You wouldn't have a copy of my mail from yesterday would you, I accidentally deleted it in my gmail". (You become a God to them when you answer yes to such questions).
Reply With Quote