- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Mailx out from the server
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-01-2004 12:44 AM
10-01-2004 12:44 AM
Can someone share with me how to set the system up to allow email out from the server?
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 12:48 AM
10-01-2004 12:48 AM
Re: Mailx out from the server
Depending on internal environment, you may have to configure sendmail:
In /etc/mail/sendmail.cf
Setup a smart relay:
DSyourrelayserver
Masquerade?
DMyourdomain.com
Stop/start sendmail.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 12:49 AM
10-01-2004 12:49 AM
Re: Mailx out from the server
DSyourhost.yourcompany.com
Restart sendmail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 12:54 AM
10-01-2004 12:54 AM
Re: Mailx out from the server
you do not need to have running the sendmail daemon to send a mail . The easiest way is to use the executable sendmail , it has the same name as the daemon but it is not the same. If you want to use the sendmail daemon you must have a /etc/mail/sendmail.cf configuration file correctly configured and sometimes it is a bit complicated. You will be able to find in docs.hp.com lots of information about how to configure internet services and sendmail too . When you have configured the sendmail.cf file you just need to execute
sendmail -v dkjldfjl@kk.com
Thats all
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 01:12 AM
10-01-2004 01:12 AM
Solution-- /etc/nsswitch.conf ---
hosts: dns hosts
-- /etc/resolv.conf --
domain yourdomain.com
nameserver xx.xx.xx.xx
nameserver xx.xx.xx.xx
-----------------------
Check resolvation as,
nslookup hostname.domainname.com
example:
nslookup test.testdom.com
or nsquery hosts test.testdom.com "dns hosts"
It has to be resoled there.
Sending mails:
echo "Test mail on $(date)" | mailx -s "test mail from `hostname`" loginuser@domainname.com
It will send your mails.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 01:55 AM
10-01-2004 01:55 AM
Re: Mailx out from the server
Thanks
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 01:58 AM
10-01-2004 01:58 AM
Re: Mailx out from the server
# Relay all non-local mail to the "Smart" relay host (DS) via UUCP: #
# make two chnages to this file. First, set macro S (DS) to the name #
DS
Hope this helps
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 02:00 AM
10-01-2004 02:00 AM
Re: Mailx out from the server
I did exactly what you said. It worked.
Thank you. Will it creat any security hole?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 02:03 AM
10-01-2004 02:03 AM
Re: Mailx out from the server
I have tightined security in my company, but due to some reasons we have just stopped sendmail daemon, while still I can send mails across. We did not de-configure sendmail.
Hope this helps
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 02:07 AM
10-01-2004 02:07 AM
Re: Mailx out from the server
http://www.coker.com.au/~russell/sendmail.html
https://www.sendmail.com/timeout.html
Hope the above urls help you in determining what you expect exactly
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 06:37 AM
10-01-2004 06:37 AM
Re: Mailx out from the server
What we do is:
/sbin/init.d/sendmail stop
modify /etc/rc.config.d/mailsvrs file to not start sendmail
Then in root's cron:
# Make sure any queued mail is delivered, as sendmail isn't a daemon anymore
0,30 * * * * /usr/sbin/sendmail -q
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 06:51 AM
10-01-2004 06:51 AM
Re: Mailx out from the server
How to modify mailservs file to preven sendmail daemon from start?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2004 08:10 AM
10-01-2004 08:10 AM
Re: Mailx out from the server
export SENDMAIL_SERVER=0
Rgds...Geoff