LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 08-14-2009, 08:31 AM   #1
malli42108
Member
 
Registered: Jul 2009
Posts: 37

Rep: Reputation: 15
mailq is not working in my server?


hi,
i am working on 172.21.128.141 server for PERT concept.
but in this server mailq is not working. how to configure this server?
 
Old 08-14-2009, 08:42 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
What distro?
What version of the distro?
What mail program are you using?
What errors are you getting?
 
Old 08-20-2009, 02:17 AM   #3
malli42108
Member
 
Registered: Jul 2009
Posts: 37

Original Poster
Rep: Reputation: 15
mail not send?

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.

how to resolve this?
 
Old 08-20-2009, 06:54 AM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix mailq abiye Linux - Software 4 01-25-2007 09:42 AM
sorting Mailq matt1982 Linux - Networking 0 11-03-2006 10:36 AM
mailq clearing mnauta Linux - General 0 04-12-2005 07:34 PM
I/O Error on mailq? gigi Linux - Software 0 04-14-2004 11:31 PM
Qmail - Mailq R4z0r Linux - Software 0 01-14-2004 02:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration