- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Sending mail without sendmail
Operating System - HP-UX
1820643
Members
2030
Online
109626
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО07-19-2004 10:48 AM
тАО07-19-2004 10:48 AM
None of our HP-UX servers receive email so I'd think I should be able to turn off sendmail. However, each server does need to retain the ability to send email; primarily from the HP Event Monitor but there's also a couple of perl programs running which send emails out every now and then.
I've noticed that if I stop the sendmail demon, "mail kevin@foo.com" no longer works. The only thing we change in the sendmail.cf file is "DSmail.foo.com" We also use a .forward file for root so email goes to our email boxes elsewhere on the network.
Does anyone have any suggestions as to how I can remove sendmail yet still be able to send from the server from the cmd line, shell scripts and the Event Monitor?
Thanks,
Kevin Masaryk
I've noticed that if I stop the sendmail demon, "mail kevin@foo.com" no longer works. The only thing we change in the sendmail.cf file is "DSmail.foo.com" We also use a .forward file for root so email goes to our email boxes elsewhere on the network.
Does anyone have any suggestions as to how I can remove sendmail yet still be able to send from the server from the cmd line, shell scripts and the Event Monitor?
Thanks,
Kevin Masaryk
Solved! Go to Solution.
- Tags:
- sendmail
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2004 10:56 AM
тАО07-19-2004 10:56 AM
Re: Sending mail without sendmail
It is hard to understand why you change the smart relay directive (DS) if you want to send out email from this server.
if you keep this DSmail.foo.com in place, and still shut the sendmail daemons, you should be able to send email out of this bix using a command like
cat mailfile | sendmail kevin@foo.com
The smart relay is who handles the delivery of your outgoing email and should not be removed or changed to something which is not a mail relay.
if you keep this DSmail.foo.com in place, and still shut the sendmail daemons, you should be able to send email out of this bix using a command like
cat mailfile | sendmail kevin@foo.com
The smart relay is who handles the delivery of your outgoing email and should not be removed or changed to something which is not a mail relay.
________________________________
UNIX because I majored in cryptology...
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2004 06:14 AM
тАО07-21-2004 06:14 AM
Re: Sending mail without sendmail
To send with queueing, but not to recieve, change the startup script line in /sbin/init.d from something like
sendmail -bd -q30m
(run sendmail in daemon mode, run the queue every thirty minutes)
to
sendmail -q30m
(don't accept mail), send immediate if you can, run the queue every 30 minutes if you can't.
For immediate effect, stop sendmail and use the sendmail -q30m command at the command line.
sendmail -bd -q30m
(run sendmail in daemon mode, run the queue every thirty minutes)
to
sendmail -q30m
(don't accept mail), send immediate if you can, run the queue every 30 minutes if you can't.
For immediate effect, stop sendmail and use the sendmail -q30m command at the command line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2004 06:42 AM
тАО07-21-2004 06:42 AM
Solution
You kind of need sendmail.
You seem to have disabled the daemon in the /etc/rc.config.d/sendmail file.
If you use mailx, it actually passes the mail to the sendmail binary to get it off the box.
elm uses sendmail as mta as well.
You can configure a differenet mail transport, but if you want sendmail to really be gone, remove it or change the permissions on the binaries.
Be prepared for some work getting any mail you need off the machine off of it. Even that DS directive uses in a standard configuration the sendmail binary to process the mail.
The sendmail binary itself used just for sending as you have configured it, is not a security risk, so long as you keep it patched up.
SEP
You seem to have disabled the daemon in the /etc/rc.config.d/sendmail file.
If you use mailx, it actually passes the mail to the sendmail binary to get it off the box.
elm uses sendmail as mta as well.
You can configure a differenet mail transport, but if you want sendmail to really be gone, remove it or change the permissions on the binaries.
Be prepared for some work getting any mail you need off the machine off of it. Even that DS directive uses in a standard configuration the sendmail binary to process the mail.
The sendmail binary itself used just for sending as you have configured it, is not a security risk, so long as you keep it patched up.
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
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP