- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- problem with sendmail
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
тАО06-17-2006 05:29 PM
тАО06-17-2006 05:29 PM
I have sendmail configured on my server.
but i am not able to send the mail
i am typing this :
#mailx -s "TEST Mail" praveen@mycompany.com
hi, this is a test mail
please let me know what ahould i type after typing the "mail" word in the message.
if i type ctrl-c twice, it cancenlled the process,
how can i get the # promt again
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2006 07:04 PM
тАО06-17-2006 07:04 PM
Re: problem with sendmail
try this:
echo "I want my email now" | mailx -s "TEST Mail" praveen@mycompany.com
A mail will go into the system immediately.
tail -f /var/adm/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
тАО06-17-2006 07:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2006 09:02 PM
тАО06-17-2006 09:02 PM
Re: problem with sendmail
You need to type Ctrl-D (hold down the Ctl key and then type D) on a line by itself i.e.
# mailx -s "TEST Mail" praveen@mycompany.com
hi, this is a test mail
~hope it helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2006 09:08 PM
тАО06-17-2006 09:08 PM
Re: problem with sendmail
To check if sendmail or mail-relay is working, try the following:
sendmail -v praveen@mycompany.com
Hi,
This is a tes mail
.
#Note: the dot at the last line is needed.
You'll then see the error-message if there is a problem with relay.
Have you also checked your mail.log or syslog file for mail errors?
GoodLuck
Darrel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2006 09:04 AM
тАО06-18-2006 09:04 AM
Re: problem with sendmail
ps -ef | grep -i sendmail
start sendmail
sendmail -bq -q30m
stop sendmail
killsm
If you are still have problems then check $DS in your sendmail.cf file for the correct mail relay.
killsm
vi sendmail.com
/DS (* until you come to $DS and verify the entry *)
$DSmail.rely.com
exit
sendmail -bq -q30m
You should also check to see if your mail.rely.com is in /etc/hosts and that your /etc/nsswitch.conf and /etc/resolv.conf are correct. Also note that this is for a non DNS network. Do you have a DNS?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2006 09:41 AM
тАО06-18-2006 09:41 AM
Re: problem with sendmail
As noted, you can either redirect the 'mailx' STDIN, as with an 'echo' into a pipe:
# echo "hello!" | mailx ...
...or place your message into a file:
# mailx -s "my subject" root < /tmp/message
...or if the subject alone is sufficient:
# mailx -s "call me!" praveen < /dev/null
...or type your message at the command line and enter (usually) a CTRL_D to single the end-of-file:
# mailx -s "please read what follows" praveen
Here is line-1 to read
and this is another line
and finally I don't have anymore to say!
CTRL_D
You do *not* need 'sendmail' running as a daemon to send outgoing mail from your server. If you aren't acting as a mail server you can simply not start 'sendmail' at boot time by setting:
SENDMAIL_SERVER=0
...in 'etc/rc.config.d/mailservs'
...and stopping the 'sendmail' daemon:
# /sbin/init.d/sendmail stop
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2006 06:21 PM
тАО06-18-2006 06:21 PM