Ok this is what I've done so far from what I have been reading online (specially @Howtoforge.com). The problem with emails sent to me from outside the domain like Gmail, and having the error in my mail log "NOQUEUE: reject: Relay access denied", I think (not sure) has been solved -- but not really. What I did was to add:
mydestination = /etc/postfix/local-host-names
to my main.cf and restarted postfix.
What I had before which was:
mydestination = sample1.domainname.com, localhost.domainname.com, localhost.localdomain, localhost
Ok the emails I sent FROM gmail didn't bounce back anymore and I didn't get the "NOQUEUE: reject: Relay access denied" error anymore! Hallelujah!
But the problem is the webmail (Roundcube) and mail client (Thunderbird) is not receiving anything! I don't know if it's stored or got lost somewhere.
..this is kinda frustrating because I thought I got my problem solved once and for all. I hope you guys can help me solve this "new" issue that came up. And I hope my posts has helped anyone in any way. Thanks!
Heres my new mail.log:
Mar 24 18:57:16 mail postfix/cleanup: 6CE0C3B013C: message-id=<firstname.lastname@example.org>
Mar 24 18:57:16 mail postfix/qmgr: 6CE0C3B013C: from=<email@example.com>, size=2584, nrcpt=1 (queue active)
Mar 24 18:57:16 mail postfix/pickup: D9F483B013F: uid=10066 from=<web1_anarciso>
Mar 24 18:57:16 mail postfix/cleanup: D9F483B013F: message-id=<20100324105716.D9F483B013F@mail.immigration.gov.ph>
Mar 24 18:57:16 mail postfix/qmgr: D9F483B013F: from=<firstname.lastname@example.org>, size=415, nrcpt=1 (queue active)
Mar 24 18:57:16 mail postfix/local: D9F483B013F: to=<email@example.com>, relay=local, delay=0.05, delays=0.03/0/0/0.02, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -f-)
Mar 24 18:57:16 mail postfix/qmgr: D9F483B013F: removed
Mar 24 18:57:44 mail postfix/local: 6CE0C3B013C: to=<firstname.lastname@example.org>, orig_to=<email@example.com>, relay=local, delay=28, delays=0.59/0/0/28, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -f-)
Mar 24 18:57:44 mail postfix/qmgr: 6CE0C3B013C: removed
Mar 24 18:57:47 mail postfix/smtpd: disconnect from mail-px0-f176.google.com[220.127.116.11]