Operating System - HP-UX
1748167 Members
4156 Online
108758 Solutions
New Discussion юеВ

Re: Sendmail service problem

 
SOLVED
Go to solution
Mark Greene_1
Honored Contributor

Re: Sendmail service problem

If you had to change the Dj entry, that points to a host name problem. Either the dns entry for your host is wrong or the entry in your /etc/hosts file is wrong. Again, mailq -v -d will show you that.
the future will be a lot like now, only later
ricky2
Frequent Advisor

Re: Sendmail service problem

hi all,

thanks a lot for all your valuable inputs.I left the office so couldnt check if the mails were delievered.I will check this tomorrow and update in this form.
Iam just wondering that there wasnt any changes on this server in recent days as Iam the only person who support this and the sendmail used to work well with the same settings.

rgds,
ricky
Steven E. Protter
Exalted Contributor

Re: Sendmail service problem

Shalom,

if things were working correctly, the mail would have been delivered nearly instantly.

If possible do a tail -f on the mail.log or maillog file of the server that is supposed to be accepting the mail.

You could use DS relay but the mail as composed would get hung up.

One way to work around this is Dj as noted. Another is to alter the hostname to fully qualified domain name.

host

becomes

host.your.net

in /etc/rc.config.d/netconf

for the hostname.

Another way is through DNS support or /etc/hosts networking. In DNS you can use fqdn for this server so that when another server does a lookup it gets a complete fully qualfied name.

Even easier in /etc/hosts

host.your.net ip_address

example

host.your.net 192.168.0.10

The server will magically start sending mail with a fully qualifed domain name. You probably will need to restart sendmail.

/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
ricky2
Frequent Advisor

Re: Sendmail service problem

Hi,
The mails are not yet delievered to the mailbox and I want to make sure with you guys is the problem still at my end
or at the relayserver.Please find below the entries
1.My /etc/hosts entries are

more /etc/hosts
127.0.0.1 localhost loopback
xx.xx.xx.xxx ual01 ual01. ual01.ttslc.com

2.mailq -v -d
getauthinfo: root@localhost

============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = ual01
(canonical domain name) $j = $w.ttslc.com
(subdomain name) $m = ttslc.com
(node name) $k = ual01
========================================================
setoption HoldExpensive (c).=F
setoption DeliveryMode (d).=
WARNING: World writable directory /var/spool/mqueue
dropenvelope 40016f30: id=, flags=1
orderq:
Mail queue is empty

3.the entries for the host in the /etc/rc.config.d/netconf

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

4.Entries in sendmail.cf

# Dj$w
Dj$w.ttslc.com

# "Smart" relay host (may be null)
DSx-relay.ttslc.com

I dont have the access to the relayserver to the check the logs which is accepting the mails from my server.
could you let me know if my above entries are ok or any thing needs a change.

Thanks,
Ricky
Peter Nikitka
Honored Contributor

Re: Sendmail service problem

Hi Ricky,

I definitly would take this as an error and not a warning:

WARNING: World writable directory /var/spool/mqueue

Change the access rights:

chmod 755 (perhaps better: 750) /var/spool/mqueue

Some sendmail versions refuse work at this point, I think.

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
ricky2
Frequent Advisor

Re: Sendmail service problem

Hello All,

The problem is solved now after changing to another relay server.
Thanks a lot for all you inputs and support.
It was a good understanding to me.

Thanks,
Ricky