- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Sendmail service problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 12:43 AM
03-30-2006 12:43 AM
I have a problem in starting the sendmail, with which Iam unable to send the mail
1.when I stopped the sendmail
/sbin/init.d/sendmail stop
Sendmail pid is 13459
Killing sendmail...
Sendmail killed.
2.when I start
/sbin/init.d/sendmail start
WARNING: World writable directory /var/spool/mqueue
/etc/mail/aliases: 7 aliases, longest 9 bytes, 88 bytes total
sendmail
3.ps -ef | grep sendmail
root 13384 1 0 13:40:22 ? 0:00 /usr/sbin/sendmail -q30m
root 13448 1 0 13:41:33 ? 0:00 /usr/sbin/sendmail -q30m
root 12978 1 0 13:25:43 ? 0:00 /usr/sbin/sendmail -q30m
root 15877 1 0 14:22:52 ? 0:00 /usr/sbin/sendmail -q30m
here after starting the sendmail , I cannot see the sendmail process accepting connections
4.Then I use the
sendmail -bd -q30m
and when I the check the sendmail process it shows
root 13384 1 0 13:40:22 ? 0:00 /usr/sbin/sendmail -q30m
root 15893 1 0 14:24:01 ? 0:00 sendmail: accepting connections on port 25
root 13448 1 0 13:41:33 ? 0:00 /usr/sbin/sendmail -q30m
root 12978 1 0 13:25:43 ? 0:00 /usr/sbin/sendmail -q30m
root 15877 1 0 14:22:52 ? 0:00 /usr/sbin/sendmail -q30m
This looks fine as for the sendmail process but Iam still not able to send the mail and the log says
5.the logs shows
Mar 30 13:43:53 unol01 sendmail[13496]: NAA13496: to=dsupp@ttslc.com, ctladdr=root (0/3), delay=00:00:03, xdelay=00:00:00, mailer=relay, relay=x-relay.ttslc.com [60.230.115.70], stat=Service unavailable
I can establish connection by telnet to port 25 of the relay server, I confirm that sendmail.cf,/etc/hosts,nsswitch.conf and remaing settings are perfect and this problem started since few days and was working well before.
Could anyone help me out the reason for failure of sendmail in sending the mail?
is it any problem with the sendmail service in my server??
Rgds,
Ricky
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 01:02 AM
03-30-2006 01:02 AM
Re: Sendmail service problem
export SENDMAIL_SERVER=1
export SENDMAIL_RECVONLY=0
export SENDMAIL_SENDONLY=0
Run:
sendmail -v -d8 -d38 dsupp@ttslc.com
And post the results.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 01:04 AM
03-30-2006 01:04 AM
Re: Sendmail service problem
sendmail -v dsupp@ttslc.com
Type the message
.
(Finish with a dot and enter)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 01:12 AM
03-30-2006 01:12 AM
Re: Sendmail service problem
The /etc/rc.config.d/mailservs shows
export SENDMAIL_SERVER=1
export SENDMAIL_SERVER_NAME=
Do I need to change this settings as u described?but this was the same config even earlier when this used to work.
sendmail -v dsupp@ttslc.com
WARNING: World writable directory /var/spool/mqueue
.
dsupp@ttslc.com... Connecting to x-relay.ttslc.com via relay...
220 cpi-cxc-01.ppi.ttslc.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.1830 ready at Thu, 30 Mar 2006 15:05:44 +0100
>>> EHLO ual01.
501 5.5.4 Invalid Address
>>> HELO ual01.
501 5.5.4 Invalid Address
>>> QUIT
221 2.0.0 cpi-cxc-01.ppi.ttslc.com Service closing transmission channel
Service unavailable
/dead.letter... Saved message in /dead.letter
Closing connection to x-relay.ttslc.com
Thanks in advance for ur support,
Ricky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 01:25 AM
03-30-2006 01:25 AM
Re: Sendmail service problem
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 01:29 AM
03-30-2006 01:29 AM
Re: Sendmail service problem
You also need to change the perms on the /var/spool/mqueue directory.
Should be no looser than 755 & be owned by bin:bin
Sendmail will refuse to move mail if it perceives security problems.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 01:40 AM
03-30-2006 01:40 AM
Solution10.10.10.10 hpux.domain.com hpux
Ensure that the hostname+domain is listed first.
What is the output of:
# sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter
> $j
hpux.domain.com
You could try configuring /etc/mail/sendmail.cf:
#Dj$w.Foo.COM
Dj$w.domain.com
Where domain.com is your domain.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 02:05 AM
03-30-2006 02:05 AM
Re: Sendmail service problem
I have changed the sendmail.cf with Dj entry and restarted the service and looks bit better now.
sendmail -v dsupp@ttslc.com
dsupp@ttslc.com... Connecting to x-relay.ttslc.com via relay...
220 cpi-cxc-01.ppi.ttslc.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.1830 ready at Thu, 30 Mar 2006 15:48:59 +0100
>>> EHLO ual01.ttslc.com
250-cpi-cxc-01.ppi.ttslc.com Hello [xx.xx.xx.xxx]
250-TURN
250-SIZE
250-ETRN
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-8bitmime
250-BINARYMIME
250-CHUNKING
250-VRFY
250-X-EXPS GSSAPI NTLM LOGIN
250-X-EXPS=LOGIN
250-AUTH GSSAPI NTLM LOGIN
250-AUTH=LOGIN
250-X-LINK2STATE
250-XEXCH50
250 OK
>>> MAIL From:
250 2.1.0 root@ual01.ttslc.com....Sender OK
>>> RCPT To:
250 2.1.5 dsupp@ttslc.com
>>> DATA
354 Start mail input; end with
>>> .
250 2.6.0 <200603301447.PAA19495@ual01.ttslc.com> Queued mail for delivery
dsupp@ttslc.com... Sent (2.6.0 <200603301447.PAA19495@ual01.ttslc.com> Queued ma il for delivery)
Closing connection to x-relay.ttslc.com
>>> QUIT
but still the mail has not yet delievered
Mar 30 15:47:34 ual01 sendmail[19495]: PAA19495: from=root, size=0, class=0, pri=30000, nrcpts=1, msgid=<200603301447.PAA19495@ual01.ttslc.com>, relay=root@localhost
Mar 30 15:47:35 ual01 sendmail[19495]: PAA19495: to=dsupp@ttslc.com, ctladdr=root (0/3), delay=00:00:04, xdelay=00:00:01, mailer=relay, relay=x-relay.ttslc.com [xx.xx.xxx.xx], stat=Sent (2.6.0 <200603301447.PAA19495@ual01.ttslc.com> Queued mail for delivery)
The log says it is ququed but in /var/spool/mqueue there is no mail
Thanks,
Ricky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 02:33 AM
03-30-2006 02:33 AM
Re: Sendmail service problem
that is ok - the mail was sent to the relay => removed from local mail queue.
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 02:58 AM
03-30-2006 02:58 AM
Re: Sendmail service problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 03:07 AM
03-30-2006 03:07 AM
Re: Sendmail service problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 05:34 AM
03-30-2006 05:34 AM
Re: Sendmail service problem
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 06:15 AM
03-30-2006 06:15 AM
Re: Sendmail service problem
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
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 08:15 PM
03-30-2006 08:15 PM
Re: Sendmail service problem
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=
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 08:40 PM
03-30-2006 08:40 PM
Re: Sendmail service problem
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 09:16 PM
03-30-2006 09:16 PM
Re: Sendmail service problem
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