could someone please help me with automation of emails in group folder?

1. how do i automatically create a case from an incoming mail?
2. how do i auto-reply to an incoming mail (i configured it in the mail settings and chose a template, but still not working)

much thanks