- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: no sendmail daemon running, but it is working.
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
10-07-2003 07:44 AM
10-07-2003 07:44 AM
the script /sbin/init.d/sendmail shows "sendmil -bd.."
Also when I do telnet mysystem 25, get connection refused. where prohibits the connection, and why?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 07:48 AM
10-07-2003 07:48 AM
Re: no sendmail daemon running, but it is working.
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 07:52 AM
10-07-2003 07:52 AM
Re: no sendmail daemon running, but it is working.
The starting script /sbin/init.d/sendmail does start the sendmail by using -bd option, and it seems starting sendmail as daemon mode ( am I right?).
The cron job doesn't have sendmail configured.
Also whey get connectin refused when I run telnet mysystem 25? PrivacyOption =authwarning only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 07:58 AM
10-07-2003 07:58 AM
Re: no sendmail daemon running, but it is working.
You get connection refused when you telnet to port 25, because sendmail is not running. If you do a 'ps -ef | grep sendmail' and you don't get any results then sendmail is not running.
As said, sendmail does not have to be running in order for you to send mail *from* your HP-UX box. I don't run sendmail on any of my machines if I can help it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 07:58 AM
10-07-2003 07:58 AM
Re: no sendmail daemon running, but it is working.
sendmail -v you@your_domain.com < /dev/null
Anything about ;; AUTHORITY SECTION?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 08:07 AM
10-07-2003 08:07 AM
Re: no sendmail daemon running, but it is working.
/sbin/init.d/sendmail start
to get it cooking
For permanence /etc/rc.config.d/mailservs
export SENDMAIL_SERVER=1
If thats set and it failed, there is another issue. This can be found at start in /etc/rc.log and /var/adm/syslog/mail.log
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
10-07-2003 08:10 AM
10-07-2003 08:10 AM
Re: no sendmail daemon running, but it is working.
As Patrick said, you have to enable sendmail server mode in /etc/rc.config.d/mailservs. If SERVER is not set to 1, then sendmail will not be started by /sbin/init.d/sendmail.
From the init file:
MAIL_SERVER=${SENDMAIL_SERVER:-0}
...
if [ $MAIL_SERVER -eq 1 ] ; then
...
fi
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 08:15 AM
10-07-2003 08:15 AM
Re: no sendmail daemon running, but it is working.
Also, why I am still able to send out emails?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 08:30 AM
10-07-2003 08:30 AM
Re: no sendmail daemon running, but it is working.
You are getting telnet 25 refused because your sendmail is not running.
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 08:42 AM
10-07-2003 08:42 AM
SolutionAs said before, there is no need for sendmail to be running permantly in the background to deliver mail. Mail is delivered by a separate sendmail process. For instance, when you run 'mailx -s "Hello" user@host' mailx starts a sendmail process to deliver the mail. Once it is deliverd, the sendmail process exits. It does not continue to run, nor does it ever open a listen connection on port 25.
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 08:49 AM
10-07-2003 08:49 AM
Re: no sendmail daemon running, but it is working.
Ok, vey well put.
However, how come the mailx can initiate sendmail, and send my email out, I mean what the mechnism/configuration behind the scene?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2003 02:49 AM
10-08-2003 02:49 AM
Re: no sendmail daemon running, but it is working.
Ok, vey well put.
However, how come the mailx can initiate sendmail, and send my email out, I mean what the mechnism/configuration behind the scene?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2003 04:55 AM
10-08-2003 04:55 AM
Re: no sendmail daemon running, but it is working.
mailx doesn't do anything special at all. It just execs sendmail with the arguments needed to send the mail. You can do the same thing from the command line:
sendmail -t << EOF
To: user@host
From: Me
Subject: hello
Hello world!!
EOF
You really should read the sendmail manpage; it explains a lot of what sendmail does to get mail delivered. Also, you should assign points to those responded to your questions.
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2003 04:22 PM
10-08-2003 04:22 PM
Re: no sendmail daemon running, but it is working.
Sendmail is a mail transfer agent. It uses sendmail.cf as its configuration files.
The system sends out email through the MTA or mail transfer agent which you have configured in your system. Postfix, smail, qmail, and exim are some of the other MTAs. possibly your system might be running some other MTAs.
Regards
Naveej