How to disable sendmail???


 
Thread Tools Search this Thread
Operating Systems Solaris How to disable sendmail???
# 1  
Old 09-05-2011
How to disable sendmail???

Hi friends,
I just did a fresh installation of Solaris 10 as I had some problems with UFS, which seems that ZFS has solved.
Now the problem is that sendmail is constantly printing error messages on my screen, which is really irritating me, as I am a novice user, and don't intend to use and learn sendmail at the moment. This is the message that I see.
Code:
 
Sep 5 10:16:46 virtual-solaris sendmail[829] unable to qualify my own domain name (virtual-solaris) -- using short name
Sep 5 10:16:46 virtual-solaris sendmail[829] [ID 702911 mail.alert] unable to qualify my own domain name (virtual-solaris)  -- using short name

and I see a different kind of error message as well which says, maybe it is also related to sendmail
Code:
 
Sep 5 10:16:46 virtual-solaris snmpXdmid: Registration with DMI failed. error=831

I tried to to disable sendmail with the command
Code:
 
svcadm disable sendmail

but it doesn't work at all, and sendmail is not disabled and loads automatically as the computer is booted, and I can see it with
Code:
 
ps -e | egrep sendmail

I also tried to kill the sendmail process
Code:
 
kill -9 834

but it says,
Code:
 
Sep 5 10:16:46 virtual-solaris sendmail[829] unable to qualify my own domain name (virtual-solaris) unkown; sleeping for retry.

Please help me with this. And also I had problem with another error message which would say that my filesystem is full, and a friend on this forum recommended that I do a fresh install and use ZFS instead of UFS, and I did. I am posting the output of df -h commands, please tell me whether the filesystem is ok now or not?

Code:
 
$ df -h
Filesystem             size   used  avail capacity  Mounted on
rpool/ROOT/s10x_u9wos_14a
                        50G   3.6G    45G     8%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                   463M   384K   463M     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
fd                       0K     0K     0K     0%    /dev/fd
swap                   463M    36K   463M     1%    /tmp
swap                   463M    24K   463M     1%    /var/run
rpool/export            50G    23K    45G     1%    /export
rpool/export/home       50G    21K    45G     1%    /export/home
rpool                   50G    32K    45G     1%    /rpool

Looking forward to your wonderful replies, I love this form and the contributors, I wish one day I'll be capable enough to solve people's problems on this forum, as they do mine at the moment.
Thanks in advance!

Last edited by gabam; 09-05-2011 at 07:43 AM..
# 2  
Old 09-05-2011
Hi,
Can you paste example o/p also with commands for better understanding?
Can you check if service name is sendmail or just mail?
Code:
svcs -a | grep mail

Also put an entry for your IP and hostname in /etc/hosts, restart mail service and check if above message comes or not.


O/p of df -h seems good. Please check capacity colume of o/p for % used capacity of filesystem. All are below 8%, so you should not be receiving file system full message.
# 3  
Old 09-05-2011
Quote:
Hi,
Can you paste example o/p also with commands for better understanding?
Can you check if service name is sendmail or just mail?

svcs -a | grep mail
Here is the output
Code:
$ svcs -a | grep mail
disabled       11:09:52 svc:/network/smtp:sendmail
online         11:16:36 svc:/network/sendmail-client:default


Quote:
Also put an entry for your IP and hostname in /etc/hosts, restart mail service and check if above message comes or not.
It already has it, it says
Code:
$ cat /etc/hosts
#
# Internet host table
#
::1     localhost
127.0.0.1       localhost
192.168.1.10    virtual-solaris loghost

# 4  
Old 09-05-2011
make it something like this:
Code:
$ cat /etc/hosts
#
# Internet host table
#
::1     localhost
127.0.0.1       localhost
192.168.1.10    virtual-solaris virtual-solaris.mydomain.com loghost


Last edited by DukeNuke2; 09-05-2011 at 09:21 AM..
This User Gave Thanks to DukeNuke2 For This Post:
# 5  
Old 09-05-2011
enter in terminal as root

Code:
svcadm disable svc:/network/sendmail-client:default

