Customer is having real problems sending emails to mainly gmail / gmail relay addresses.
Setup is that the apache server sends email via Sendmail from within an application but "normal" email is hosted using Office 365 - only problems seem to be with email sent from the server and not from Offiec 365.
SPF record has been set up to allow Office 365 to work but does one need to be set to allow the server to send?
When I look at mail logs I see ctladdr=<[email protected]> as the sending address. Current SPF record shows:
It looks like that the script does not have "From" header specified hence it is sending email using [email protected] It is a best practice to specify from address in the script it self. Also, you will need to make sure that you have allowed your webserver's IP address in SPF record otherwise your outgoing emails via script may be flagged as spam.