Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Mail Server Help

Hybrid View

  1. #1

    Mail Server Help

    I know I have posted stuff on this subject before and I never really got anywhere with it. Well I need to set up mail so I can use the PHP mail() function to send forms to me. What I want is the easiest way possible, as i dont feel like learning about how mail work. In one of my previous threads it was suggested just to use the sendmail binary to send the mail out to my ISP for delivery. This sounds simply enough and is actaully what i think I need. I dont want it to receive mail from anywhere, just send it to my ISP.

    Now....with that said, how can i do this? I have been reading and searching but I cant figure it out. Help would be most appreciated on this......and please keep it simple since I have no idea on mail servers :P

  2. #2
    Mentor coltrane's Avatar
    Join Date
    May 2001
    Location
    North Carolina
    Posts
    1,390

    Re: Mail Server Help

    Im not 100% I understand this, and maybe I need to take a nap and re-read the question, but it looks like you may want to integrate Java into this if you dont want to use local mail.

  3. #3

    Re: Mail Server Help


    I know I have posted stuff on this subject before and I never really got anywhere with it. Well I need to set up mail so I can use the PHP mail() function to send forms to me. What I want is the easiest way possible, as i dont feel like learning about how mail work. In one of my previous threads it was suggested just to use the sendmail binary to send the mail out to my ISP for delivery. This sounds simply enough and is actaully what i think I need. I dont want it to receive mail from anywhere, just send it to my ISP.

    Now....with that said, how can i do this? I have been reading and searching but I cant figure it out. Help would be most appreciated on this......and please keep it simple since I have no idea on mail servers :P
    While I"m not exactly sure what the phpmail() function does, most cgi scripts and whatnot can just use the binary to send out. Aside from that, I can't help, without a description of what phpmail() does.

  4. #4

    Re: Mail Server Help

    If i understand correctly, the PHP mail() function just uses sendmail to send its mail. I believe just the binary. Hmmmmmmm ???

  5. #5

    Re: Mail Server Help

    Then what you want to do is install postfix. Read The Fine Manual. Configure it.

    Assuming that mail() just uses the "sendmail" binary, this is will work automatically, assuming postfix is correctly configured

    Note: Postfix will still work properly even if port 25 is firewalled off. You only need it open to receive mail with postfix, not to send it.

  6. #6

    Re: Mail Server Help


    assuming postfix is correctly configured
    I believe this is where my problem starts....the whole configuration of these damned things. I keep reading things and they all just go right over my head.

  7. #7

    Re: Mail Server Help

    Whoa, what the hell am I thinking?!

    Get sSMTP! That is exactly what you need. It's a very simple program, in fact it's a drop in replacement for sendmail.

    What you want to do is download and install it (I'm not sure where to get it, but there is a link buried at www.mutt.org somewhere). Once it's installed, you'll have to configure it. Configuration is very simple because all you really have to do is tell it the address of your ISP's mail server, so that it sends off all it's mail to the right place. Once you've done that and tested it, make a symlink '/usr/sbin/sendmail' that points to wherever the ssmtp binary is installed (likely /usr/local/bin/ssmtp if you compiled and installed yourself).

  8. #8

    Re: Mail Server Help

    Here is the link for sSMTP:

    ftp://metalab.unc.edu/pub/Linux/syst...tp-2.48.tar.gz

    Just download and install it. Very small and easy to configure. There's almost nothing to it. Should work exactly as you need in this situation.

  9. #9

    Re: Mail Server Help

    Thanks for the info and link....I will be sure to try that out when i get some time. I'll let ya know how it goes ;D

  10. #10

    Re: Mail Server Help

    /me fails to see how installing postfix, just to wrap sendmail is a valid solution. Why not just use the damned sendmail binary, instead of sending him on a goose chace with sendmail?

    Say I need a distributer cap for my car.. would you recommend me purchase a brand new car, just to use the distro cap? I think not....

Similar Threads

  1. Replies: 1
    Last Post: 01-21-2011, 12:06 AM
  2. mail server
    By ub007 in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 08-21-2008, 02:04 AM
  3. Problems sending mail to users on my mail server
    By Ed McCorduck in forum Linux - Software, Applications & Programming
    Replies: 8
    Last Post: 06-23-2004, 10:18 AM
  4. What to do about a Mail Server?
    By Vagrant in forum Linux - Hardware, Networking & Security
    Replies: 2
    Last Post: 03-15-2003, 03:48 AM
  5. Mail Server
    By Artimus in forum Linux - Software, Applications & Programming
    Replies: 2
    Last Post: 03-08-2003, 12:56 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •