LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 01-04-2013, 02:14 PM   #1
slufoot80
Member
 
Registered: Nov 2011
Posts: 69

Rep: Reputation: Disabled
Cool sendmail - Solaris 10, can't send mail to a specific user on the system


when I run the command "echo `hostname`| mail username"
the command completed successfully because I get a "0" when I run "echo $?" but it doesn't create the mail box for it


and when I run "svcs -a | grep sendmail" I get

Code:
bash-3.2# svcs -a | grep sendmail
online         14:52:28 svc:/network/sendmail-client:default
maintenance    14:56:29 svc:/network/smtp:sendmail
now every time I bring it online it goes back to:

Code:
"maintenance    14:56:29 svc:/network/smtp:sendmail"
What do I do about this
 
Old 01-04-2013, 02:58 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Run
Code:
svcs -xv
and have a look at the service logs.
 
Old 01-04-2013, 03:10 PM   #3
slufoot80
Member
 
Registered: Nov 2011
Posts: 69

Original Poster
Rep: Reputation: Disabled
Cool here is what I have

here is the output of the command

Code:
[ Dec 16 08:54:49 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
[ Dec 16 08:54:49 Method "start" exited with status 0 ]
[ Dec 16 08:55:34 Stopping because all processes in service exited. ]
[ Dec 16 08:55:34 Executing stop method ("/lib/svc/method/smtp-sendmail stop 102") ]
[ Dec 16 08:55:34 Method "stop" exited with status 0 ]
[ Dec 16 08:55:35 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
[ Dec 16 08:55:35 Method "start" exited with status 0 ]
[ Dec 16 08:56:20 Stopping because all processes in service exited. ]
[ Dec 16 08:56:20 Executing stop method ("/lib/svc/method/smtp-sendmail stop 114") ]
[ Dec 16 08:56:20 Method "stop" exited with status 0 ]
[ Dec 16 08:56:20 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
[ Dec 16 08:56:20 Method "start" exited with status 0 ]
[ Dec 16 08:57:05 Stopping because all processes in service exited. ]
[ Dec 16 08:57:05 Executing stop method ("/lib/svc/method/smtp-sendmail stop 116") ]
[ Dec 16 08:57:05 Method "stop" exited with status 0 ]
[ Dec 16 08:57:05 Restarting too quickly, changing state to maintenance ]
[ Dec 23 08:54:09 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
[ Dec 23 08:54:09 Method "start" exited with status 0 ]
[ Dec 23 08:54:54 Stopping because all processes in service exited. ]
[ Dec 23 08:54:55 Executing stop method ("/lib/svc/method/smtp-sendmail stop 66") ]
[ Dec 23 08:54:55 Method "stop" exited with status 0 ]
[ Dec 23 08:54:55 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
[ Dec 23 08:54:55 Method "start" exited with status 0 ]
[ Dec 23 08:55:40 Stopping because all processes in service exited. ]
[ Dec 23 08:55:40 Executing stop method ("/lib/svc/method/smtp-sendmail stop 102") ]
[ Dec 23 08:55:40 Method "stop" exited with status 0 ]
[ Dec 23 08:55:40 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
[ Dec 23 08:55:40 Method "start" exited with status 0 ]
[ Dec 23 08:56:25 Stopping because all processes in service exited. ]
[ Dec 23 08:56:25 Executing stop method ("/lib/svc/method/smtp-sendmail stop 114") ]
[ Dec 23 08:56:25 Method "stop" exited with status 0 ]
[ Dec 23 08:56:25 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
[ Dec 23 08:56:25 Method "start" exited with status 0 ]
[ Dec 23 08:57:10 Stopping because all processes in service exited. ]
[ Dec 23 08:57:10 Executing stop method ("/lib/svc/method/smtp-sendmail stop 116") ]
[ Dec 23 08:57:11 Method "stop" exited with status 0 ]
[ Dec 23 08:57:11 Restarting too quickly, changing state to maintenance ]
[ Dec 30 08:54:15 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
[ Dec 30 08:54:15 Method "start" exited with status 0 ]
[ Dec 30 08:55:00 Stopping because all processes in service exited. ]
[ Dec 30 08:55:00 Executing stop method ("/lib/svc/method/smtp-sendmail stop 66") ]
[ Dec 30 08:55:00 Method "stop" exited with status 0 ]
[ Dec 30 08:55:00 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
[ Dec 30 08:55:01 Method "start" exited with status 0 ]
[ Dec 30 08:55:46 Stopping because all processes in service exited. ]
[ Dec 30 08:55:46 Executing stop method ("/lib/svc/method/smtp-sendmail stop 107") ]
[ Dec 30 08:55:46 Method "stop" exited with status 0 ]
[ Dec 30 08:55:46 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
[ Dec 30 08:55:46 Method "start" exited with status 0 ]
[ Dec 30 08:56:31 Stopping because all processes in service exited. ]
[ Dec 30 08:56:31 Executing stop method ("/lib/svc/method/smtp-sendmail stop 114") ]
[ Dec 30 08:56:31 Method "stop" exited with status 0 ]
[ Dec 30 08:56:31 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
[ Dec 30 08:56:31 Method "start" exited with status 0 ]
[ Dec 30 08:57:16 Stopping because all processes in service exited. ]
[ Dec 30 08:57:16 Executing stop method ("/lib/svc/method/smtp-sendmail stop 116") ]
[ Dec 30 08:57:16 Method "stop" exited with status 0 ]
[ Dec 30 08:57:16 Restarting too quickly, changing state to maintenance ]
[ Jan  4 10:25:30 Leaving maintenance because disable requested. ]
[ Jan  4 10:25:30 Disabled. ]
[ Jan  4 10:31:37 Enabled. ]
[ Jan  4 10:31:37 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
[ Jan  4 10:31:37 Method "start" exited with status 0 ]
[ Jan  4 10:32:20 Stopping because service restarting. ]
[ Jan  4 10:32:20 Executing stop method ("/lib/svc/method/smtp-sendmail stop 32946") ]
[ Jan  4 10:32:26 Method "stop" exited with status 0 ]
[ Jan  4 10:32:26 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
[ Jan  4 10:32:26 Method "start" exited with status 0 ]
[ Jan  4 10:33:11 Stopping because all processes in service exited. ]
[ Jan  4 10:33:11 Executing stop method ("/lib/svc/method/smtp-sendmail stop 32949") ]
[ Jan  4 10:33:11 Method "stop" exited with status 0 ]
[ Jan  4 10:33:11 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
[ Jan  4 10:33:11 Method "start" exited with status 0 ]
[ Jan  4 10:33:56 Stopping because all processes in service exited. ]
[ Jan  4 10:33:56 Executing stop method ("/lib/svc/method/smtp-sendmail stop 32953") ]
[ Jan  4 10:33:56 Method "stop" exited with status 0 ]
[ Jan  4 10:33:56 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
[ Jan  4 10:33:56 Method "start" exited with status 0 ]
[ Jan  4 10:34:41 Stopping because all processes in service exited. ]
[ Jan  4 10:34:41 Executing stop method ("/lib/svc/method/smtp-sendmail stop 32955") ]
[ Jan  4 10:34:42 Method "stop" exited with status 0 ]
[ Jan  4 10:34:42 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
[ Jan  4 10:34:42 Method "start" exited with status 0 ]
[ Jan  4 10:35:27 Stopping because all processes in service exited. ]
[ Jan  4 10:35:27 Executing stop method ("/lib/svc/method/smtp-sendmail stop 32957") ]
[ Jan  4 10:35:27 Method "stop" exited with status 0 ]
[ Jan  4 10:35:27 Restarting too quickly, changing state to maintenance ]
[ Jan  4 14:48:28 Leaving maintenance because clear requested. ]
[ Jan  4 14:48:28 Enabled. ]
[ Jan  4 14:48:28 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
[ Jan  4 14:48:28 Method "start" exited with status 0 ]
[ Jan  4 14:49:13 Stopping because all processes in service exited. ]
[ Jan  4 14:49:14 Executing stop method ("/lib/svc/method/smtp-sendmail stop 34153") ]
[ Jan  4 14:49:14 Method "stop" exited with status 0 ]
[ Jan  4 14:49:14 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
[ Jan  4 14:49:14 Method "start" exited with status 0 ]
[ Jan  4 14:49:59 Stopping because all processes in service exited. ]
[ Jan  4 14:49:59 Executing stop method ("/lib/svc/method/smtp-sendmail stop 34156") ]
[ Jan  4 14:49:59 Method "stop" exited with status 0 ]
[ Jan  4 14:49:59 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
[ Jan  4 14:49:59 Method "start" exited with status 0 ]
[ Jan  4 14:50:44 Stopping because all processes in service exited. ]
[ Jan  4 14:50:44 Executing stop method ("/lib/svc/method/smtp-sendmail stop 34158") ]
[ Jan  4 14:50:44 Method "stop" exited with status 0 ]
[ Jan  4 14:50:44 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
[ Jan  4 14:50:44 Method "start" exited with status 0 ]
[ Jan  4 14:51:29 Stopping because all processes in service exited. ]
[ Jan  4 14:51:30 Executing stop method ("/lib/svc/method/smtp-sendmail stop 34178") ]
[ Jan  4 14:51:30 Method "stop" exited with status 0 ]
[ Jan  4 14:51:30 Restarting too quickly, changing state to maintenance ]
[ Jan  4 14:53:27 Leaving maintenance because clear requested. ]
[ Jan  4 14:53:27 Enabled. ]
[ Jan  4 14:53:27 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
[ Jan  4 14:53:27 Method "start" exited with status 0 ]
[ Jan  4 14:54:12 Stopping because all processes in service exited. ]
[ Jan  4 14:54:12 Executing stop method ("/lib/svc/method/smtp-sendmail stop 34188") ]
[ Jan  4 14:54:13 Method "stop" exited with status 0 ]
[ Jan  4 14:54:13 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
[ Jan  4 14:54:13 Method "start" exited with status 0 ]
[ Jan  4 14:54:58 Stopping because all processes in service exited. ]
[ Jan  4 14:54:58 Executing stop method ("/lib/svc/method/smtp-sendmail stop 34190") ]
[ Jan  4 14:54:58 Method "stop" exited with status 0 ]
[ Jan  4 14:54:58 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
[ Jan  4 14:54:58 Method "start" exited with status 0 ]
[ Jan  4 14:55:43 Stopping because all processes in service exited. ]
[ Jan  4 14:55:43 Executing stop method ("/lib/svc/method/smtp-sendmail stop 34192") ]
[ Jan  4 14:55:43 Method "stop" exited with status 0 ]
[ Jan  4 14:55:43 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
[ Jan  4 14:55:43 Method "start" exited with status 0 ]
[ Jan  4 14:56:28 Stopping because all processes in service exited. ]
[ Jan  4 14:56:28 Executing stop method ("/lib/svc/method/smtp-sendmail stop 34209") ]
[ Jan  4 14:56:29 Method "stop" exited with status 0 ]
[ Jan  4 14:56:29 Restarting too quickly, changing state to maintenance ]
[ Jan  4 15:26:43 Leaving maintenance because clear requested. ]
[ Jan  4 15:26:43 Enabled. ]
[ Jan  4 15:26:43 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
[ Jan  4 15:26:43 Method "start" exited with status 0 ]
[ Jan  4 15:27:28 Stopping because all processes in service exited. ]
[ Jan  4 15:27:28 Executing stop method ("/lib/svc/method/smtp-sendmail stop 34355") ]
[ Jan  4 15:27:28 Method "stop" exited with status 0 ]
[ Jan  4 15:27:28 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
[ Jan  4 15:27:28 Method "start" exited with status 0 ]
[ Jan  4 15:28:13 Stopping because all processes in service exited. ]
[ Jan  4 15:28:13 Executing stop method ("/lib/svc/method/smtp-sendmail stop 34362") ]
[ Jan  4 15:28:14 Method "stop" exited with status 0 ]
[ Jan  4 15:28:14 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
[ Jan  4 15:28:14 Method "start" exited with status 0 ]
[ Jan  4 15:28:59 Stopping because all processes in service exited. ]
[ Jan  4 15:28:59 Executing stop method ("/lib/svc/method/smtp-sendmail stop 34364") ]
[ Jan  4 15:28:59 Method "stop" exited with status 0 ]
[ Jan  4 15:28:59 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
[ Jan  4 15:28:59 Method "start" exited with status 0 ]
[ Jan  4 15:29:44 Stopping because all processes in service exited. ]
[ Jan  4 15:29:44 Executing stop method ("/lib/svc/method/smtp-sendmail stop 34366") ]
[ Jan  4 15:29:44 Method "stop" exited with status 0 ]
[ Jan  4 15:29:44 Restarting too quickly, changing state to maintenance ]
[ Jan  4 15:58:55 Leaving maintenance because clear requested. ]
[ Jan  4 15:58:55 Enabled. ]
[ Jan  4 15:58:55 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
[ Jan  4 15:58:55 Method "start" exited with status 0 ]
[ Jan  4 15:59:40 Stopping because all processes in service exited. ]
[ Jan  4 15:59:41 Executing stop method ("/lib/svc/method/smtp-sendmail stop 34506") ]
[ Jan  4 15:59:41 Method "stop" exited with status 0 ]
[ Jan  4 15:59:41 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
[ Jan  4 15:59:41 Method "start" exited with status 0 ]
[ Jan  4 16:00:26 Stopping because all processes in service exited. ]
[ Jan  4 16:00:26 Executing stop method ("/lib/svc/method/smtp-sendmail stop 34513") ]
[ Jan  4 16:00:26 Method "stop" exited with status 0 ]
[ Jan  4 16:00:26 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
[ Jan  4 16:00:26 Method "start" exited with status 0 ]
[ Jan  4 16:01:11 Stopping because all processes in service exited. ]
[ Jan  4 16:01:11 Executing stop method ("/lib/svc/method/smtp-sendmail stop 34541") ]
[ Jan  4 16:01:11 Method "stop" exited with status 0 ]
[ Jan  4 16:01:11 Executing start method ("/lib/svc/method/smtp-sendmail start") ]
[ Jan  4 16:01:11 Method "start" exited with status 0 ]
[ Jan  4 16:01:56 Stopping because all processes in service exited. ]
[ Jan  4 16:01:57 Executing stop method ("/lib/svc/method/smtp-sendmail stop 34544") ]
[ Jan  4 16:01:57 Method "stop" exited with status 0 ]
[ Jan  4 16:01:57 Restarting too quickly, changing state to maintenance ]
bash-3.2#
 
Old 01-13-2013, 11:09 PM   #4
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Can you try to disable/enable the service once:-
Code:
~# svcadm disable svc:/network/smtp:sendmail
~# svcadm enable svc:/network/smtp:sendmail
~# svcs -a | grep sendmail
Also what's status of process?
Code:
ps -ef | grep sendmail

Last edited by shivaa; 01-13-2013 at 11:11 PM.
 
  


Reply

Tags
sendmail, solaris



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
[SOLVED] How to send a mail in HTML format using mailx or mail or sendmail commands vishnu_knl Linux - Newbie 8 04-05-2012 10:00 AM
Blocking mail to specific domain from specific user orko Linux - Server 0 03-26-2009 02:18 PM
How to force specific domain or user specific emails to proces in sendmail 8.13.5 FC5 peanutsa Linux - Newbie 1 03-22-2009 05:33 AM
sendmail non system user can not receive mail--help xiutuo Linux - Server 7 03-23-2008 08:18 PM
how to setup exim to send mail for specific user(s) - I have dynamic IP aholovsky Linux - Networking 2 11-25-2006 06:19 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 04:57 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
Open Source Consulting | Domain Registration