Unable to send mail - but no errors found :-(


 
Thread Tools Search this Thread
Operating Systems Linux Unable to send mail - but no errors found :-(
# 1  
Old 01-19-2006
Question Unable to send mail - but no errors found :-(

Hi Guys

I am using this version of Linux box (as shown below). I am unable to send email from the box. But I am not getting any errors while sending email. Smilie

Any idea what could be the reason? What entry should I check? Smilie

$ uname -a
Linux machine-name 2.4.21-144-smp4G #1 SMP Fri Nov 14 00:07:01 UTC 2003 i686 i686 i386 GNU/Linux

Thanks
CSaha
# 2  
Old 01-20-2006
Are you trying to send mail out from the box or just locally? Which MTA are you using? Postfix? Sendmail? Exim?

Cheers
ZB
# 3  
Old 01-24-2006
I am trying to send mail outside / in inernet email ids.

I think we are using sendmail... because I found this

$ ps -ef | grep mail
ixsdk 2998 1693 0 Jan20 ? 00:00:00 /usr/sbin/sendmail -FCronDaemon -odi -oem ixsdk

Not sure why mails are not going outside. I m becoming mad.

Another mail problem
=========================
Recently one more server stopped sending mails (it was sending mails earlier), no sure why :-(

But I see this in the ps -ef command

$ ps -ef | grep mail
root 807 1 0 2005 ? 00:00:19 sendmail: accepting connections
smmsp 816 1 0 2005 ? 00:00:01 sendmail: Queue runner@01:00:00

Need help ....

Thanks a lot to all
# 4  
Old 01-25-2006
try sending mail with -v

type a message, followed by a "." to end

$ whereis sendmail
sendmail: /usr/sbin/sendmail /etc/sendmail.cf /etc/sendmail.cf-ORIG /etc/sendmail.cw /etc/sendmail.mc /usr/lib/sendmail /usr/man/man8/sendmail.8.gz

$ /usr/sbin/sendmail -v mr_manny@emailaddy.com
this is a test
.
mr_manny@emailaddy.com... Connecting to mx1.emailaddy.com. via esmtp...
220 bay0-mc1-f18.bay0.emailaddy.com Sending unsolicited commercial or bulk e-mail to Microsoft's computer network is prohibited. Other restrictions are found at http://privacy.msn.com/Anti-spam/. Violations will result in use of equipment located in California and other states. Wed, 25 Jan 2006 07:29:57 -0800
>>> EHLO sendingSERVER.domain.com
250-bay0-mc1-f18.bay0.emailaddy.com (3.1.0.18) Hello [63.151.181.253]
250-SIZE 29696000
250-PIPELINING
250-8bitmime
250-BINARYMIME
250-CHUNKING
250-AUTH LOGIN
250-AUTH=LOGIN
250 OK
>>> MAIL From:<user@sendingSERVER.domain.com> SIZE=15
250 user@sendingSERVER.domain.com....Sender OK
>>> RCPT To:<mr_manny@emailaddy.com>
250 mr_manny@emailaddy.com
>>> DATA
354 Start mail input; end with <CRLF>.<CRLF>
>>> .
250 <200601251529.k0PFTrV28437@sendingSERVER.domain.com> Queued mail for delivery
mr_manny@emailaddy.com... Sent ( <200601251529.k0PFTrV28437@sendingSERVER.domain.com> Queued mail for delivery)
Closing connection to mx1.emailaddy.com.
>>> QUIT
221 bay0-mc1-f18.bay0.emailaddy.com Service closing transmission channel
# 5  
Old 01-27-2006
I am not getting the kind of output I should be getting as per your post

csaha@myserver:~> /usr/sbin/sendmail -v csaha@my-mail-domain.com
test
.
csaha@myserver:~>
# 6  
Old 01-31-2006
maybe 'mailq' shows you the current queue state with some information on possibly errors
# 7  
Old 02-03-2006
this maybe a dumb question, but do you have sendmail installed?

I use rpms:
[root@server user]# rpm -qa | grep sendmail
sendmail-8.11.6-1.62.3

your sendmail deamon does NOT need to be active for sending mail:
Code:
[root@server user]# /sbin/chkconfig --list | grep mail    
sendmail        0:off   1:off   2:on    3:on    4:on    5:on    6:off

is it active:
[root@server user]# ps -ef | grep mail
UID PID PPID C STIME TTY TIME COMMAND

root 1271 1 0 Jan05 ? 00:00:02 sendmail: accepting connections

where is it?
[root@server user]# whereis sendmail
sendmail: /usr/sbin/sendmail /etc/sendmail.cf /etc/sendmail.cf-ORIG /etc/sendmail.cw /etc/sendmail.mc /usr/lib/sendmail /usr/man/man8/sendmail.8.gz


edit: just saw your other thread on sendmail install...

Last edited by RTM; 02-03-2006 at 05:27 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Unable to send mail with 'mail' command

I am unable to cause the 'mail' command to send mail from my linux ubuntu 15.10 computer. File 'mail.log' typically reports Connection timed out. I issue the command: mail -s "my subject" recipient@domain.com < filenamewhere filename is a file containing my message. Specifically, the... (3 Replies)
Discussion started by: tcnm
3 Replies

2. Shell Programming and Scripting

Unable to send mail

Hi friends I am trying to send mail through a unix server. I am using following command mailx -s "THIS IS TEST" jhon@gmail.com Whenever i am typing the above command it is going to next line when i press @ on unix server prompt. so it is taking this command as following mailx -s "THIS... (3 Replies)
Discussion started by: Nakul_sh
3 Replies

3. Solaris

Unable to send mail through mailx

Hi, I am using solaris 5.9 OS and I am facing an issues with mailx. My SMTP port is configured to listen 6190 and not the default one which is 25. I can send mail to my inbox when i do it manually through the following steps root@<dbname> # telnet 15.12.88.10 6190 Trying 15.12.88.10...... (0 Replies)
Discussion started by: Srinathkiru
0 Replies

4. AIX

Unable to send mail.. Need experts Help..

i'm having accounts in 2 servers..1 is a AIX server and other is solaris..both are under same domain,say a.X.com and b.X.com.. from my solaris account i'm able to send mails to any ids.. but in case of my Aix account i'm just able to receive mails tat too either from other accounts in the same AIX... (1 Reply)
Discussion started by: kannangce
1 Replies

5. Shell Programming and Scripting

How to automatically send a mail alert if the script errors out

I have a script like this, which calls other scripts from that script: #!/usr/ksh moveFiles.sh extract.sh readfile=/home/sample.txt cat $readfile | while read line do file= `echo $line|awk '{print $4}'` if ; then mv $file /home/temp_stage fi (4 Replies)
Discussion started by: ss3944
4 Replies

6. Solaris

Unable to send mail

hi all i got two server, mercury and procyon mercury can send email but procyon cannot below is their syslog mercury: Jul 6 13:17:17 mercury sendmail: n665HGXg006886: to =<leecw@domain.com>, ctladdr=<ora10g@mercury.domain.com> (4001/101), d elay=00:00:01, xdelay=00:00:01,... (7 Replies)
Discussion started by: SmartAntz
7 Replies

7. Solaris

Unable to send mail

Hey guys i got this error my logs - I ping 127.0.0.1 and it says that its alive - I checked sendmail and it is running - I tried to send a test email but nothing happens it seems that it hangs - What is the possible cause of this? (5 Replies)
Discussion started by: sbn
5 Replies

8. Shell Programming and Scripting

Unable to send a mail

Hi, I have been trying to send a mail from a remote site using this script To send the mail: #!/bin/ksh MAILTO="abc@xyz.com" BACKUPDIR="/wls_domains/wli81_1/RHTEAM/OUTPUTBACKUP/" #BACKUPDIR="../OUTPUTBACKUP/" while ; do print $1 uuencode $1 $1 | mail $MAILTO ... (3 Replies)
Discussion started by: monicaminj2000
3 Replies

9. AIX

unable to send mail

hi, I have tried this code to send mail.Its not giving me error but I am not receiving mail also. #!/bin/ksh echo "The first mail" >msg cnt=`cat /dir1/msg | wc -l` if then mail -s "Hello" abc.xyz@domain.com < msg fi I have also tried with the command mailx -s "hello"... (0 Replies)
Discussion started by: monika
0 Replies

10. Solaris

unable to send mail?

i am trying to execute the below script for sending mails from unix MAIL1="xyz@yahoo.com" mailx -s "hi" $MAIL1<message.txt if then echo "failure" else echo "success" fi but iam unable to send this eventhough iam getting success in the output if i logout and login i have a "you... (1 Reply)
Discussion started by: shahnazurs
1 Replies
Login or Register to Ask a Question