I'm tring to handle errors from bounced email. This is my scenario:
- Send emails out with Pear Mail() +Mail_Mime();
- Set 'Return-Path'and 'Return-Recipient-To' to get errors in "[email protected]";
Now using a class mentioned here (http://stackoverflow.com/questions/1097382/how-to-handle-mail-delivery-errors-with-php) I want to read the mail folder containing the delivery error messages.
The path is like "/home/domain-name/mail/domain-name.com/bounce/new/" but when i run the class i get the error "failed to open dir: Permission denied..."
Dir /mail/ is 770 chmod, /domain-name/ is 750 chmod, /bounce/ is 750 chmod, /new/ is 700 chmod. Think i should change permission, but dont know how and if this could make less secure the mail folder.