Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i tried with following
and i am getting like below:
bash-2.03# /etc/mail/sendmail.cf
/etc/mail/sendmail.cf: V9/Sun: No such file or directory
/etc/mail/sendmail.cf: Cwlocalhost: command not found
/etc/mail/sendmail.cf: Fw/etc/mail/local-host-names: No such file or directory
/etc/mail/sendmail.cf: CP.: command not found
/etc/mail/sendmail.cf: DSinccisss0001.in.alcatel-lucent.com: command not found
/etc/mail/sendmail.cf: CO: command not found
/etc/mail/sendmail.cf: C..: command not found
/etc/mail/sendmail.cf: C[[: command not found
/etc/mail/sendmail.cf: FR-o: command not found
/etc/mail/sendmail.cf: Karith: command not found
/etc/mail/sendmail.cf: DR: command not found
/etc/mail/sendmail.cf: DH: command not found
/etc/mail/sendmail.cf: Kdequote: command not found
/etc/mail/sendmail.cf: C{E}root: command not found
/etc/mail/sendmail.cf: DM: command not found
/etc/mail/sendmail.cf: DnMAILER-DAEMON: command not found
/etc/mail/sendmail.cf: CPREDIRECT: command not found
/etc/mail/sendmail.cf: DZ8.11.7: command not found
/etc/mail/sendmail.cf: O: command not found
/etc/mail/sendmail.cf: O: command not found
/etc/mail/sendmail.cf: O: command not found
/etc/mail/sendmail.cf: O: command not found
/etc/mail/sendmail.cf: O: command not found
/etc/mail/sendmail.cf: O: command not found
/etc/mail/sendmail.cf: O: command not found
/etc/mail/sendmail.cf: O: command not found
/etc/mail/sendmail.cf: O: command not found
/etc/mail/sendmail.cf: O: command not found
/etc/mail/sendmail.cf: O: command not found
/etc/mail/sendmail.cf: O: command not found
/etc/mail/sendmail.cf: O: command not found
/etc/mail/sendmail.cf: O: command not found
/etc/mail/sendmail.cf: O: command not found
/etc/mail/sendmail.cf: O: command not found
/etc/mail/sendmail.cf: O: command not found
/etc/mail/sendmail.cf: O: command not found
/etc/mail/sendmail.cf: O: command not found
/etc/mail/sendmail.cf: O: command not found
/etc/mail/sendmail.cf: O: command not found
/etc/mail/sendmail.cf: O: command not found
/etc/mail/sendmail.cf: O: command not found
/etc/mail/sendmail.cf: O: command not found
/etc/mail/sendmail.cf: O: command not found
/etc/mail/sendmail.cf: O: command not found
/etc/mail/sendmail.cf: O: command not found
/etc/mail/sendmail.cf: O: command not found
/etc/mail/sendmail.cf: O: command not found
/etc/mail/sendmail.cf: O: command not found
/etc/mail/sendmail.cf: O: command not found
/etc/mail/sendmail.cf: O: command not found
/etc/mail/sendmail.cf: Pfirst-class=0: command not found
/etc/mail/sendmail.cf: Pspecial-delivery=100: command not found
/etc/mail/sendmail.cf: Ft/etc/mail/trusted-users: No such file or directory
/etc/mail/sendmail.cf: Troot: command not found
/etc/mail/sendmail.cf: Tdaemon: command not found
/etc/mail/sendmail.cf: Tuucp: command not found
/etc/mail/sendmail.cf: line 502: syntax error near unexpected token `<$g>'
/etc/mail/sendmail.cf: line 502: `H?P?Return-Path: <$g>'
bash-2.03#
You have mail in /var/mail//root
bash-2.03# su
# /usr/lib/sendmail -C./sendmail.cf -v root
hi 141 server
root... Connecting to local...
220 andd141 LMTP ready
>>> LHLO andd141.in.alcatel-lucent.com
250-andd141
250-8BITMIME
250-ENHANCEDSTATUSCODES
250 PIPELINING
>>> MAIL From:<root>
250 2.5.0 ok
>>> RCPT To:<root>
250 2.1.5 ok
>>> DATA
354 go ahead
>>> .
250 2.1.5 root OK
root... Sent
Closing connection to local
>>> QUIT
221 2.0.0 bye
#
but mail has not sent.
Interesting - you didn't answer a single one of the questions I asked.
Since you're playing with sendmail.cf it appears you're using sendmail.
First off: You do not run sendmail.cf by typing it at command line - that is why you got all the "not found" messages. You tried to run it as if it were a script rather than a configuration file. You can ignore all that output due to that.
Second: You did run it the second time and it says it did send. However since I don't know what you were trying to send I can't comment on it.
Third: You're doing things the hard way. If you use something like mail or mailx to send the mail you should then be able to examile /var/log/maillog to see what happened. You can also examine /var/spool/mqueue to see if you're message is still there.
Last edited by MensaWater; 08-20-2009 at 08:45 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.