I need to install Postfix or Exim to be able to send emails from my web server's php code. I have a few questions hopefully I can find answers to:
Could mail be rejected or sent to spam on receiveing server if hostname of my machine is myhost.mydomain.com but I'm setting sender's email to firstname.lastname@example.org? What should I do? Should I just set my hostname to mydomain.com? Will this conflict with google apps in some way?
What will happen to bounced mail on a setup where I have not really configured incoming email and incoming email is handled by Google apps? Could this cause delivery problems?
Note: My google apps is setup to accept mail for email@example.com, but my hostname of sender machine is myhost.mydomain.com. I will be sending emails from my server as firstname.lastname@example.org. If sent email bounces, will it go to Google or my server?
- Is it absolutely necessary to have SPF and DKIM configured with my ourgoing mail or not to ensure delivery?
I need a bit of info on how all this works and how it should be set up properly and I appreciate your help. Thank you in advance.