Problem starting Sendmail on Solaris 9


 
Thread Tools Search this Thread
Operating Systems Solaris Problem starting Sendmail on Solaris 9
# 1  
Old 08-11-2007
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  
Old 08-11-2007
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  
Old 08-11-2007
But port 25 is not getting opened. telnet to port 25 cannot be done.
thats prob...
thanks
# 4  
Old 08-12-2007
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  
Old 08-12-2007
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  
Old 08-12-2007
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  
Old 08-19-2007
Thanks Very much I started sendmail by following command:

/usr/lib/sendmail -bd -q15m

and it worked.

Thanks
NeeleshG
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Problem with starting

Dear all Once i try to change some configuration files for internet connections and after that i have problem to start the system. it get to at logo of HP UX and repeat the same starting procedure all the time. What can i do here? I am beginner at HP UX. (1 Reply)
Discussion started by: panoupanou
1 Replies

2. Solaris

Starting X on Solaris 11?

Hi friends, Hope everyone is fine and doing well. I have just installed Solaris 11, and everytime I boot my machine, I face the command prompt. Could you please tell me how I can setup the graphical environment, like gnome kde etc.??? Thanks in advance! (5 Replies)
Discussion started by: gabam
5 Replies

3. Solaris

Problem starting x11vnc on solaris 9

Hello, I installed x11vnc on a solaris 9 server. #SunOS gandalf 5.9 Generic sun4u sparc SUNW,Ultra-60 When i run x11vnc i get following errors bash-2.05# /usr/local/bin/x11vnc -display :0 17/06/2010 23:34:08 x11vnc version: 0.9.9 lastmod: 2009-12-21 pid: 16203 17/06/2010 23:34:15... (0 Replies)
Discussion started by: sunny_a_j
0 Replies

4. Solaris

Session starting problem

When i start a CDE session on Solaris 9 it starts the Gnome desktop for like five minutes with nothing on the screen except the background then it enters the CDE environment and when I enter (new session) Gnome environment it takes 5 to 10 minutes then the session starts so I wounder why it... (8 Replies)
Discussion started by: darkman
8 Replies

5. UNIX for Advanced & Expert Users

problem starting a process on solaris from other user

Hi Gurus, I have a server that has to users. 1) root 2)net1 there are several processes running on my server one of the process is CMIS_STACK process which is a compiled C code when this process goes missing then i restart this process manually in the following manner ... (2 Replies)
Discussion started by: asalman.qazi
2 Replies

6. AIX

sendmail/ntp/qdaemon not starting automaticlly after reboot ?!

Hi all, I have a small problem, after a reboot the following services do not start automaticly, like they are supposed to do even though they are commented in in /etc/rc.tcpip sendmail xntpd qdaemon snmpd snmpmibd aixmibd hostmibd why ?!?! anybody ? :confused: (3 Replies)
Discussion started by: art
3 Replies

7. Solaris

sendmail problem on Solaris 10

Hi All, I am facing problem while sending mail using "mail" & "sendmail" commands from my Solaris 10 system. When I send the mail, it moves it to dead.letter & generates following error messages in /var/log/syslog file; Feb 22 14:20:14 ppip1n sendmail: l1M8oDEE008601:... (10 Replies)
Discussion started by: jumadhiya
10 Replies

8. Solaris

Starting NFS server Solaris 10

Whenever I start nfs/server using "svcadm -v enable" it appears to start up. But when I look for daemons such as nfsd I don't see any. So I checked the manifest logs for nfs/server and it's telling me the NFS service gets enabled and then immediately disabled with a stop 102. All the... (2 Replies)
Discussion started by: bdsffl
2 Replies

9. Solaris

Just starting my Solaris 10 upgrade - Need Help

When I downloaded the Solaris 10 from Sun it gave me 4 zipped files with the extension iso. For an example - one file is sol-10-u1-ga-sparc-v4-iso the other three are the same except they are v3, v2 and v1 Am I supposed to unzip these files and still burn them as an ISO? Also why did... (11 Replies)
Discussion started by: PapaPark
11 Replies

10. UNIX for Dummies Questions & Answers

starting Apache on Solaris 8

I am not by any means a UNIX guru if you can't already tell by the question I'm about to ask. How do I launch Apache web server on my SOlaris 8 server without rebooting it? Any help would be much appreciated!!! -Thanks (5 Replies)
Discussion started by: jskillet
5 Replies
Login or Register to Ask a Question