Quite possibly Gmail is rejecting that mail because it doesn't come from a host which matches the from-address on the e-mail message. But that's just speculation. It would be better to look at the logs of your mail server and see exactly what happened when it tried to send that message.
Joined: Nov 29, 2009
I've also sent to yahoo.com, nothing arrives there. It's possible it's my ISP's blocking of port 25, but I'll see that in a few days. I made a request for unblocking.
In the meantime should I know anything else about mail server? Something I didn't configure?
EDIT: Ok, this is what happened:
when sending to yahoo:
05/08/12 02:05:27 INFO James.Mailet: RemoteDelivery: Could not connect to SMTP host: 188.8.131.52, port: 25
when sending to gmail:
05/08/12 01:59:51 INFO James.Mailet: RemoteDelivery: Could not connect to SMTP host: 184.108.40.206, port: 25
Well, if you're going to be running a responsible mail server, it should be configured correctly. So if you're using it to send e-mail messages from addresses in domain X, then your DNS should be set up so that anybody who wants to send e-mails to addresses in domain X can find your server.
Generally servers who see messages which claim to be from (say) GMail addresses will check to ensure that they are coming from GMail servers. If they aren't, then they may be considered to be forgeries.
I've set my email server in my domain's MX record and configured the email server name as such. Thanks for pointing that out
The problem most probably was that public mail servers block "anonymous" emailing as spam, not even bothering to send it to spam or junk folders (sometimes it did, then it didn't catch my mails at all). After making my email server "legit", the mails arrive in yahoo and gmail safely.
Also... keep in mind that most public or commercial email servers out there have a send email per hour limit, which is why it isn't a good idea to use gmail as your email sending device. Roll your own server for unconstrained mail services
Joined: Nov 29, 2009
Now I've run into another problem: