1754021 Members
8071 Online
108811 Solutions
New Discussion юеВ

sendmail error

 
SOLVED
Go to solution
nightwich
Valued Contributor

Re: sendmail error

I do the test !! ..


ls | sendmail -v praashant.jadhav@gmail.com

And past your /etc/hosts please !!


Regards.
Prashantj
Valued Contributor

Re: sendmail error

Hi,

[HP-UX @ruleccdev]# ls | sendmail -v praashant.jadhav@gmail.com
praashant.jadhav@gmail.com... Connecting to [127.0.0.1] via relay...
220 ahejauniversal.com ESMTP Sendmail @(#)Sendmail version 8.13.3 - Revision 1.003:: HP-UX11.31 - 8th December,2008/8.13.3; Mon, 16 Aug 2010 16:43:56 +0530 (IST)
>>> EHLO rahejauniversalrahejauniversal.com
250-ahejauniversal.com Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> VERB
250 2.0.0 Verbose mode
>>> MAIL From: SIZE=2415
553 5.1.8 ... Domain of sender address root@rahejauniversalrahejauniversal.com does not exist
root... Using cached ESMTP connection to [127.0.0.1] via relay...
>>> RSET
250 2.0.0 Reset state
>>> MAIL From:<> SIZE=3439
250 2.1.0 <>... Sender ok
>>> RCPT To:
>>> DATA
250 2.1.5 ... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
050 ... Connecting to [192.168.0.6] via relay...
050 220 krumail.KRAHEJA.INFO Microsoft ESMTP MAIL Service ready at Mon, 16 Aug 2010 16:45:54 +0530
050 >>> EHLO ahejauniversal.com
050 250-krumail.KRAHEJA.INFO Hello [192.168.3.62]
050 250-SIZE 10485760
050 250-PIPELINING
050 250-DSN
050 250-ENHANCEDSTATUSCODES
050 250-STARTTLS
050 250-AUTH
050 250-8BITMIME
050 250-BINARYMIME
050 250-CHUNKING
050 250 XEXCH50
050 >>> MAIL From:<> SIZE=5009
050 250 2.1.0 Sender OK
050 >>> RCPT To:
050 >>> DATA
050 250 2.1.5 Recipient OK
050 354 Start mail input; end with .
050 >>> .
050 250 2.6.0 <201008161113.o7GBDobO019897@rahejauniversalrahejauniversal.com> Queued mail for delivery
050 ... Sent (<201008161113.o7GBDobO019897@rahejauniversalrahejauniversal.com> Queued mail for delivery)
250 2.0.0 o7GBDuXI019904 Message accepted for delivery
root... Sent (o7GBDuXI019904 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 ahejauniversal.com closing connection

# cat /etc/hosts
# @(#)B.11.31_LRhosts $Revision: 1.9.214.1 $ $Date: 96/10/08 13:20:01 $
#
# The form for each entry is:
#
#
# For example:
# 192.1.2.34 hpfcrm loghost
#
# See the hosts(4) manual page for more information.
# Note: The entries cannot be preceded by a space.
# The format described in this file is the correct format.
# The original Berkeley manual page contains an error in
# the format description.
#
192.168.3.62 ruleccdev rahejauniversal.com
192.168.3.61 mpruleccdev
127.0.0.1 ruleccdev
127.0.0.1 localhost loopback
192.168.0.6 exchange server krumail.kraheja.info
192.168.0.1 gateway
192.168.0.12 DNS krumumbai.kraheja.info
192.168.0.7 DNS krudc1.kraheja.info
Good judgment comes from experience and experience comes from bad judgment.
nightwich
Valued Contributor

Re: sendmail error

This is strange you are connecting to your local host and not to your relay server ( 192.168.0.6 ).


Try to comment the line : Dj$rahejauniversal.com

And restart sendmail.

Also put the output of the following command:

nslookup www.google.pt.
ls | sendmail -v xxx@gmail.com


I still do not understand if you have a coorect setup for your DNS.

Regards.
Prashantj
Valued Contributor

Re: sendmail error

Hi,
I commented the line

OUTPUT file

[HP-UX @ruleccde]# nslookup www.google.pt.
Using /etc/hosts on: ruleccde

looking up FILES
*** No address information is available for "www.google.pt."
[HP-UX @ruleccde]# ls | sendmail -v praashant.jadhav@gmail.com
praashant.jadhav@gmail.com... Connecting to [127.0.0.1] via relay...
220 rahejauniversal.com ESMTP Sendmail @(#)Sendmail version 8.13.3 - Revision 1.003:: HP-UX11.31 - 8th December,2008/8.13.3; Mon, 16 Aug 2010 19:01:32 +0530 (IST)
>>> EHLO rahejauniversalrahejauniversal.com
250-rahejauniversal.com Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> VERB
250 2.0.0 Verbose mode
>>> MAIL From: SIZE=802
553 5.1.8 ... Domain of sender address root@rahejauniversalrahejauniversal.com does not exist
root... Using cached ESMTP connection to [127.0.0.1] via relay...
>>> RSET
250 2.0.0 Reset state
>>> MAIL From:<> SIZE=1826
250 2.1.0 <>... Sender ok
>>> RCPT To:
>>> DATA
250 2.1.5 ... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
050 ... Connecting to [192.168.0.6] via relay...
050 220 krumail.KRAHEJA.INFO Microsoft ESMTP MAIL Service ready at Mon, 16 Aug 2010 19:03:30 +0530
050 >>> EHLO rahejauniversal.com
050 250-krumail.KRAHEJA.INFO Hello [192.168.3.62]
050 250-SIZE 10485760
050 250-PIPELINING
050 250-DSN
050 250-ENHANCEDSTATUSCODES
050 250-STARTTLS
050 250-AUTH
050 250-8BITMIME
050 250-BINARYMIME
050 250-CHUNKING
050 250 XEXCH50
050 >>> MAIL From:<> SIZE=3395
050 250 2.1.0 Sender OK
050 >>> RCPT To:
050 >>> DATA
050 250 2.1.5 Recipient OK
050 354 Start mail input; end with .
050 >>> .
050 250 2.6.0 <201008161331.o7GDVRAX012020@rahejauniversalrahejauniversal.com> Queued mail for delivery
050 ... Sent (<201008161331.o7GDVRAX012020@rahejauniversalrahejauniversal.com> Queued mail for delivery)
250 2.0.0 o7GDVWtC012021 Message accepted for delivery
root... Sent (o7GDVWtC012021 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 rahejauniversal.com closing connection

Prashant
Good judgment comes from experience and experience comes from bad judgment.
nightwich
Valued Contributor

Re: sendmail error

your DNS is not ok.

It only search in the /etc/hosts file:

nslookup slhoud give you somethink like this:

root@porsxxx:/etc/mail# nslookup www.google.pt.
Name Server: your_dns_server
Address: ip_of_dns_server

Trying DNS
Non-authoritative answer:
Name: www.l.google.com
Addresses: 209.85.229.104, 209.85.229.147, 209.85.229.99
Aliases: www.google.pt, www.google.com


Good luck.
Prashantj
Valued Contributor

Re: sendmail error

Hi,

ohhh.. still not working

# cat /etc/resolv.conf
domain ruleccde.rahejauniversal.com
192.168.0.12
192.168.0.7
4.2.2.2

Also find attached file contained below metnion output.

ls -ld /var/spool/mqueue
cat /etc/hosts
cat /etc/mail/sendmail.cf
cat /etc/mail/sendmail.cw
cat /etc/mail/submit.cf
cat /etc/mail/aliases
cat /etc/mail/access
cat /etc/rc.config.d/netconf
cat /etc/nsswitch.conf
cat /etc/resolv.conf
tail -f /var/adm/syslog/mail.log
sendmail -v prashant.jadhav@rahejauniversal.com < /etc/profile

Prashant

Good judgment comes from experience and experience comes from bad judgment.
Prashantj
Valued Contributor

Re: sendmail error

Hi nightwich,

Thanks for your support
Good judgment comes from experience and experience comes from bad judgment.