Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: mail from webserver question

  1. #1
    Join Date
    Jan 2008
    Beans
    36

    mail from webserver question

    Hello all,

    Before I was using xampp.
    Now I set up a lamp ssh ubuntu server.

    I would like to send mail from some web pages.
    I don't need mail read or advanced mail stuff.

    In xampp I could change php.ini smpt and everthing worked fine.
    Xammp used then my ISP smtp server.
    How can I simulate this with ubuntu.

    greetings,

  2. #2
    Join Date
    Apr 2008
    Location
    Ede, Netherlands
    Beans
    36
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: mail from webserver question

    The same way, just change the /etc/php.ini

  3. #3
    Join Date
    Jan 2008
    Beans
    36

    Re: mail from webserver question

    Don't I have to install sendmail or something like postfix?
    I thought the smtp setting in php.ini was windows only.

    greetings,

  4. #4
    Join Date
    Jun 2006
    Location
    Switzerland
    Beans
    Hidden!
    Distro
    Kubuntu Jaunty Jackalope (testing)

    Re: mail from webserver question

    yes, you need a MTA... sendmail or postfix could be working. Not sure if you can set in the php.ini to actually relay email to another server.

  5. #5
    Join Date
    Apr 2008
    Location
    Ede, Netherlands
    Beans
    36
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: mail from webserver question

    I thought this was possiblem but I am not 100% sure..

  6. #6
    Join Date
    Jun 2006
    Location
    Switzerland
    Beans
    Hidden!
    Distro
    Kubuntu Jaunty Jackalope (testing)

    Re: mail from webserver question

    I think it is - but I never was in such a situation where I needed to do it

  7. #7
    Join Date
    May 2007
    Location
    Phoenix, Arizona USA
    Beans
    2,909
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: mail from webserver question

    Quote Originally Posted by johan.alfa View Post
    Don't I have to install sendmail or something like postfix?
    I thought the smtp setting in php.ini was windows only.

    greetings,
    Actually this should work by default since sendmail is installed, but as hyper_ch mentioned Postfix would be much better. You can use the php mail() function.

    -Tim
    www.pcchopshop.net

    Hard to find and obsolete PC and server parts. "If we can't find it, it probably doesn't exist"

  8. #8
    Join Date
    Jan 2008
    Beans
    36

    Re: mail from webserver question

    Is sendmail installed?
    I only checked lamp and ssh during server install.

    When typing sendmail on the command line I get a mention of packages which will install sendmail.

    I do not want install software I do not need.

    greetings,

  9. #9
    Join Date
    May 2007
    Location
    Phoenix, Arizona USA
    Beans
    2,909
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: mail from webserver question

    Sendmail <should> be installed by defualt on most distros. I would be surprised if it isn't, however if not, don't install it, but install postfix instead, it's much easier to configure and more secure than sendmail.

    -Tim
    www.pcchopshop.net

    Hard to find and obsolete PC and server parts. "If we can't find it, it probably doesn't exist"

  10. #10
    Join Date
    Jan 2008
    Beans
    36

    Re: mail from webserver question

    Am I wrong thinking postfix will open a new port on the server?
    I would like to send mails.
    I do not neet te receive anything.
    Is it possible to send mails some way without opening new ports?

    Thanks,

Page 1 of 3 123 LastLast

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
  •