Results 1 to 25 of 25
Thread: What is sendmail
-
10-29-2005, 07:41 AM #1Web Hosting Master
- Join Date
- Feb 2005
- Posts
- 1,079
-
10-29-2005, 07:56 AM #2Web Hosting Master
- Join Date
- Jun 2003
- Location
- Janesville, Wi
- Posts
- 1,520
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
-
10-31-2005, 05:14 AM #3Web Hosting Master
- Join Date
- Feb 2005
- Posts
- 1,079
Tried. It doesn't work. Now what should I do?
-
10-31-2005, 05:17 AM #4Retired Moderator
- Join Date
- Sep 2004
- Location
- Flint, Michigan
- Posts
- 5,766
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
-
10-31-2005, 06:21 AM #5Web Hosting Master
- Join Date
- Feb 2005
- Posts
- 1,079
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
-
10-31-2005, 06:27 AM #6Retired Moderator
- Join Date
- Sep 2004
- Location
- Flint, Michigan
- Posts
- 5,766
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
Also do this:Code:ls -la /usr/sbin/sendmail
█ 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
-
10-31-2005, 07:02 AM #7Web Hosting Master
- Join Date
- Feb 2005
- Posts
- 1,079
root@deals [~]# cat /proc/sys/kernel/osrelease
2.4.25
root@deals [~]# ls -la /usr/sbin/sendmail
-rwxr-sr-x 1 root mailtrap 10448 Jul 28 05:07 /usr/sbin/sendmail*
root@deals [~]#
-
10-31-2005, 07:05 AM #8Web Hosting Master
- Join Date
- Feb 2005
- Posts
- 1,079
In what area php.ini is located?
ls -R *
-
10-31-2005, 10:21 AM #9Newbie
- Join Date
- Oct 2005
- Posts
- 11
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"
-
11-01-2005, 02:36 AM #10Web Hosting Master
- Join Date
- Feb 2005
- Posts
- 1,079
root@deals [~]# 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
root@deals [~]#
Which one is the "correct" php.ini
/usr/lib/php.ini
or
/usr/local/lib/php.ini
-
11-01-2005, 02:39 AM #11Web Hosting Master
- Join Date
- Feb 2005
- Posts
- 1,079
[mail function]
;SMTP = localhost ;
;sendmail_from = me@localhost.com ;
sendmail_path = /usr/sbin/sendmail -t -i ;
Should I uncomment smtp and send_mail from?
-
11-14-2005, 12:38 AM #12Web Hosting Master
- Join Date
- Feb 2005
- Posts
- 1,079
Hello?
Anyone there?
-
11-14-2005, 02:12 AM #13Junior Guru
- Join Date
- Dec 2003
- Location
- Sunny So. Calif.
- Posts
- 213
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.
-
11-15-2005, 06:37 AM #14Web Hosting Master
- Join Date
- Feb 2005
- Posts
- 1,079
Oh no, I forget
where can I find this file?
[mail function]
[mail function]
;SMTP = localhost ;
;sendmail_from = me@localhost.com ;
sendmail_path = /usr/sbin/sendmail -t -i ;
-
11-15-2005, 06:46 AM #15Junior Guru
- Join Date
- Dec 2003
- Location
- Sunny So. Calif.
- Posts
- 213
Seriously?
In the php.ini file
-
11-15-2005, 06:50 AM #16WHT Addict
- 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!
-
11-15-2005, 07:11 AM #17Web Hosting Master
- Join Date
- Feb 2005
- Posts
- 1,079
Oh no, I forget
where can I find this file?
[mail function]
[mail function]
;SMTP = localhost ;
;sendmail_from = me@localhost.com ;
sendmail_path = /usr/sbin/sendmail -t -i ;
-
11-15-2005, 07:46 AM #18Web Hosting Master
- Join Date
- Feb 2005
- Posts
- 1,079
Oh no, I forget
where can I find this file?
[mail function]
;SMTP = localhost ;
;sendmail_from = me@localhost.com ;
sendmail_path = /usr/sbin/sendmail -t -i ;
-
11-15-2005, 07:51 AM #19Web Hosting Master
- Join Date
- Feb 2005
- Posts
- 1,079
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?
-
11-15-2005, 07:54 AM #20Web Hosting Master
- Join Date
- Feb 2005
- Posts
- 1,079
I want to uncomment this line
;SMTP = localhost ;
;sendmail_from = me@localhost.com ;
-
11-15-2005, 07:57 AM #21Web Hosting Master
- Join Date
- Feb 2005
- Posts
- 1,079
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
-
11-15-2005, 08:10 AM #22WHT Addict
- Join Date
- Sep 2005
- Location
- Stafford UK
- Posts
- 142
Originally Posted by hardjoko
-
11-22-2005, 04:24 AM #23Web Hosting Master
- Join Date
- Feb 2005
- Posts
- 1,079
I guess you're right.
-
11-22-2005, 04:55 AM #24Junior Guru
- Join Date
- Dec 2003
- Location
- Sunny So. Calif.
- Posts
- 213
What an eclectic mixture of topics on a single site.....
-
11-22-2005, 07:47 PM #25Newbie
- Join Date
- Mar 2004
- Posts
- 8
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