Mail sending


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Mail sending
# 8  
Old 09-18-2007
Mail sending

Dear sanjay,
there is no such info regarding pankaj.choudhury@tcs.com.i think it means its not performing the job of mail sending

thnx,
regards,
pankaj
# 9  
Old 09-18-2007
Hammer & Screwdriver

Humm

Then check there any mail logs directory within /var/log directory.
might be you have seprate log directory for the maillog.

and send me the output of given command

1:- chkconfig --list | grep mail
# 10  
Old 09-18-2007
Mail Sending

Daer sanjay,
please go through this

Sep 18 16:01:51 TDM sendmail[27979]: l8IAVmpj027977: l8IAVppj027979: DSN: Data format error
Sep 18 16:01:52 TDM sendmail[27979]: l8IAVppj027979: to=<tdmscrdr@TDM>, delay=00:00:01, mailer=local, pri=31347, dsn=4.4.3, s
Sep 18 16:02:51 TDM sendmail[27997]: My unqualified host name (TDM) unknown; sleeping for retry
Sep 18 16:04:22 TDM sendmail[27997]: unable to qualify my own domain name (TDM) -- using short name
Sep 18 16:04:22 TDM sendmail[27997]: l8IAYMR0027997: from=tdmscrdr, size=70, class=0, nrcpts=1, msgid=<200709181034.l8IAYMR00
mscrdr@localhost
Sep 18 16:04:54 TDM sendmail[28150]: l8IAYNpj028150: from=<tdmscrdr@TDM>, size=323, class=0, nrcpts=1, msgid=<200709181034.l8
roto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Sep 18 16:04:54 TDM sendmail[27997]: l8IAYMR0027997: to=pankaj.choudhury@tcs.com, ctladdr=tdmscrdr (504/500), delay=00:00:32,
iler=relay, pri=30070, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l8IAYNpj028150 Message accepted for delivery)
Sep 18 16:04:54 TDM sendmail[28175]: STARTTLS=client, relay=inkolg01.tcs.com., version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-R
256/256
Sep 18 16:04:54 TDM sendmail[28175]: l8IAYNpj028150: to=<pankaj.choudhury@tcs.com>, ctladdr=<tdmscrdr@TDM> (504/500), delay=0
0:00, mailer=esmtp, pri=30323, relay=inkolg01.tcs.com. [172.18.18.26], dsn=5.6.0, stat=Data format error
Sep 18 16:04:54 TDM sendmail[28175]: l8IAYNpj028150: l8IAYspj028175: DSN: Data format error
Sep 18 16:04:54 TDM sendmail[28175]: l8IAYspj028175: to=<tdmscrdr@TDM>, delay=00:00:00, mailer=local, pri=31347, dsn=4.4.3, s
Sep 18 16:25:05 TDM sendmail[29130]: My unqualified host name (TDM) unknown; sleeping for retry
Sep 18 16:26:36 TDM sendmail[29130]: unable to qualify my own domain name (TDM) -- using short name
Sep 18 16:26:36 TDM sendmail[29130]: l8IAuaaX029130: from=tdmscrdr, size=76, class=0, nrcpts=1, msgid=<200709181056.l8IAuaaX0
mscrdr@localhost
Sep 18 16:27:08 TDM sendmail[29203]: l8IAubpj029203: from=<tdmscrdr@TDM>, size=329, class=0, nrcpts=1, msgid=<200709181056.l8
roto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Sep 18 16:27:08 TDM sendmail[29130]: l8IAuaaX029130: to=pankaj.choudhury@tcs.com, ctladdr=tdmscrdr (504/500), delay=00:00:32,
iler=relay, pri=30076, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l8IAubpj029203 Message accepted for delivery)
Sep 18 16:27:10 TDM sendmail[29223]: STARTTLS=client, relay=indelg01.tcs.com., version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-R
256/256
Sep 18 16:27:11 TDM sendmail[29223]: l8IAubpj029203: to=<pankaj.choudhury@tcs.com>, ctladdr=<tdmscrdr@TDM> (504/500), delay=0
0:03, mailer=esmtp, pri=30329, relay=indelg01.tcs.com. [157.227.246.120], dsn=5.6.0, stat=Data format error
Sep 18 16:27:11 TDM sendmail[29223]: l8IAubpj029203: l8IAvBpj029223: DSN: Data format error
Sep 18 16:27:11 TDM sendmail[29223]: l8IAvBpj029223: to=<tdmscrdr@TDM>, delay=00:00:00, mailer=local, pri=31353, dsn=4.4.3, s

Thnx
Regards,
pankaj
# 11  
Old 09-18-2007
Got IT and I think It will fix the Issue

Find out your ip address of your system by using "ifconfig" command
then find out your host name by using "hostname" command

#ifconfig<whatever the ip address> example
172.17.21.23
#hostname
< what ever the out will come > Example
tdm

then Just edit your /etc/hosts file
127.0.0.1 localhost tcs.com
127.0.0.1 localhost.localdomain localhost
172.17.21.23 tdm.tcs.com tdm TDM

----------------------------------------------
Let me explain you

this error appears to be caused in several ways, most related to DNS
name service. A few:
1. if your sending machine does not have it's own name/IPaddress in
its /etc/hosts file, it will cause the upstream target/relay host
to reject the message with something which means: "I don't know who
you are". The sending MTA sendmail then issues the error in the
maillog "...dsn=5.6.0 stat=Data Format Error". The fix for this is
to have a correct /etc/hosts; like so why i asked you to ediet the /etc/hosts file

And I am 100 % sure it will work for you

!!!BINGO!!!!!!!!

~~~Sanjay Tripathi ~~~~

Last edited by SanjayLinux; 09-18-2007 at 08:52 AM.. Reason: Just want much more explaination
# 12  
Old 09-18-2007
Mail sending

Dear Sanjay
i have done as u suggested.plz look into that...i have mail u the logs nd all the things...and plz suggest me

regards,
thanx
pankaj
# 13  
Old 09-19-2007
Mial sending

Dear sanjay,
can u plz help me out? as u suggested i have sone the same
ip address is 172.12.181.187
hostname is TDM

plz suggest me.
do i need to configure anything else? something like mailconfig?
every time i'm getting from the /var/log/maillog is

Sep 19 10:09:08 TDM sendmail[10486]: l8ICRapj002154: to=<tdmscrdr@TDM.tcs.com>, delay=16:11:32, xdelay=00:00:00, mailer=esmtp, pri=1561377, relay
=tdm.tcs.com., dsn=4.0.0, stat=Deferred: Connection refused by tdm.tcs.com.

why this connection is refused?

plz reply

thanx,
regards,
pankaj
# 14  
Old 09-19-2007
Hammer & Screwdriver

I checked the logs provided by you.
It seems to me you didn't configured your sendmail proeprly.
Do the following steps.

you need to edit the /etc/mail/sendmail.mc file. There you need to search line "dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')"
and then delete dnl. Now this line should be DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')
Save it and exit. Then you need to run below given command.

# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
Then restart your sendmail service.

# service sendmail restart

or

# /etc/init.d/sendmail restart

Now you will able to send the mail from your system.



Thanks

Sanjay Tripathi
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Problems sending mail: Difference between Mail and Mailx?

Whats the difference between mail and mailx? I'm trying to troubleshoot a problem where I can send mail from server A with this `echo $MESSAGE | mail -s "$SUBJECT" -r $FROM $RECIPIENTS` command but executing the same command from server B throws me this error (Both servers are RHEL) ... (1 Reply)
Discussion started by: RedSpyder
1 Replies

2. UNIX for Dummies Questions & Answers

Sending mail

How can i send a mail when user login in unix ENV. How can i know present use mailID?? Moved out of Contact Us Forum - Please Do Not Post Technical Questions in Non-Technical Forum(s) (1 Reply)
Discussion started by: arun508.gatike
1 Replies

3. Shell Programming and Scripting

Sending Mail

Hi All, I have a script that looks like this: *********** #!/bin/sh -x cd /u01/app/oracle/diag/rdbms/spdb/spdb/trace cat alert_spdb.log|grep Archiver >/dev/null if ; then mailx -s "Archiver message in Alert log" user@email.com fi ************ Im using the -x option to see any... (1 Reply)
Discussion started by: oradba888
1 Replies

4. Shell Programming and Scripting

Stop sending mail after certain number of mail

Hi guys... I am busy writing a script to notify me via an mail if my application is down. I have done that. Now I want this script to stop sending mails after five mails were sent but the script should keep on checking the application. When the application is up again that count should be... (5 Replies)
Discussion started by: Phuti
5 Replies

5. Shell Programming and Scripting

Sending mail

Hi there, How can I send the automated log file, daily at 7 am to the respective mail . Thanks in Advance, Neha (2 Replies)
Discussion started by: NehaKrish
2 Replies

6. UNIX for Dummies Questions & Answers

sending mail

i want to send an email from the unix machine to the windows machine. now windows dont have any specified folder for the mail. mail has to be sent to the email-id like abc@xyz.com unix machine itself can not directly send mail. it has to be transferred via mail server. (11 Replies)
Discussion started by: parmeet
11 Replies

7. Ubuntu

help sending mail

Hi, I have kubuntu 8.10 and I would like to configure Ubuntu to can send mail from command line with mailx. I've saw that I need to install a MTA. But I don't know with install and how. Do you know some howto or url where I find how could I configure it? Many thanks and sorry for my... (2 Replies)
Discussion started by: mierdatuti
2 Replies

8. HP-UX

hp ux not sending mail

Hi.. In Hp ux box,, mails are not being sent. they are getting queued up in mail queue. (3 Replies)
Discussion started by: kkhan
3 Replies

9. UNIX for Advanced & Expert Users

sending mail

How do I send an email with a subject and an attachment from a command prompt? (3 Replies)
Discussion started by: mskarica
3 Replies

10. UNIX for Dummies Questions & Answers

sending a mail to a mail client

Hi everyone! I'm trying to create a database monitoring script that reads an alert file and sends an error message if it can 'grep' a particular string. Is there a way to send this message to a mail client using SMTP? Even better, is there any place on this site that has these kinds of... (5 Replies)
Discussion started by: solaris73
5 Replies
Login or Register to Ask a Question