1827800 Members
2303 Online
109969 Solutions
New Discussion

Re: sendmail error

 
SOLVED
Go to solution
Prashantj
Valued Contributor

sendmail error

Hi Guru,

I am not able to send the mail from HP-UX 11.31

# ps -ef | grep -i sendmail
root 1997 1 0 18:04:37 ? 0:00 sendmail: accepting connections

# /sbin/init.d/sendmail stop
Shutting down sendmail [Done]
Sendmail client not running
/sbin/init.d/sendmail start
Starting sendmail [Done]
Mail submission program must have RunAsUser set to non root user
Unable to start sm-client
For more information see /var/adm/syslog/mail.log

Mail log are as below
Aug 9 18:27:02 xxxxxx sm-mta[4594]: o768rSDR022691: to=prashant.jadhav@xxxxx.com, delay=3+04:03:34, mailer=esmt
p, pri=1470209, relay=xxxx.com, dsn=4.4.3, stat=Transient parse error -- message queued for future delivery

Waiting for your reply.

Prashant
-------------------------------------------------------------------------------------------------------
P.S. This thread has been moved from system administration to messaging- Forum Moderator
Good judgment comes from experience and experience comes from bad judgment.
56 REPLIES 56
Steven Schweda
Honored Contributor

Re: sendmail error

> I am not able [...]

Not a useful problem description. What,
exactly, did you do? What, exactly, happened
when you did it?

> [...] relay=xxxx.com, dsn=4.4.3,
> stat=Transient parse error [...]

nslookup xxxx.com

Can you hide any more useful information?


> Waiting for your reply.

Waiting for an accurate problem description.
Prashantj
Valued Contributor

Re: sendmail error

Steven,

while sending the mail from hp-ux with
mailx command, i am facing below mention error.

# mailx -s " Test mail " prashant.jadhav@xxxxx.com
Hello byebye
EOT
# Mail submission program must have RunAsUser set to non root user

Prashant
Good judgment comes from experience and experience comes from bad judgment.
Bhadresh
Trusted Contributor

Re: sendmail error

Hi Prashant,

Can you please check the permissions and ownesrship for following files:
/usr/sbin/sendmail
/var/spool/clientmqueue

Regards,
Bhadresh
Prashantj
Valued Contributor

Re: sendmail error

Hi,

# ls -ld /usr/sbin/sendmail
-r-sr-sr-t 1 root mail 4374956 Dec 9 2008 /usr/sbin/sendmail
/var/spool/clientmqueue - file not avaiable

Prashant
Good judgment comes from experience and experience comes from bad judgment.
Tim Nelson
Honored Contributor

Re: sendmail error

two thoughts.

1) the sendmail daemon does NOT need to be running in order to SEND mail so ignore that for now, it is only for receiving and queue processing.

2) skip the mailx client and use sendmail -v -s test someone@somewhere.com
This is a test mail
EOF

what do you get ?
Prashantj
Valued Contributor

Re: sendmail error

Hi

# sendmail -v -s test prashant.jadhav@xxxx.com
Mail submission program must have RunAsUser set to non root user

# id
uid=0(root) gid=3(sys) groups=0(root),1(other),2(bin),4(adm),5(daemon),6(mail),7(lp),20(users)

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

Re: sendmail error

Dear All,

i am not able to ping the mailserver.

# traceroute xxxx.xxxx.xxx
traceroute to xxxx.xxxx.xx (192.xxx.x.x), 30 hops max, 40 byte packets
1 * * *
2 * *

Waiting for your reply.

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

Re: sendmail error

Hi All,

I am still facing the problem.

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

Re: sendmail error

> I am still facing the problem.

Really? Amazing. Or did you think that any
non-psychic could determine your network
problem from information like this:?

> # traceroute xxxx.xxxx.xxx
> traceroute to xxxx.xxxx.xx (192.xxx.x.x), 30 hops max, 40 byte packets
> [...]

I'd guess that something is wrong somewhere
in your X's.


By the way, I know nothing, but a search for
the error message found this Forum thread,
where someone claimed that it wasn't very
important.

http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1029385
nightwich
Valued Contributor

Re: sendmail error

If you can ping the mail server that is your problem.


know you have to figer out why this is happen.

Please post the nestat -in

And the nslookup mailserver


Regards.
Prashantj
Valued Contributor

Re: sendmail error

Hi,

Thanks for your update.

# netstat -in
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lan0 1500 192.xxx.0.0 192.xxx.x.xx 516246 0 481800 0 0
lo0 32808 127.0.0.0 127.0.0.1 53283 0 53283 0 0

# nslookup kxxxx.krxxxx.info
Using /etc/hosts on: xxxxxx

looking up FILES
Name: exchange
Address: 192.xxx.x.xx
Aliases: server, kxxxx.krxxxx.info

Regards
Prashant

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

Re: sendmail error

> [...]
> lan0 1500 192.xxx.0.0 192.xxx.x.xx 516246 0 481800 0 0
> lo0 32808 127.0.0.0 127.0.0.1 53283 0 53283 0 0
>
> # nslookup kxxxx.krxxxx.info
> Using /etc/hosts on: xxxxxx
>
> looking up FILES
> Name: exchange
> Address: 192.xxx.x.xx
> Aliases: server, kxxxx.krxxxx.info

Well, _that_ explains _everything_. All you
need to do is use the "xxxxx" command, and
edit the file, "xxxx", adding "xxx" where
appropriate (that is, on line "xx", right
after "x").
Prashantj
Valued Contributor

