Techies: How do you send email through locahost?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Marcus
    Confirmed User
    • Jul 2001
    • 3472

    #1

    Techies: How do you send email through locahost?

    On my site when a member messages someone else my website sends a confirmation email saying "You have a message on ______.com".
    The email gets sent out through my host i.e. mail.myhost.com

    My host wants me to stop running the emails through them and instead through localhost.

    Im very retarded when it comes to emails. How do I send emails out through localhost?

    I have to fix this or they're going to throw me off
    Last edited by Marcus; 08-11-2011, 02:12 PM.
  • CYF
    Coupon Guru
    • Mar 2009
    • 10973

    #2
    what MTA are you running? postfix? sendmail?
    Webmaster Coupons Coupons and discounts for hosting, domains, SSL Certs, and more!
    AmeriNOC Coupons | Certified Hosting Coupons | Hosting Coupons | Domain Name Coupons

    Comment

    • 2MuchMark
      Mark of 2Much.net
      • Aug 2004
      • 50977

      #3
      http://www.authsmtp.com

      Comment

      • fris
        Too lazy to set a custom title
        • Aug 2002
        • 55679

        #4
        you can run sendmail with local only, being it doesnt actually use port 25, but it lets you send mail. just no outside access can use it for smtp (spamming mostly).

        what os, linux, freebsd, etc?
        Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

        Comment

        • BestXXXPorn
          Confirmed User
          • Jun 2009
          • 2277

          #5
          Definitely depends on the OS. Also there's a bit more to it than just a one liner response; particularly if you want ensure your mail is actually delivered.

          1) You need to setup your mail.hostname.com DNS record to point to your box. I HIGHLY recommend using a separate IP address for this.

          2) You should setup a reverse DNS record as well to avoid a lot of spam traps. AKA a PTR record. This is another reason you should use a completely separate IP address.

          3) Configure your sendmail, qmail, postfix (your choice) server to recognize your domain that you will be sending mail from.

          4) If you really want to ensure your mail gets delivered (and this goes for a lot of sponsors out there because I see a ton of mail going straight to spam) you should setup three very important email authentication services; Sender Policy Framework (SPF), Sender ID, and DomainKeys Identified Mail (DKIM). These service tell the big players' (and people with good mail servers) servers that you are legit and will make sure your mail actually lands in someone's inbox rather than their spam folder.
          Last edited by BestXXXPorn; 08-11-2011, 07:03 PM.
          ICQ: 258-202-811 | Email: eric{at}bestxxxporn.com

          Comment

          • Serge Litehead
            Confirmed User
            • Dec 2002
            • 5190

            #6
            if you run your site through php, smtp server can be defined in php.ini and then when you do mail() in php it uses whatever your have defined in php.ini

            Comment

            Working...