LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-25-2002, 05:27 AM   #1
ShawnD
Member
 
Registered: Jul 2002
Distribution: Mandrake 8.2
Posts: 127

Rep: Reputation: 15
how can i test if sendmail actually works?


is there a command i can use to see if sendmail actually works? ikonboard and phpBB both say it doesn't work because it never sends out emails when set to use sendmail and i temperarily chmoded sendmail to 755 to test it but it didn't work so i chmoded it back.

is there a way to test it? i don't know any commands for it, all i want is to get it to work on my forum and for the flashy personal mailing system i'm creating which uses PHP to mail.
 
Old 08-25-2002, 05:44 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
erm.... send an email to yourself maybe????

mail user@localhost -s sendmailtest
 
Old 08-25-2002, 05:57 AM   #3
RKris
Member
 
Registered: May 2002
Location: UK
Distribution: Mandriva linux
Posts: 152

Rep: Reputation: 15
Hi,
Telnet to port 25 and see if sendmail gives a response.

regards
Krishna
 
Old 08-25-2002, 06:15 AM   #4
ShawnD
Member
 
Registered: Jul 2002
Distribution: Mandrake 8.2
Posts: 127

Original Poster
Rep: Reputation: 15
how the hell do i telnet into port 25? my Linux In A Nutshell book says telnet works as
telnet [options] [host[port]]

i tried a simple telnet localhost and it said connection refused so i can't really get into a specific port there...

i tried mailing myself and it doesn't work
man mail said this:
mail [-s subject] [-c cc-addr] [-b bb-addr] to address
so i tried this:
mail -s "hello self" shawnd@localhost
(then it goes to a blaknes) so i typed in:
hello myself (then pushed ctrl-D)
when it asked for a cc i pushed enter. i waited about a minute then went to the console and typed "mail" and it replied:
no mail for shawnd

i also tried the line you suggested
mail shawnd@localhost -s sendmailtest
as well as these:
mail my email address -s sendmailtest
mail -s sendmailtest my email address

none of them worked, any other ideas?

Last edited by ShawnD; 08-25-2002 at 06:17 AM.
 
Old 08-25-2002, 06:37 AM   #5
RKris
Member
 
Registered: May 2002
Location: UK
Distribution: Mandriva linux
Posts: 152

Rep: Reputation: 15
This indicates a firewall problem.
Do ps | ax and see if sendmail is running.
Do you get any errors while starting sendmail?

Open the firewall up for port 25 on your machine first

regards
Krishna
 
Old 08-25-2002, 06:53 AM   #6
ShawnD
Member
 
Registered: Jul 2002
Distribution: Mandrake 8.2
Posts: 127

Original Poster
Rep: Reputation: 15
ps | ax
bash: ax: command not found

so i just ran ps and the things running are:
su
bash
ps

is that supposed to be services or something? i'm running a lot more things than that.....
 
Old 08-25-2002, 09:10 AM   #7
RKris
Member
 
Registered: May 2002
Location: UK
Distribution: Mandriva linux
Posts: 152

Rep: Reputation: 15
ShawnD,
Please read a documentation and buy a good linux book.

regards
Krishna
 
Old 08-25-2002, 09:35 AM   #8
ShawnD
Member
 
Registered: Jul 2002
Distribution: Mandrake 8.2
Posts: 127

Original Poster
Rep: Reputation: 15
few things:
-there is no documentation on the ax command
-the command YOU gave does not work
-i have several Linux books: Linux In A Nutshell, Running Linux, Understanding The Linux Kernel, LINUX
none of those books say anything about how to analyze why sendmail is completely f***ed
-sendmail's site does NOT have a forum
-sendmail's FAQ doesn't answer many questions

instead of just saying "read the manual" then throwing all questions aside why not try to actually make suggestions of what could be f***ed?
 
Old 08-25-2002, 09:50 AM   #9
RKris
Member
 
Registered: May 2002
Location: UK
Distribution: Mandriva linux
Posts: 152

Rep: Reputation: 15
Hi,
Join the sendmail mailing list then.

regards
Krishna
 
Old 08-25-2002, 09:55 AM   #10
ShawnD
Member
 
Registered: Jul 2002
Distribution: Mandrake 8.2
Posts: 127

Original Poster
Rep: Reputation: 15
mailing lists are only good for updates or anouncements. are you are thinking of a newsgroup?
 
Old 08-25-2002, 10:29 AM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
well for a start, it shoulod be "ps ax" NOT "ps | ax", i certainly get the impression that sendmail is just plain not running at all. look at your sendmail logs in /var/log/maillog for information about connections and such. you shouldn't be having firewall problems if you are just doing it on the local machine either...

if sendmail is not running (you could also check "service sendmail status" then try to start it with "service sendmail start" or "/etc/init.d/sendmail start"
 
Old 08-25-2002, 11:04 AM   #12
ShawnD
Member
 
Registered: Jul 2002
Distribution: Mandrake 8.2
Posts: 127

Original Poster
Rep: Reputation: 15
my computer has BIG problems
-there is no sendmail running
-there is no service known as "sendmail"
-there is no file named "sendmail" in the /etc/init.d folder

i DID install sendmail, when installing Mandrake i selected all packages except for Gnome and selected each server, web and mail program there was
 
Old 08-25-2002, 11:12 AM   #13
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
right well in that case you DID NOT install sendmail go install again. just to make sure though... "rpm -qa | grep sendmail" to see if maybe it's in the database anyway
 
Old 08-25-2002, 11:20 AM   #14
ShawnD
Member
 
Registered: Jul 2002
Distribution: Mandrake 8.2
Posts: 127

Original Poster
Rep: Reputation: 15
i'm pretty sure i do have sendmail, that would explain why there is a /usr/sbin/sendmail

PHP can't send mail through it though
 
Old 08-25-2002, 11:22 AM   #15
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
well you might have the single binary but the pacakge as a whole obviously is not there...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cups test page works, nothing else. Danodare Slackware 9 03-14-2004 02:03 AM
usb printer configured test prints but nothing else works Frybyte Linux - Hardware 6 01-04-2004 11:54 AM
Only test.cgi script works? lonny Programming 1 12-09-2003 09:38 PM
Programs are not using my printer (even though test page in cups works) TheOneAndOnlySM Slackware 4 10-14-2003 09:04 PM
sendmail test problems synfield Linux - Networking 0 04-07-2003 12:31 AM


All times are GMT -5. The time now is 08:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration