- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Sendmail Configuration Help
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
Discussions
Discussions
Forums
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
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
тАО02-04-2004 10:09 AM
тАО02-04-2004 10:09 AM
I have some questions about sendmail, first this is our configuration:
A user in the system, Oracle, within HP-UX 11.00 sends messages to the users within the company like some_user@ourdomain.com. These are just alerts of job completions. These are straight shell scripts with mailx syntax used inside like:
mailx -s "Job Complete" some_user@ourdomain.com
I don't want to receive any messages back to the Oracle user, root or anybody else, all the system does is send, don't care if the user exists or doesn't in the domain, I just don't want to generate undeliverable email traffic, since no one is going to look at the messages.
Is there anything specific in the sendmail.cf file that needs to be changed or added ?
Since our email is handled by outside windows exchange servers and our smtp server was responsible for receiving email, I went and added this line to the sendmail.cf to relay all outbound messages to the smtpout.ourdomain.com, which is a valid smtp server.
DSsmtpout.ourdomain.com
(Is this the right use of this directive ?)
The directives below were already in the file:
CL root
DMourdomain.com
Is our configuration of the sendmail.cf file enough, do we need to change something else to meet the specific requirements I have outlined above ?
Many thanks in advance to all who contribute to this message.
Aziz.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2004 10:47 AM
тАО02-04-2004 10:47 AM
SolutionThat way the sendmail daemon can not receive. The sendmail agent will start when it needs to send something, but will shutdown again immediately after.
In this scenario you should also schedule 'sendmail -q' every 30 minutes or so to flush the sendmail queue.
This is a standard setup on all my machines.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2004 10:57 AM
тАО02-04-2004 10:57 AM
Re: Sendmail Configuration Help
We have special outlook mailboxes for system emails and direct all email from Unix servers to those the same way you do. I think this is a good idea. WE have them set up as special folders and operations and the dba are supposeded to check them day by day.
If you implement Patrick's suggestion, you may need to run sendmail -q periodically to get mail off of your server.
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
тАО02-05-2004 01:33 AM
тАО02-05-2004 01:33 AM
Re: Sendmail Configuration Help
Unfortunately, I have to keep it up and running.
Keep your suggestions coming, thank you all.
Aziz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2004 01:37 AM
тАО02-05-2004 01:37 AM
Re: Sendmail Configuration Help
If you have a test system, try this: Have a couple of sessions open. Stop sendmail. Do a 'tail -f /var/adm/syslog/mail.log' in one window. Now send an email with mailx or sendmail in another window and watch the mail.log file. You should see the message go out within a few seconds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2004 01:42 AM
тАО02-05-2004 01:42 AM
Re: Sendmail Configuration Help
Please correct me if I am wrong:
Sendmail can be disabled and the mail still can be sent, so the job of the sendmail is only to receive email not for outgoing.
How does mailx then know what the relay host is and all the other configurations in the sendmail.cf file ?
Many thanks
Aziz.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2004 01:45 AM
тАО02-05-2004 01:45 AM
Re: Sendmail Configuration Help
The reason behind having a sendmail daemon running all the time is so you can receive mail. If you are not going to be, you don't need to run it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2004 01:51 AM
тАО02-05-2004 01:51 AM
Re: Sendmail Configuration Help
Well put, I didn't know that could be done, this is why I like this forum.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-05-2004 02:36 AM
тАО02-05-2004 02:36 AM
Re: Sendmail Configuration Help
All outgoing mailx mail will go through, just like Patrick says.
If this server is on the public Internet, you may want to look at this thead. If you are plahying with sendmail anyway you might want to configure it to stop abuse.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=424086
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com