Results 1 to 25 of 25
  1. #1

    What is sendmail

    How do I test that it's working? How do I get it installed?

  2. #2
    Join Date
    Jun 2003
    Location
    Janesville, Wi
    Posts
    1,516
    sendmail does exactly as it is called: sends mail

    It's installed by default with any Linux server and can be tested with a simple PHP mail () function.

    PHP Code:
    <?php

    $toemail 
    "youremailhere";

    mail($toemail"Test""This is a test");

    ?>
    Jakiao

  3. #3
    Tried. It doesn't work. Now what should I do?

  4. #4
    Join Date
    Sep 2004
    Location
    Flint, Michigan
    Posts
    5,765
    Which operating system are you running? Make sure the mail function isn't disabled in php.ini
    Mike from Zoodia.com
    Professional web design and development services.
    In need of a fresh hosting design? See what premade designs we have in stock!
    Web design tips, tricks, and more at MichaelPruitt.com

  5. #5
    I don't know. How can I know the operating system?

    My php.ini is automatically written by cpanel

    My Php info is available here.

    http://fasterfinancialfreedom.com/phpinfo.php

    Can you check whether send mail is installed or not from
    http://fasterfinancialfreedom.com/phpinfo.php

  6. #6
    Join Date
    Sep 2004
    Location
    Flint, Michigan
    Posts
    5,765
    Well you should know the operating system of your server... if you don't we might be in trouble

    Since you are using cpanel, it's safe to assume that it's some flavor of linux.

    Try this command:
    Code:
    cat /proc/sys/kernel/osrelease
    and post the output.
    Also do this:
    Code:
    ls -la /usr/sbin/sendmail
    and post hte output.
    Mike from Zoodia.com
    Professional web design and development services.
    In need of a fresh hosting design? See what premade designs we have in stock!
    Web design tips, tricks, and more at MichaelPruitt.com

  7. #7
    [email protected] [~]# cat /proc/sys/kernel/osrelease
    2.4.25
    [email protected] [~]# ls -la /usr/sbin/sendmail
    -rwxr-sr-x 1 root mailtrap 10448 Jul 28 05:07 /usr/sbin/sendmail*
    [email protected] [~]#

  8. #8
    In what area php.ini is located?

    ls -R *

  9. #9
    Try /usr/local/lib/php.ini . And you can use "locate php.ini (or the file name)" to find a file.For example "locate httpd.conf"
    BiLHost Hosting Solutions / Turkey
    www.bilhost.com - [email protected]
    MSN: [email protected]

  10. #10
    [email protected] [~]# locate php.ini
    /var/cpanel/version/php.ini-2
    /usr/lib/php.ini
    /usr/local/lib/php.ini
    /usr/local/lib/php.ini.new
    /usr/local/lib/backup/php.ini
    /usr/local/cpanel/3rdparty/etc/php.ini
    /usr/local/cpanel/3rdparty/lib/php.ini
    /home/cpins/installd/buildapache/php-4.3.10/pear/tests/php.ini
    /home/cpins/installd/buildapache/php-4.3.10/php.ini-recommended
    /home/cpins/installd/buildapache/php-4.3.10/php.ini-dist
    /home/dealsref/php.ini
    /home/dealsref/cpapachebuild1/buildapache/php-4.3.11/pear/tests/php.ini
    /home/dealsref/cpapachebuild1/buildapache/php-4.3.11/php.ini-recommended
    /home/dealsref/cpapachebuild1/buildapache/php-4.3.11/php.ini-dist
    /home/dealsref/cpapachebuild/buildapache/php-4.3.11/pear/tests/php.ini
    /home/dealsref/cpapachebuild/buildapache/php-4.3.11/php.ini-recommended
    /home/dealsref/cpapachebuild/buildapache/php-4.3.11/php.ini-dist
    /home/cpapachebuild/buildapache/php-4.4.0/pear/tests/php.ini
    /home/cpapachebuild/buildapache/php-4.4.0/php.ini-recommended
    /home/cpapachebuild/buildapache/php-4.4.0/php.ini-dist
    /etc/php.ini
    /scripts/php.ini
    [email protected] [~]#

    Which one is the "correct" php.ini

    /usr/lib/php.ini

    or

    /usr/local/lib/php.ini

  11. #11

  12. #12
    Hello?

    Anyone there?

  13. #13
    Join Date
    Dec 2003
    Location
    Sunny So. Calif.
    Posts
    204
    Yes, uncomment the SMTP line. If you wish to modify the sendmail_from line to a valid email account, then you can uncomment that one as well.

    Other advice: learn more about your server, read up on basic unix/linux stuff.

    My own opinion: if you can't even answer a simple question such as 'What OS and version are you running?", then you should not be hosting, or at least not involved in trying to resolve problems on a server.

  14. #14

  15. #15
    Join Date
    Dec 2003
    Location
    Sunny So. Calif.
    Posts
    204
    Seriously?

    In the php.ini file

  16. #16
    Join Date
    Sep 2005
    Location
    Stafford UK
    Posts
    142
    please guys stop this thread now. Do we really want someone who doesn't know what sendmail is and doesn't know what operating system they have - to be running an SMTP server? I for one am sick of all the spam I get from open relays and exploited servers.
    jamesyeeoc (you hit the nail on the head)...

    Hardjoko - you need to ask your system administrator these questions. If you don't have a system administrator - I'd would suggest that's your first step - you need to hire one!

  17. #17

  18. #18

  19. #19
    Oh thanks.

    Now, is there a way I can uncomment that file through cpanel rather than manually?

    If I change it manually, will my change be overridden when I run apache update?

  20. #20

  21. #21
    Yes seriously I am that dumb. Why should I be smart if I am around smart people?

    Ask me any questions about internet marketing, math, or genepoolsurvival http://discussionbucks.com and I'll be glad to answer it in return

  22. #22
    Join Date
    Sep 2005
    Location
    Stafford UK
    Posts
    142
    Quote Originally Posted by hardjoko
    Yes seriously I am that dumb. Why should I be smart if I am around smart people?
    You should be smart enough to run your own server - mainly because.... you are trying to run your own server. The questions you've been asking are very very basic, unfortunatly if you don't know what you are doing your server will end up getting compromised and will be used to relay spam, relay viruses, start ssh attacks, ddos attacks etc. It will then affect other internet users too.

  23. #23
    I guess you're right.

  24. #24
    Join Date
    Dec 2003
    Location
    Sunny So. Calif.
    Posts
    204
    What an eclectic mixture of topics on a single site.....

  25. #25
    I'd go with a telnet port 25 and a netstat (man netstat) to see if it is listening and a ps -aux to see if it is running

Posting Permissions

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