Re: sendmail error

Hi Steven,

Not able to understand u'r reply.

New error in /var/adm/syslogmail.log

Aug 11 13:31:16 (Hostname)sendmail[4298]: o7B81GpR004298: to=prashant.jadhav@xxxxxx.com, delay=00:00:00, mailer=esmt
p, pri=30210, dsn=4.4.3, stat=queued
Good judgment comes from experience and experience comes from bad judgment.
nightwich
Valued Contributor

Re: sendmail error

Hi Prashantj


If you use xxxx in the netsatt -rn or nslookup we can't see the ip and try to undertand the problem.


You must post the output of those commands if you can.


I think you do not post them for security reasons.


But if you do not give that kind of information it's harder to check the problem.

Regards.
Prashantj
Valued Contributor

Re: sendmail error

Hi,

Ok.. i will take care next time.


# netstat -in
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lan0 1500 192.168.0.0 192.168.3.62 960281 0 891217 0 0
lo0 32808 127.0.0.0 127.0.0.1 79726 0 79726 0 0
# nslookup kraheja.info
Using /etc/hosts on: ruleccdev

looking up FILES
Name: ruleccdev
Address: 192.168.3.62
Aliases: kraheja.info


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

Re: sendmail error

> Not able to understand u'r reply.

That's fair. _I_ am not able to understand
how you expect anyone to help with a network
problem when you hide all the useful
information.

> [...] 192.168.0.0 [...]

No one outside your network can get to these
IP addresses. Please stop wasting everyone's
time by hiding information like this.

Now, ...

What are the IP addresses and netmasks on
the HP-UX system and on the system to which
you're trying to send the e-mail?

On the HP-UX system (and on the other system,
depending on what it is):

netstat -rn
nightwich
Valued Contributor

Re: sendmail error

Hi again


Post your nestat -rn from your client.


In the client do a nslookup " name.of.mail.server "

Then do a ping "name.of.mail.server.

Tehn do a ping "ip.of.the.mail.server".

Regards
Prashantj
Valued Contributor

Re: sendmail error

Hi All,

# netstat -rn
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 32808
192.168.3.62 192.168.3.62 UH 0 lan0 32808
192.168.0.0 192.168.3.62 U 2 lan0 1500
127.0.0.0 127.0.0.1 U 0 lo0 32808
default 192.168.0.1 UG 0 lan0 1500

# nslookup 192.168.0.6
Using /etc/hosts on: ruleccdev

looking up FILES
Name: exchange
Address: 192.168.0.6
Aliases: server, krumail.kraheja.info


# nslookup krumail.kraheja.info
Using /etc/hosts on: ruleccdev

looking up FILES
Name: exchange
Address: 192.168.0.6
Aliases: server, krumail.kraheja.info


/etc/rc.config.d/netconf

HOSTNAME="ruleccdev"
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1

INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=192.168.3.62
SUBNET_MASK[0]=255.255.248.0
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0
INTERFACE_MODULES[0]=""


DEFAULT_INTERFACE_MODULES=""
ROUTE_MASK[0]=255.255.248.0
ROUTE_GATEWAY[0]=192.168.0.1
ROUTE_COUNT[0]=1
ROUTE_DESTINATION[0]=default

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

Re: sendmail error

> SUBNET_MASK[0]=255.255.248.0

Unusual, but it could be ok.

So, these are the data for the (HP-UX) system
with IP address 192.168.3.62?

> What are the IP addresses and netmasks on
> the HP-UX system and on the system to which
> you're trying to send the e-mail?

And on the system to which you're trying to
send the e-mail?

A system with IP address 192.168.3.62 and
netmask 255.255.248.0 will think that it's on
the same subnet as a system with IP address
192.168.0.6. We also need to know what the
netmask is on the system whose IP address is
192.168.0.6. (Route information on that
system would also be interesting.) If that
netmask is different from this one, then that
system may not know how to get a reply back
to 192.168.3.62.
Steven Schweda
Honored Contributor

Re: sendmail error

> ROUTE_GATEWAY[0]=192.168.0.1

And who is this guy, and what is his netmask?
(And what are his routes?)
Prashantj
Valued Contributor

Re: sendmail error

Hi,

This HP-UX is test server.

i am using same netmask for mailserver 192.168.0.6. & i am sending this mail to same prashant.jadhav@rahejauniversal.com


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

Re: sendmail error

> i am using same netmask for mailserver
> 192.168.0.6.

Evidence?

> & i am sending this mail to same
> prashant.jadhav@rahejauniversal.com

But that should go to a real-world address,
not to some 192.168.x.x address, shouldn't
it?

ALP $ nslookup -type=mx rahejauniversal.com
[...]
mail exchanger = mail.rahejauniversal.com
[...]
mail.rahejauniversal.com internet address = 66.36.230.233
[...]

Between the questions which you haven't
answered and the answers which you have
given, I'm not sure which of us is more
confused.
Prashantj
Valued Contributor

Re: sendmail error

Hi,

# nslookup -type=mx rahejauniversal.com
Using /etc/hosts on: ruleccdev

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

This HP-UX system in same lan, internet address is require for that ?

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

Re: sendmail error

Hi Prashantj



I think your real problem is with the comunication with mail server.



So try and paste the output of:


ping " name_of_the_mail_server"


ping " ip_of_the_mail_server "


ping " your gateway " -> ping 192.168.0.1


Regards