This is a very basic question but I got to get this solved in order to go further. I have configured my MX reccords with Google Apps dns, so all my domain's incoming email go to Apps. I have also Postfix installed on my Linux server and I am able to send email from PHP pages using PHPMailler class. I don't understand. Isn't email beeing processed by Google as a email hosting? I haven't made all configurations described in: mailserver for google apps email
Thank you.
This is normal behaviour. Mail traditionally worked like this:
So, as you see, it's perfectly normal that your server can send mail directly. However, doing this is not a very good idea today. Because of the massive amounts of spam etc. this once open system got restricted quite a bit.
Depending on how your domain is configured, many receiving mail servers might decide that your server is not allowed to send mails for your domain and disregard it. To prevent this you have to do one of the following:
You can send email from any server with an MTA, no matter what server is receiving mail for you. Think of it like being able to call people from any phone, even if people calling you will only reach the number you gave them.
What's the unexpected behavior you're seeing? Or maybe more useful, what behavior do you expect that you're not seeing?