Unable to receive emails

view story

http://www.linuxquestions.org – This is the first time i am trying mail server to receive emails. I have added an entry for MX records in zonefile. I have installed postfix and sendmail. I don't know whether i need them both. I tried to send a mail from server using php with mail() function which sends mail. But it sends the mail to spam folder. I just wanted to receive the mail from gmail to server. But I am not receiving anything in /var/mail/username Gmail is not giving any failure delivery report too. How do i track this problem and fix it? Last few maillog report Code: Oct  8 02:05:09 server sendmail[15 (HowTos)