How do I configure hMailServer for relaying mail sent to local SMTP onward to GMail?
-
I have just installed hMailServer to enable me to test my PHP code wants to send mail using smtp on localhost port 25, but some parts of the setup procedure and instructions1 are not clear. Guides say, "Add a domain localhost.localdomain". This seems to be horribly over simplified. What domain do I add? I at least need some DNS here, even if it's just host file based. I want to relay outgoing mail to my Google Apps account at smtp.gmail.com. I have set up my account settings in the hMailServer SMTP Relayer settings, but may I assume that all mail without an account on my local test domain will be relayed? When I use the Swift mailer in PHP code to send to localhost, I get no errors in my client code, and I see no mail in the outgoing queue, and nothing in the hMailServer log, yet I receive no mail on my google account. The google account works fine if I set Swift Mailer to send straight to smtp.gmail.com, so what else could be wrong here?