LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mailq is not working in my server? (https://www.linuxquestions.org/questions/linux-newbie-8/mailq-is-not-working-in-my-server-747524/)

malli42108 08-14-2009 08:31 AM

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?

MensaWater 08-14-2009 08:42 AM

What distro?
What version of the distro?
What mail program are you using?
What errors are you getting?

malli42108 08-20-2009 02:17 AM

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?

MensaWater 08-20-2009 06:54 AM

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.


All times are GMT -5. The time now is 06:43 PM.