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 10-29-2009, 10:08 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,462
Blog Entries: 6

Rep: Reputation: 51
Sendmail Issue ?


I have a dial-up connection and my Laptop is running Sendmail.I performed the following step:

Code:
DAEMON_OPTIONS ('Port=smtp,Addr=127.0.0.1,Name=MTA')dnl
Ran m4 and restarted the sendmail service.

When I am attempting the send mail to my Gmail account:
It shows:

Code:
[root@localhost mail]# m4 sendmail.mc  > sendmail.cf
[root@localhost mail]# service sendmail restart
Shutting down sm-client:                                   [  OK  ]
Shutting down sendmail:                                    [  OK  ]
Starting sendmail:                                         [  OK  ]
Starting sm-client:                                        [  OK  ]
[root@localhost mail]# echo "hello" | mail -v -s "hi" ajeetraina@gmail.com
ajeetraina@gmail.com... Connecting to [127.0.0.1] via relay...
220 localhost.localdomain ESMTP Sendmail 8.14.3/8.14.3; Fri, 30 Oct 2009 02:00:31 +0530
>>> EHLO localhost.localdomain
250-localhost.localdomain Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5
250-DELIVERBY
250 HELP
>>> MAIL From:<root@localhost.localdomain> SIZE=215 AUTH=root@localhost.localdomain
250 2.1.0 <root@localhost.localdomain>... Sender ok
>>> RCPT To:<ajeetraina@gmail.com>
>>> DATA
250 2.1.5 <ajeetraina@gmail.com>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 n9TKUVJJ003191 Message accepted for delivery
ajeetraina@gmail.com... Sent (n9TKUVJJ003191 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 localhost.localdomain closing connection
Code:
1:54:05 localhost sm-msp-queue[3114]: starting daemon (8.14.3): queueing@01:00:00
Oct 30 02:00:16 localhost sendmail[3176]: starting daemon (8.14.3): SMTP+queueing@01:00:00
Oct 30 02:00:16 localhost sm-msp-queue[3185]: starting daemon (8.14.3): queueing@01:00:00
Oct 30 02:00:31 localhost sendmail[3190]: n9TKUVT4003190: from=root, size=215, class=0, nrcpts=1, msgid=<200910292030.n9TKUVT4003190@localhost.localdomain>, relay=root@localhost
Oct 30 02:00:31 localhost sendmail[3191]: n9TKUVJJ003191: from=<root@localhost.localdomain>, size=477, class=0, nrcpts=1, msgid=<200910292030.n9TKUVT4003190@localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Oct 30 02:00:31 localhost sendmail[3190]: n9TKUVT4003190: to=ajeetraina@gmail.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30215, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (n9TKUVJJ003191 Message accepted for delivery)
The Command mailq says:
Code:
[root@localhost mail]# mailq
		/var/spool/mqueue (1 request)
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
n9TKUVJJ003191        6 Fri Oct 30 02:00 <root@localhost.localdomain>
                 (Deferred: 421-4.7.0 [117.192.225.251] Our system has detecte)
					 <ajeetraina@gmail.com>
		Total requests: 1
[root@localhost mail]#
Any idea how can i make it work?
 
Old 10-29-2009, 10:28 AM   #2
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,462
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Nmap output says:

Code:
[root@localhost ~]# nmap -vv localhost

Starting Nmap 5.00 ( http://nmap.org ) at 2009-10-30 02:28 IST
NSE: Loaded 0 scripts for scanning.
Warning: Hostname localhost resolves to 2 IPs. Using 127.0.0.1.
Initiating SYN Stealth Scan at 02:28
Scanning localhost (127.0.0.1) [1000 ports]
Discovered open port 111/tcp on 127.0.0.1
Discovered open port 25/tcp on 127.0.0.1
Discovered open port 22/tcp on 127.0.0.1
Discovered open port 631/tcp on 127.0.0.1
Discovered open port 10000/tcp on 127.0.0.1
Completed SYN Stealth Scan at 02:28, 0.07s elapsed (1000 total ports)
Host localhost (127.0.0.1) is up (0.000018s latency).
Scanned at 2009-10-30 02:28:12 IST for 0s
Interesting ports on localhost (127.0.0.1):
Not shown: 995 closed ports
PORT      STATE SERVICE
22/tcp    open  ssh
25/tcp    open  smtp
111/tcp   open  rpcbind
631/tcp   open  ipp
10000/tcp open  snet-sensor-mgmt

Read data files from: /usr/share/nmap
Nmap done: 1 IP address (1 host up) scanned in 0.14 seconds
           Raw packets sent: 1000 (44.000KB) | Rcvd: 2005 (84.220KB)
[root@localhost ~]#
 
  


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
Sendmail Issue? your_shadow03 Linux - Server 16 12-17-2008 09:31 AM
Sendmail issue (did not issue MAIL/EXPNVRFY/ETRN ...) Blackout_08 Linux - Server 0 08-08-2007 01:10 PM
Sendmail issue jaga_thiru Linux - Enterprise 2 05-29-2007 07:42 PM
sendmail issue kartthikr Linux - Software 3 11-18-2006 07:12 AM
sendmail issue archangel Linux - Networking 1 11-13-2002 05:14 AM


All times are GMT -5. The time now is 01:10 AM.

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