LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 06-01-2009, 05:16 PM   #1
elucho02
LQ Newbie
 
Registered: May 2009
Posts: 11

Rep: Reputation: 0
test Sendmail


I am new to linux. how can I test my sendmail configuration so that I can send emails? Thanks
 
Old 06-01-2009, 07:59 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,251

Rep: Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025
Code:
echo 'this is a test'| mail -s test_email user@somedomain
for local test ie user is on same machine, skip '@somedomain'
 
Old 06-02-2009, 09:55 AM   #3
elucho02
LQ Newbie
 
Registered: May 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Ok well it seems like even though Sendmail is running it doesnt seem to be sending messages. I know there could be millions of reasons for Sendmail not to work. But I dont know where to start looking. Any ideas?
 
Old 06-02-2009, 08:47 PM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,251

Rep: Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025
Not sending locally? Remotely? What's in /var/log/messages?
Details....
Show exact cmd used and error msgs if any
 
Old 06-03-2009, 10:46 AM   #5
elucho02
LQ Newbie
 
Registered: May 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by chrism01 View Post
Not sending locally? Remotely? What's in /var/log/messages?
Details....
Show exact cmd used and error msgs if any
Not sending remotely. this is not an email server, its a web server, but i need it to just send emails(registrations forms).

Here is some of the content form my /var/log/messages

