Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Hosting and Servers
  4. How do I configure hMailServer for relaying mail sent to local SMTP onward to GMail?

How do I configure hMailServer for relaying mail sent to local SMTP onward to GMail?

Scheduled Pinned Locked Moved Hosting and Servers
questionphpswiftcomdata-structures
1 Posts 1 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Brady Kelly
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups