> I have a postfix(from source code) + dovecot setup for my university > term-project. I want postfix call my custom function whenever postfix > receive mails, but couln't find the function. > > Can I know the function of handling mail reception?
Have a look at this, there are several ways to do this: http://www.postfix.org/CONTENT_INSPECTION_README.html Moritz