Quote:
Jun 3 09:34:17 localhost snmpd[2492]: Connection from UDP: [127.0.0.1]:46058
Jun 3 09:34:17 localhost snmpd[2492]: Received SNMP packet(s) from UDP: [127.0.0.1]:46058
Jun 3 09:34:17 localhost snmpd[2492]: Connection from UDP: [127.0.0.1]:46058
Jun 3 09:34:17 localhost snmpd[2492]: Connection from UDP: [127.0.0.1]:56679
Jun 3 09:34:17 localhost snmpd[2492]: Received SNMP packet(s) from UDP: [127.0.0.1]:56679
Jun 3 09:34:32 localhost snmpd[2492]: Connection from UDP: [127.0.0.1]:49209
Jun 3 09:34:32 localhost snmpd[2492]: Received SNMP packet(s) from UDP: [127.0.0.1]:49209
Jun 3 09:34:32 localhost snmpd[2492]: Connection from UDP: [127.0.0.1]:49209
Jun 3 09:34:32 localhost snmpd[2492]: Connection from UDP: [127.0.0.1]:50603
Jun 3 09:34:32 localhost snmpd[2492]: Received SNMP packet(s) from UDP: [127.0.0.1]:50603
Jun 3 09:34:47 localhost snmpd[2492]: Connection from UDP: [127.0.0.1]:46585
Jun 3 09:34:47 localhost snmpd[2492]: Received SNMP packet(s) from UDP: [127.0.0.1]:46585
Jun 3 09:34:47 localhost snmpd[2492]: Connection from UDP: [127.0.0.1]:46585
Jun 3 09:34:47 localhost snmpd[2492]: Connection from UDP: [127.0.0.1]:60782
Jun 3 09:34:47 localhost snmpd[2492]: Received SNMP packet(s) from UDP: [127.0.0.1]:60782
Jun 3 09:35:02 localhost snmpd[2492]: Connection from UDP: [127.0.0.1]:48889
Jun 3 09:35:02 localhost snmpd[2492]: Received SNMP packet(s) from UDP: [127.0.0.1]:48889
Jun 3 09:35:02 localhost snmpd[2492]: Connection from UDP: [127.0.0.1]:48889
Jun 3 09:35:02 localhost snmpd[2492]: Connection from UDP: [127.0.0.1]:59384
Jun 3 09:35:02 localhost snmpd[2492]: Received SNMP packet(s) from UDP: [127.0.0.1]:59384
Jun 3 09:35:17 localhost snmpd[2492]: Connection from UDP: [127.0.0.1]:41292
Jun 3 09:35:17 localhost snmpd[2492]: Received SNMP packet(s) from UDP: [127.0.0.1]:41292
Jun 3 09:35:17 localhost snmpd[2492]: Connection from UDP: [127.0.0.1]:41292
Jun 3 09:35:17 localhost snmpd[2492]: Connection from UDP: [127.0.0.1]:41354
Jun 3 09:35:17 localhost snmpd[2492]: Received SNMP packet(s) from UDP: [127.0.0.1]:41354
Jun 3 09:35:32 localhost snmpd[2492]: Connection from UDP: [127.0.0.1]:56521
Jun 3 09:35:32 localhost snmpd[2492]: Received SNMP packet(s) from UDP: [127.0.0.1]:56521
Jun 3 09:35:32 localhost snmpd[2492]: Connection from UDP: [127.0.0.1]:56521
Jun 3 09:35:32 localhost snmpd[2492]: Connection from UDP: [127.0.0.1]:55023
Jun 3 09:35:32 localhost snmpd[2492]: Received SNMP packet(s) from UDP: [127.0.0.1]:55023
Jun 3 09:35:47 localhost snmpd[2492]: Connection from UDP: [127.0.0.1]:60340
Jun 3 09:35:47 localhost snmpd[2492]: Received SNMP packet(s) from UDP: [127.0.0.1]:60340
Jun 3 09:35:47 localhost snmpd[2492]: Connection from UDP: [127.0.0.1]:60340
Jun 3 09:35:47 localhost snmpd[2492]: Connection from UDP: [127.0.0.1]:33361
Jun 3 09:35:47 localhost snmpd[2492]: Received SNMP packet(s) from UDP: [127.0.0.1]:33361
Jun 3 09:36:02 localhost snmpd[2492]: Connection from UDP: [127.0.0.1]:33544
Jun 3 09:36:02 localhost snmpd[2492]: Received SNMP packet(s) from UDP: [127.0.0.1]:33544
Jun 3 09:36:02 localhost snmpd[2492]: Connection from UDP: [127.0.0.1]:33544
Jun 3 09:36:02 localhost snmpd[2492]: Connection from UDP: [127.0.0.1]:36594
Jun 3 09:36:02 localhost snmpd[2492]: Received SNMP packet(s) from UDP: [127.0.0.1]:36594
Jun 3 09:36:17 localhost snmpd[2492]: Connection from UDP: [127.0.0.1]:32987
Jun 3 09:36:17 localhost snmpd[2492]: Received SNMP packet(s) from UDP: [127.0.0.1]:32987
Jun 3 09:36:17 localhost snmpd[2492]: Connection from UDP: [127.0.0.1]:32987
Jun 3 09:36:17 localhost snmpd[2492]: Connection from UDP: [127.0.0.1]:49807
Jun 3 09:36:17 localhost snmpd[2492]: Received SNMP packet(s) from UDP: [127.0.0.1]:49807
Jun 3 09:36:32 localhost snmpd[2492]: Connection from UDP: [127.0.0.1]:34482
Jun 3 09:36:32 localhost snmpd[2492]: Received SNMP packet(s) from UDP: [127.0.0.1]:34482
Jun 3 09:36:32 localhost snmpd[2492]: Connection from UDP: [127.0.0.1]:34482
Jun 3 09:36:32 localhost snmpd[2492]: Connection from UDP: [127.0.0.1]:42514
Jun 3 09:36:32 localhost snmpd[2492]: Received SNMP packet(s) from UDP: [127.0.0.1]:42514
I am not getting any error messages but when I run this command i get nothing

echo 'this is a test'| mail -s test_email user@somedomain

Thanks
 
Old 12-18-2010, 04:21 AM   #6
snq
LQ Newbie
 
Registered: Feb 2009
Posts: 16

Rep: Reputation: 0
Quote:
Originally Posted by chrism01 View Post
Code:
echo 'this is a test'| mail -s test_email user@somedomain
for local test ie user is on same machine, skip '@somedomain'
the mail program is a MUA? am I correct ?

so how can we dictate that mail program uses which MTA e.g. sendmail or exim?
 
  


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
Sendmail - dkim-filter problem. Test : fail (signature doesn' verify) ethic Linux - Server 0 05-15-2009 01:16 PM
Can I test sendmail via the terminal? cartfanatic39 Linux - Networking 2 09-17-2003 01:04 PM
sendmail test problems synfield Linux - Networking 0 04-06-2003 11:31 PM
how can i test if sendmail actually works? ShawnD Linux - Software 34 08-30-2002 06:47 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration