LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-16-2009, 01:30 AM   #1
RMLinux
Member
 
Registered: Jul 2006
Posts: 260

Rep: Reputation: 37
sendmail not working


Hi keen buddies!

I have problem my web server cannot send email.
I use LAMP. with SSL.

here's the email return to me:

Final-Recipient: RFC822; [email@address]
Action: failed
Status: 5.1.3
Remote-MTA: DNS; smtp.secureserver.net
Diagnostic-Code: SMTP; 553 http://www.spamhaus.org/query/bl?ip=[MY IP IS LISTED]
Last-Attempt-Date: Mon, 16 Feb 2009 10:33:05 +0800

when I use telnet.

[root@localhost log]# telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 localhost.localdomain ESMTP Sendmail 8.13.1/8.13.1; Mon, 16 Feb 2009 14:23:39 +0800

what am I going to do?

any kind of help will be appreciated.

thanx

Last edited by RMLinux; 02-16-2009 at 01:33 AM.
 
Old 02-16-2009, 01:41 AM   #2
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Rep: Reputation: 51
what does the command display:
Code:
#sendmail -bv <recepient name>
Send a full output of this commmand too:
Code:
#echo "hello" | mail -vv <recepient name>
Also,
Code:
#tail -f /var/log/maillog
 
Old 02-16-2009, 02:00 AM   #3
RMLinux
Member
 
Registered: Jul 2006
Posts: 260

Original Poster
Rep: Reputation: 37
Quote:
Originally Posted by your_shadow03 View Post
what does the command display:
Code:
#sendmail -bv <recepient name>
Send a full output of this commmand too:
Code:
#echo "hello" | mail -vv <recepient name>
Also,
Code:
#tail -f /var/log/maillog
Thank a lot "your_shadow03" for your reply

I just change my emailaddress to[myemailaddress@hotmail.com] and the to=<[to@hotmail.com]>.

here's the log.


#sendmail -bv <recepient name>

sendmail -bv [myemailaddress@hotmail.com]
[myemailaddress@hotmail.com]... deliverable: mailer esmtp, host hotmail.com., user [myemailaddress@hotmail.com]



#echo "hello" | mail -vv <recepient name>


[myemailaddress@hotmail.com]... Connecting to [127.0.0.1] via relay...
220 localhost.localdomain ESMTP Sendmail 8.13.1/8.13.1; Mon, 16 Feb 2009 14:47:35 +0800
>>> EHLO localhost.localdomain
250-localhost.localdomain Hello localhost.localdomain [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> MAIL From:<root@localhost.localdomain> SIZE=37
250 2.1.0 <root@localhost.localdomain>... Sender ok
>>> RCPT To:<[myemailaddress@hotmail.com]>
>>> DATA
250 2.1.5 <[myemailaddress@hotmail.com]>... Recipient ok
354 Enter mail, end with "." on a line by itself
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 n1G6lZeQ023370 Message accepted for delivery
[myemailaddress@hotmail.com]... Sent (n1G6lZeQ023370 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 localhost.localdomain closing connection


#tail -f /var/log/maillog

Feb 16 14:30:23 localhost sendmail[23304]: n1D9j8jE016591: to=<[to@hotmail.com]>, ctladdr=<apache@localhost.localdomain> (48/48), delay=2+20:45:15, xdelay=00:00:00, mailer=esmtp, pri=7320704, relay=mail.mydomainwebhost.com., dsn=4.0.0, stat=Deferred: Connection reset by mail.mydomainwebhost.com.
Feb 16 14:30:23 localhost sendmail[23304]: n1D9rfYV016620: to=<[to@hotmail.com]>, ctladdr=<apache@localhost.localdomain> (48/48), delay=2+20:36:42, xdelay=00:00:00, mailer=esmtp, pri=7320710, relay=mail.mydomainwebhost.com., dsn=4.0.0, stat=Deferred: Connection reset by mail.mydomainwebhost.com.
Feb 16 14:30:23 localhost sendmail[23304]: n1D9b90E016492: to=<[to@hotmail.com]>, ctladdr=<apache@localhost.localdomain> (48/48), delay=2+20:53:14, xdelay=00:00:00, mailer=esmtp, pri=7410710, relay=mail.mydomainwebhost.com., dsn=4.0.0, stat=Deferred: Connection reset by mail.mydomainwebhost.com.
Feb 16 14:30:23 localhost sendmail[23304]: n1D7WT6W016037: to=<[to@hotmail.com]>, ctladdr=<apache@localhost.localdomain> (48/48), delay=2+22:57:53, xdelay=00:00:00, mailer=esmtp, pri=7597324, relay=mail.mydomainwebhost.com., dsn=4.0.0, stat=Deferred: Connection reset by mail.mydomainwebhost.com.
Feb 16 14:47:36 localhost sendmail[23369]: n1G6lYVc023369: to=[myemailaddress@hotmail.com], ctladdr=root (0/0), delay=00:00:02, xdelay=00:00:01, mailer=relay, pri=30037, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (n1G6lZeQ023370 Message accepted for delivery)
Feb 16 14:47:39 localhost sendmail[23372]: n1G6lZeQ023370: to=<[myemailaddress@hotmail.com]>, ctladdr=<root@localhost.localdomain> (0/0), delay=00:00:03, xdelay=00:00:03, mailer=esmtp, pri=120342, relay=mx1.hotmail.com. [65.55.37.88], dsn=5.0.0, stat=Service unavailable
Feb 16 14:47:39 localhost sendmail[23372]: n1G6lZeQ023370: n1G6ldeQ023372: DSN: Service unavailable
Feb 16 14:47:40 localhost sendmail[23372]: n1G6ldeQ023372: to=<root@localhost.localdomain>, delay=00:00:01, xdelay=00:00:01, mailer=local, pri=31603, dsn=2.0.0, stat=Sent



when I use nmap.

PORT STATE SERVICE
21/tcp open ftp
22/tcp open ssh
25/tcp open smtp
80/tcp open http
111/tcp open rpcbind
443/tcp open https
631/tcp open ipp
819/tcp open unknown
1521/tcp open oracle
3306/tcp open mysql
8009/tcp open ajp13
8080/tcp open http-proxy
32770/tcp open sometimes-rpc3
32771/tcp open sometimes-rpc5
32772/tcp open sometimes-rpc7

Actually I received the email on my /var/spool/mail/root
it is inside the root file. Is that a bouncing mail?

Last edited by RMLinux; 02-16-2009 at 02:19 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
Changing port in sendmail, sendmail not working. flschou Linux - Newbie 4 01-16-2008 10:03 AM
Sendmail not working quite right kerinism1 Linux - Server 3 09-04-2007 12:50 PM
sendmail is not working & on $prompt the cmd sendmail hangs Pavan mahoorker Linux - Software 1 04-04-2006 04:57 PM
Help Getting Sendmail working Like I want it shilo Slackware 14 06-07-2004 02:34 PM
Sendmail not working at all. EL3CTRO Linux - Networking 13 05-03-2003 07:06 AM


All times are GMT -5. The time now is 02:30 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration