1828933 Members
2165 Online
109986 Solutions
New Discussion

Re: sendmail error

 
SOLVED
Go to solution
Prashantj
Valued Contributor

Re: sendmail error

Hi,

OUTPUT

# ping krumail.kraheja.info
PING exchange: 64 byte packets
64 bytes from 192.168.0.6: icmp_seq=0. time=0. ms
64 bytes from 192.168.0.6: icmp_seq=1. time=0. ms
64 bytes from 192.168.0.6: icmp_seq=2. time=0. ms
64 bytes from 192.168.0.6: icmp_seq=3. time=0. ms
64 bytes from 192.168.0.6: icmp_seq=4. time=0. ms
64 bytes from 192.168.0.6: icmp_seq=5. time=0. ms
64 bytes from 192.168.0.6: icmp_seq=6. time=0. ms

----exchange PING Statistics----
7 packets transmitted, 7 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/0
# ping 192.168.0.6
PING 192.168.0.6: 64 byte packets
64 bytes from 192.168.0.6: icmp_seq=0. time=0. ms
64 bytes from 192.168.0.6: icmp_seq=1. time=0. ms
64 bytes from 192.168.0.6: icmp_seq=2. time=0. ms
64 bytes from 192.168.0.6: icmp_seq=3. time=0. ms
64 bytes from 192.168.0.6: icmp_seq=4. time=0. ms
64 bytes from 192.168.0.6: icmp_seq=5. time=0. ms
64 bytes from 192.168.0.6: icmp_seq=6. time=0. ms

----192.168.0.6 PING Statistics----
7 packets transmitted, 7 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/0
[HP-UX @ruleccdev]# ping 192.168.0.1
PING 192.168.0.1: 64 byte packets
64 bytes from 192.168.0.1: icmp_seq=0. time=0. ms
64 bytes from 192.168.0.1: icmp_seq=1. time=0. ms
64 bytes from 192.168.0.1: icmp_seq=2. time=0. ms
64 bytes from 192.168.0.1: icmp_seq=3. time=0. ms
64 bytes from 192.168.0.1: icmp_seq=4. time=0. ms

----192.168.0.1 PING Statistics----
5 packets transmitted, 5 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/0
#
Good judgment comes from experience and experience comes from bad judgment.
nightwich
Valued Contributor

Re: sendmail error

Ok so no problem with network


put the output of the following


#cd /etc/mail
#grep -i DS sendmail.cf

#mailq

Regards
Prashantj
Valued Contributor

Re: sendmail error

Hi,

[HP-UX @ruleccdev]# grep -i DS sendmail.cf
##### in /ux/inet3/inet3isu/Sendmail/Sendmail-8.13.1/cmnds/src/cf/cf
##### environment may be needed. HP recommends that #####
# o UseTLS : Enable the TLS handshake in the SMTP transaction. (True/False) #
# to users at the clients. You could have nameserver MX records #
# database rebuilds, and various errors. More detailed information #
# Try hosts with no MX records (option TryNullMXList): #
# Sendmail always tries to lookup MX records for the destination host #
# number). If there are no MX records listed for the host or we are #
# Relay all non-local mail to the "Smart" relay host (DS) via smtp: #
# to a smart relay via SMTP just set macro S (DS) to the name of the #
# Relay all non-local mail to the "Smart" relay host (DS) via UUCP: #
# make two chnages to this file. First, set macro S (DS) to the name #
# This needs to be set before any LDAP maps are defined. `localhost' must be #
DSkrumail.kraheja.info
O OldStyleHeaders=True
# noreceipts Don't return success DSN's
# perform initial split of envelope without checking MX records
#O Timeout.queuereturn.dsn=5d
#O Timeout.queuewarn.dsn=4h
# Return-Receipt-To: header implies DSN request
#O RrtImpliesDsn=False
# DHParameters (only required if DSA/DH is used)
RSOFTWARE $#error $@ 4.7.0 $: "403 TLS handshake."
Mdsmtp, P=[IPC], F=mDFMuXa%, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n, L=990,

[HP-UX @ruleccdev]# grep -i DS sendmail.cf
##### in /ux/inet3/inet3isu/Sendmail/Sendmail-8.13.1/cmnds/src/cf/cf
##### environment may be needed. HP recommends that #####
# o UseTLS : Enable the TLS handshake in the SMTP transaction. (True/False) #
# to users at the clients. You could have nameserver MX records #
# database rebuilds, and various errors. More detailed information #
# Try hosts with no MX records (option TryNullMXList): #
# Sendmail always tries to lookup MX records for the destination host #
# number). If there are no MX records listed for the host or we are #
# Relay all non-local mail to the "Smart" relay host (DS) via smtp: #
# to a smart relay via SMTP just set macro S (DS) to the name of the #
# Relay all non-local mail to the "Smart" relay host (DS) via UUCP: #
# make two chnages to this file. First, set macro S (DS) to the name #
# This needs to be set before any LDAP maps are defined. `localhost' must be #
DSkrumail.kraheja.info
O OldStyleHeaders=True
# noreceipts Don't return success DSN's
# perform initial split of envelope without checking MX records
#O Timeout.queuereturn.dsn=5d
#O Timeout.queuewarn.dsn=4h
# Return-Receipt-To: header implies DSN request
#O RrtImpliesDsn=False
# DHParameters (only required if DSA/DH is used)
RSOFTWARE $#error $@ 4.7.0 $: "403 TLS handshake."
Mdsmtp, P=[IPC], F=mDFMuXa%, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n, L=990,
[HP-UX @ruleccdev]# mailq
/var/spool/mqueue (9 requests)
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
o7697e7h024261 0 Fri Aug 6 14:37 root
(host map: lookup (rahejauniversal.com): deferred)
prashant.jadhav@rahejauniversal.com
o76Bf9Bp011173 25 Fri Aug 6 17:11 root
(host map: lookup (rahejauniversal.com): deferred)
prashant.jadhav@rahejauniversal.com
o76Behaj011123 25 Fri Aug 6 17:10 root
(host map: lookup (rahejauniversal.com): deferred)
prashant.jadhav@rahejauniversal.com
o76A4k7N000653 25 Fri Aug 6 15:34 root
(host map: lookup (rahejauniversal.com): deferred)
prashant.jadhav@rahejauniversal.com
o76A2gOq000455 146 Fri Aug 6 15:32 root
(host map: lookup (rahejauniversal.com): deferred)
prashant.jadhav@rahejauniversal.com
o7699ZNb024461 146 Fri Aug 6 14:39 root
(host map: lookup (rahejauniversal.com): deferred)
prashant.jadhav@rahejauniversal.com
o76988ln024314 146 Fri Aug 6 14:38 root
(host map: lookup (rahejauniversal.com): deferred)
prashant.jadhav@rahejauniversal.com
o768sr2X022828 146 Fri Aug 6 14:24 root
(host map: lookup (rahejauniversal.com): deferred)
prashant.jadhav@rahejauniversal.com
o768rSDR022691 146 Fri Aug 6 14:23 root
(host map: lookup (rahejauniversal.com): deferred)
prashant.jadhav@rahejauniversal.com
Total requests: 9


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

Re: sendmail error

ok


know put the output of the following output:



ls | sendmail -v "valid_email_adrress"



Also assign some points to usefull answers ..

Regards.
Prashantj
Valued Contributor

Re: sendmail error

HI,

[HP-UX @ruleccdev]# ls | sendmail -v prashant.jadhav@rahejauniversal.com
rahejauniversal.com: Name server timeout
prashant.jadhav@rahejauniversal.com... Transient parse error -- message queued for future delivery
prashant.jadhav@rahejauniversal.com... queued


Definitely i will assign the points.

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

Re: sendmail error

It seems that the client try to connect to server rahejauniversal.com it makes no sense.


Try to send a email to a generic email as gmail or hotmail.


ls | sendmail -v "valid_email_adrress@gmail.com"


Regards.
Prashantj
Valued Contributor

Re: sendmail error

HI,
It same.

[HP-UX @ruleccdev]# ls | sendmail -v praashant.jadhav@gmail.com
gmail.com: Name server timeout
praashant.jadhav@gmail.com... Transient parse error -- message queued for future delivery
praashant.jadhav@gmail.com... queued

Prashant
Good judgment comes from experience and experience comes from bad judgment.
Steven Schweda
Honored Contributor

Re: sendmail error

> i am not able to ping the mailserver.

> # ping krumail.kraheja.info
> PING exchange: 64 byte packets
> 64 bytes from 192.168.0.6: icmp_seq=0. time=0. ms

When did that change?


> rahejauniversal.com: Name server timeout

Sounds like a DNS problem (now).


> Also assign some points to usefull answers ..

It's easier to identify a useful answer after
the problem has been solved.
nightwich
Valued Contributor

Re: sendmail error

ok.


From your try to do the following:


nslookup www.google.com


Regards
Prashantj
Valued Contributor

Re: sendmail error

Hi,

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

looking up FILES
*** No address information is available for "www.google.com"

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

Re: sendmail error

That is your problem :) .


Your DNS isn't resolving external names ..



Regards.
nightwich
Valued Contributor

Re: sendmail error

you should get something like this:


root@porsxxx:/apps/map/bin/nanium_map/bin# nslookup www.google.com
Name Server: name_of_yourDNS_server
Address: ip_of_the_dns_server

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


Regards
Prashantj
Valued Contributor

Re: sendmail error

HI,

Can u tell me what step to be taken.

Prashant
Good judgment comes from experience and experience comes from bad judgment.
Steven Schweda
Honored Contributor

Re: sendmail error

> Can u tell me what step to be taken.

Configure DNS? Ask your local network
experts what you should be using for a DNS
server, and then use it.
nightwich
Valued Contributor

Re: sendmail error

You need to configure the correct DNS servers in the following file /etc/resolv.conf


example:

cat /etc/resolv.conf

root@porsxxx:/etc# cat /etc/resolv.conf
domain "your_domina_name"
retrans 1000
retry 1
nameserver your_primary_dns_server
nameserver your_slave_dns_server



Regards.
Prashantj
Valued Contributor

Re: sendmail error

Hi,

Sorry for the delay.
/etc/resolv.conf not exists in server.

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

Re: sendmail error

So you need to created.



I already show you one example please configure it adapted to your enviorement.

Then try nslookup www.google.com


Regards.
Prashantj
Valued Contributor

Re: sendmail error

Hi Guru's,

Now i am facing below mention error in
/var/adm/syslog/mail.log

Aug 14 13:37:17 ruleccdev sm-mta[21798]: o7E87Hve021778: to=, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=122937, relay=[192.168.0.6] [192.168.0.6], dsn=2.0.0, stat=Sent (<201008140807.o7E87HL1021755@rahejauniversal.rahejauniversal.com> Queued mail for delivery)

how i change rahejauniversal.rahejauniversal.com to
rahejauniversal.com

Thanks
Prashant
Good judgment comes from experience and experience comes from bad judgment.
Steven Schweda
Honored Contributor

Re: sendmail error

> Now i am facing below mention error [...]

Now I am facing the same old problem of
having no idea what you're doing.
Dennis Handly
Acclaimed Contributor

Re: sendmail error

>how I change rahejauniversal.rahejauniversal.com to
rahejauniversal.com

For that particular message for for all future messages?
You might be able to use the DM macro:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1022415
nightwich
Valued Contributor

Re: sendmail error

Hi again


nslookup www.google.com looks good ??


Regards.
Prashantj
Valued Contributor

Re: sendmail error

Hi Nightwich,

No it's not working fine.
Please post the /etc/resolv.conf file, so i will copy and create the file as it is and configure as per requirement.

Please find my attached file sendmail.cf & test sendmail output.

Below is my mail.log error

Aug 16 15:24:56 ruleccdev sm-mta[11152]: o7G9suGD011147: to=, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=122917, relay=[192.168.0.6] [192.168.0.6], dsn=2.0.0, stat=Sent (<201008160954.o7G9stvN011146@rahejauniversalrahejauniversal.com> Queued mail for delivery)

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

Re: sendmail error

Hi,

Contain of sendmail.cf file.

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

Re: sendmail error

ok

This is a example of what you should have in your resolv.conf.


root@porsxxx:/# cat /etc/resolv.conf
domain "your_domain"
nameserver "ip_of_your_dns_server"
nameserver "ip_of_your_slave_server_of_dns"
root@porsxxx:/#


regards
Prashantj
Valued Contributor

Re: sendmail error

Hi,

[HP-UX @ruleccdev]# vi resolv.conf
domain "rahejauniversal.com"
nameserver 192.168.0.12
nameserver 192.168.0.7

Test mail output

# sendmail -v prashant.jadhav@rahejauniversal.com < /etc/profile
prashant.jadhav@rahejauniversal.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:20:29 +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=2459
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=3483
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:22:26 +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=5167
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 <201008161050.o7GAoT6R017398@rahejauniversalrahejauniversal.com> Queued mail for delivery
050 ... Sent (<201008161050.o7GAoT6R017398@rahejauniversalrahejauniversal.com> Queued mail for delivery)
250 2.0.0 o7GAoTKA017399 Message accepted for delivery
root... Sent (o7GAoTKA017399 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 ahejauniversal.com closing connection


Prashant
Good judgment comes from experience and experience comes from bad judgment.