I have installed sendmail as MTagent on my server. Sendmail works well so, PHP mail() function works perfectly.
After, I decided to exploit my mx records so I installed dovecot as pop3/imap server into my machine following this instructions:
Well everything seems to be fine except the following step - I can't configure sendmail and tell it where the mail_location folder is. I don't used mbox, so I follow the instructions for MAILDir (in the link above)
Now, when I am trying to connect to my server (from Windows live Mail), I connect, I can send emails, but I can't receive emails
If you think it's necessery I can post dovecot.conf and sendmail.mc files
According to this link, changing
mail_location = maildir:~/Maildir to
mail_location = mbox:~/mail:INBOX=/var/mail/%u solve the problem..