1

I am forwarding emails, via '.forward', through procmail to a PHP script for one of my system users. Once processed the mail message is no longer needed. How can I configure sendmail to delete email messages after they are forwarded?

1
  • 1
    Please provide example contents for a .forward file you are using. If you are using only a .procmailrc file, indicate that.
    – 84104
    Mar 8, 2012 at 23:07

1 Answer 1

0

You are using the pipe feature of forward right ? Then there wouldn't be a copy of the email message in the inbox. I'm guessing that's what you mean by "delete email messages after they are delivered".

If it's not working check for smrsh. srshm defines programs you may pipe mail through for security reasons. Find sm.bin, and place symlinks for programs you want to use for piping.

Else, run a cron job to zero out the inbox once a day or however often works for you.

2
  • Thank you Yes I am using .procmailrc to forward to an executable PHP script. The /var/mail spool file for the user is still getting the forwarded email appended to it. Mar 9, 2012 at 18:55
  • Can you post the content of .procmailrc ?
    – kls
    Mar 12, 2012 at 18:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .