Hi All,
i am using mail command to send email but it is not working properly.can any1 help me please?
command --> mail -s "test"
id@domain.com </u/mail.txt
in mail.txt i have written "this is a test email"
Now following is what i get in
/var/log/maillog
Dec 16 22:01:56 test sendmail[17526]: mBGH1urM017526: from=root, size=43, class=0, nrcpts=1, msgid=<200812161701.mBGH1urM017526@test.domain.com>, relay=root@localhost
Dec 16 22:01:57 test sendmail[17527]: mBGH1uOq017527: from=<root@test.domain.com>, size=343, class=0, nrcpts=1, msgid=<200812161701.mBGH1urM017526@test.domain.com>, proto=ESMTP, daemon=MTA, relay=test.domain.com [127.0.0.1]
Dec 16 22:01:57 test sendmail[17526]: mBGH1urM017526: to=id@domain.com, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30043, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (mBGH1uOq017527 Message accepted for delivery)
Dec 16 22:01:59 test sendmail[17529]: STARTTLS=client, relay=mx1.emailsrvr.com., version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
Dec 16 22:02:00 test sendmail[17529]: mBGH1uOq017527: to=<id@domain.com>, delay=00:00:03, xdelay=00:00:03, mailer=esmtp, pri=120343, relay=mx1.emailsrvr.com. [66.216.118.81], dsn=5.1.8,
stat=Service unavailable
Dec 16 22:02:00 test sendmail[17529]: mBGH1uOq017527: mBGH20Oq017529:
DSN: Service unavailable
Dec 16 22:02:00 test sendmail[17529]: mBGH20Oq017529: to=<root@test.domain.com>, delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=31568, relay=test.domain.com. [192.168.0.86], dsn=4.0.0, stat=Deferred:
Connection refused by test.domain.com.
i am unable to understand that y Service is unavailable. Sendmail service is up and running.
how can i fix this issue? where i am doing wrong...
Thanks,
Champ.