These 2 Users Gave Thanks to solaris_user For This Post:
# 6  
Old 09-05-2011
Quote:
Originally Posted by DukeNuke2
make it something like this:
Code:
$ cat /etc/hosts
#
# Internet host table
#
::1     localhost
127.0.0.1       localhost
192.168.1.10    virtual-solaris virtual-solaris.mydomain.com loghost

I made it like this.
Code:
 
::1 localhost
127.0.0.1 localhost
192.168.1.10 virtual-solaris virtual-solaris.home.com loghost

And rebooted the machine. I think it has worked now, I haven't received that pesky message for quite some time now.
Thanks a ton bro, I'll be alway indebted to you! Have a wonderful time

Last edited by gabam; 09-05-2011 at 10:04 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Clarifying sendmail configuration - sendmail-client offline

Hi all, I have read about sendmail running as 2 separate process. 1 as a MSP, and the other as the real daemon or MTA. In my current configuration, the sendmail-client is disabled. Both submit.cf and sendmail.cf are left as default untouch I do not specified any mailhost... (3 Replies)
Discussion started by: javanoob
3 Replies

2. UNIX for Advanced & Expert Users

Sendmail questions, SCO 5.0.6 sendmail 8.11.0

I am running SCO 5.0.6 and using sendmail 8.11.0 and having issues with smtp authentication. When trying to send mail the following message will kick back. (reason: 530 5.7.1 Authentication required) 530 5.7.1 Authentication required Not sure what needs to be tweeked in sendmail.cf but I... (1 Reply)
Discussion started by: ziggy6
1 Replies

3. UNIX for Advanced & Expert Users

Disable rm -rf * or rm -rf / in Cent OS

Can some one suggest me the way to disable " rm -rf * " or " rm -rf / " command execution permanently from the server. Any suggestion will be very much helpful . (18 Replies)
Discussion started by: shiek.kaleem
18 Replies

4. Linux

Printer is getting disable...

Dear expert, I have configured the printer on my linux server, Daily its getting disable and user cannot access the printer. Request you to please help me on this, Attached the screen shot. Thank you, Faiz. (2 Replies)
Discussion started by: Mohammed Faiz
2 Replies

5. Red Hat

SSL/TLS renegotiation DoS -how to disable? Is it advisable to disable?

Hi all Expertise, I have following issue to solve, SSL / TLS Renegotiation DoS (low) 222.225.12.13 Ease of Exploitation Moderate Port 443/tcp Family Miscellaneous Following is the problem description:------------------ Description The remote service encrypts traffic using TLS / SSL and... (2 Replies)
Discussion started by: manalisharmabe
2 Replies

6. UNIX for Dummies Questions & Answers

Sendmail - Disable text wrap

Hi, I am using sendmail to trigger mail alerts. The body of the mail is becoming wrapped in to fit to mail window. I want body to be not wrapped like ' set nowrap 'as in vi editor. ---------- Post updated at 05:35 AM ---------- Previous update was at 04:48 AM ---------- a text of 1000... (1 Reply)
Discussion started by: subramanian2008
1 Replies

7. Shell Programming and Scripting

How to disable Enable/Disable Tab Key

Hi All, I have bash script, so what is sintax script in bash for Enable and Disable Tab Key. Thanks for your help.:( Thanks, Rico (1 Reply)
Discussion started by: carnegiex
1 Replies

8. Solaris

How to disable SU right

Anyone know how to disable SU right for a particular user in Solaris 8 (4 Replies)
Discussion started by: civic2005
4 Replies

9. UNIX for Dummies Questions & Answers

disable su

i have this unix version "unix v/386" and i want to disable su kindly help me (2 Replies)
Discussion started by: sak900354
2 Replies

10. UNIX for Dummies Questions & Answers

Disable X

Im sure this is somthing easy to do but i just can not figure it out where and how would i take X out of the boot for hp ux 11 i looked in the man's and nothing so maybe sombody could throw me a bone... thanks BB (8 Replies)
Discussion started by: bbutler3295
8 Replies
Login or Register to Ask a Question