The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
sendmail problem on Solaris 10 jumadhiya SUN Solaris 10 02-27-2007 07:18 PM
Starting NFS server Solaris 10 bdsffl SUN Solaris 2 01-22-2007 12:47 PM
Stopping NFS from starting at bootup - Solaris 10 amheck SUN Solaris 2 08-10-2006 10:09 AM
Just starting my Solaris 10 upgrade - Need Help PapaPark SUN Solaris 11 04-11-2006 02:32 PM
starting Apache on Solaris 8 jskillet UNIX for Dummies Questions & Answers 5 07-20-2001 10:06 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-11-2007
neel.gurjar neel.gurjar is offline
Registered User
  
 

Join Date: May 2007
Posts: 48
Problem starting Sendmail on Solaris 9

Hi,
I am getting problem in starting up Sendmail on solaris. When I do /etc/init.d/sendmail start
in Process list it shows sendmail process properly. But when I do portcheck by netstat it doesn't show Port 25/smtp.
What could be the problem ?

Thanks
NeeleshG
  #2 (permalink)  
Old 08-11-2007
hegemaro hegemaro is offline
Registered User
  
 

Join Date: Feb 2006
Location: Schenectady, NY
Posts: 134
Have you tried connecting to the port with

# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 hostname.domain.net ESMTP Sendmail 8.11.7p3+Sun/8.11.7; Sat, 11 Aug 2007 08:11:37 -0400 (EDT)
quit
221 2.0.0 hostname.domain.net closing connection
Connection closed by foreign host.
  #3 (permalink)  
Old 08-11-2007
neel.gurjar neel.gurjar is offline
Registered User
  
 

Join Date: May 2007
Posts: 48
But port 25 is not getting opened. telnet to port 25 cannot be done.
thats prob...
thanks
  #4 (permalink)  
Old 08-12-2007
hegemaro hegemaro is offline
Registered User
  
 

Join Date: Feb 2006
Location: Schenectady, NY
Posts: 134
Of course that is the problem; my posting was incomplete.

I suspect that sendmail is not running in daemon mode that is, it will send mail from the system but not receive it.

Check for an /etc/default/sendmail file which might look something like this:
Code:
MODE=
QUEUEINTERVAL="5m"
Also check the sendmail process with ps for arguments such as:
Code:
    root  461     1  0 09:40:06 ?        0:00 /usr/lib/sendmail -q5m
Let me know what you find. Sorry for any confusion.
  #5 (permalink)  
Old 08-12-2007
neel.gurjar neel.gurjar is offline
Registered User
  
 

Join Date: May 2007
Posts: 48
Hey no sorry... no problem with that....

Below given output of ps -ef|grep sendmail

smmsp 10741 1 0 Aug 11 ? 0:00 /usr/lib/sendmail -Ac -q15m
root 10749 1 0 Aug 11 ? 0:00 /usr/lib/sendmail -q15m

But still when I run netstat -an|grep 25
It doesnt show any service..

I didnot find /etc/default/sendmail

Thanks
NeeleshG
  #6 (permalink)  
Old 08-12-2007
hegemaro hegemaro is offline
Registered User
  
 

Join Date: Feb 2006
Location: Schenectady, NY
Posts: 134
Okay, so you're not running in daemon mode. Check /etc/init.d/sendmail and search for the variable "MODE". (Note that I'm running Solaris 8 at home and I'm not sure of, if any, differences).

In Solaris 8, the /etc/init.d/sendmail script will source /etc/default/sendmail setting various environment variables: MODE, QUEUEINTERVAL, and OPTIONS. These are used to call /usr/lib/sendmail. Verify that this is true for Solaris 9 (it should be). You see something like this in the init script:

if [ -f /etc/default/sendmail ]; then
. /etc/default/sendmail
fi


Then create /etc/default/sendmail as:
Code:
MODE="-bd"
QUEUEINTERVAL="15m"
Stop and start sendmail with the init script and you should see:

root 10123 1 0 Aug 12 ? 0:00 /usr/lib/sendmail -bd -q15m

Be prepared that this will open a whole can of worms with regard to email security. You current mode is sufficient -- with some tweaking of /etc/mail/sendmail.cf -- to route mail off of the system but it prevents email coming into or being routed by it, either intentionally or maliciously.

Good Luck!
  #7 (permalink)  
Old 08-19-2007
neel.gurjar neel.gurjar is offline
Registered User
  
 

Join Date: May 2007
Posts: 48
Thanks Very much I started sendmail by following command:

/usr/lib/sendmail -bd -q15m

and it worked.

Thanks
NeeleshG
Closed Thread

Bookmarks

Tags
sendmail

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:37 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0