Problem regarding sendmail

Posted on 2002-04-29
Last Modified: 2010-04-20
I have sendmail with default settings... did not make any changes.... i can send from some other account to ... but from root neither can i send nor reply to any other user accounts on the system.
Question by:harisnshaw
LVL 40

Expert Comment

ID: 6981074
What error condition is encountered when root attempts to send mail to some other user on the system? What tool are you attempting to send the mail with?

Author Comment

ID: 6981334
i am using pine to send the mail. I get the error user unknown...
LVL 40

Expert Comment

ID: 6981783
What happens if you do 'mail -s test some-local-user'? If that works and pine doesn't, then it sounds like a problem with root's pine configuration.
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.


Author Comment

ID: 6982786
I get the same error user unknow. If i try mail -s test root it works. But any other user it does not work
LVL 40

Expert Comment

ID: 6983621
These are linux accounts on this machine, right? By that I mean that those users can log onto the machine with their username & password.

What happens if you do 'mail -s test some-user', i.e., with out any domain specification. If that works and user@mydom.tld doesn't it could indicate that sendmail is confused about what domain it is responsible for. And that could happen if the system is configured for one domain and gets its IP via DHCP, which could result in a change in the hostname of the system.

You should be able to tell if something like that is happening by comparing the contents of /etc/hosts, what hostname returns and what a reverse lookup of your IP returns. If /etc/hosts doesn't agree with 'hostname' there'll be problems with sendmail.

Author Comment

ID: 6989482
if i try mail -s test xyz ( xyz is  a local linux user ) then nothing happends..... here is the screen shot

[Haris@sys02 Haris]$ mail -s test Haris

after that i have to press ^C then i get

(Interrupt -- one more to kill letter)

again i have to press ^C then i get back

[Haris@sys02 Haris]$

also i don't use any DHCP server...I have a static ip... my rpm is corrupted ( u only helped me with that in another question and i will reinstall the whole thing soon... )

Expert Comment

ID: 6990566
Cud u post the 1st 10 lines of ur pine config:

pine -> setup-> config
LVL 40

Expert Comment

ID: 6992250
When you use 'mail -s some-subject some-user' the mail utility expects you to type in a message and then hit ctrl-D to signify the end of the message. mail will then prompt for a Cc: and you can hit ctrl-D again. Only then will the utility actually attempt to contact sendmail to deliver the message. So a transcript of that process looks like:

chimera> mail -s test
This is a test message
Now I'll enter ctrl-D to signify end of message...
Cc: chimera>

By entering the ctrl-C's you've told mail to abort and throw the message attempt away.

Expert Comment

ID: 9089080
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.
LVL 40

Expert Comment

ID: 9105603
I'd say to refund the points as the questioner seems to have lost interest in the middle of diagnosing the problem.
LVL 25

Expert Comment

ID: 9303364
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Please leave any comments here within the next seven days.


EE Cleanup Volunteer

Accepted Solution

PashaMod earned 0 total points
ID: 9356392
Questioner did not follow up the question so points are not refunded and question closed

CS Moderator

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to get maximum transfer speed over LAN 4 79
AWS- KeepAlived notify script not working 23 79
linux pull logs and export FTP 4 70
nagios alerts 3 44
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

774 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question