- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- how to test whether sendmail is working or not
Operating System - Linux
1819796
Members
3117
Online
109607
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
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
тАО11-03-2001 04:05 AM
тАО11-03-2001 04:05 AM
how to test whether sendmail is working or not
hello
i want to check whether sedmail works on my red hat linux 7.1,how can i check this,coz i have to send mails using php scripts via this linux server..can u help me please..
thanx in anticipation..
reena
i want to check whether sedmail works on my red hat linux 7.1,how can i check this,coz i have to send mails using php scripts via this linux server..can u help me please..
thanx in anticipation..
reena
forum
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-03-2001 04:43 PM
тАО11-03-2001 04:43 PM
Re: how to test whether sendmail is working or not
Hello Reena,
Sendmail is a complex beast. There are many things to test, but I'm guessing you only want some simple tests here.
The most basic (and preliminary) test would be to invoke sendmail with the "-bv" option, giving a valid email address.
You can try:
sendmail -bv youremail@yourdomain.com
You should see a short message indicating that sendmail is able to deliver that message.
After, that, telnet to localhost, port 25 and make sure you see the sendmail greeting.
The final test is to send a few emails, both to local and remote users to make sure everything is working properly. Be careful though, since some programs tend to send mail *directly* to local users, bypassing sendmail.
Hope it helps
-- Paga
Sendmail is a complex beast. There are many things to test, but I'm guessing you only want some simple tests here.
The most basic (and preliminary) test would be to invoke sendmail with the "-bv" option, giving a valid email address.
You can try:
sendmail -bv youremail@yourdomain.com
You should see a short message indicating that sendmail is able to deliver that message.
After, that, telnet to localhost, port 25 and make sure you see the sendmail greeting.
The final test is to send a few emails, both to local and remote users to make sure everything is working properly. Be careful though, since some programs tend to send mail *directly* to local users, bypassing sendmail.
Hope it helps
-- Paga
Keeping alive, until I die.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-03-2001 08:51 PM
тАО11-03-2001 08:51 PM
Re: how to test whether sendmail is working or not
Hi
If you can not reach your port 25 using telnet command, you may want to check your ipchain-based-firewall configuration. Since RH7.1, you can setup it at install time.
Use #ipchains -L to see if packet can reach your server or not.
good luck
If you can not reach your port 25 using telnet command, you may want to check your ipchain-based-firewall configuration. Since RH7.1, you can setup it at install time.
Use #ipchains -L to see if packet can reach your server or not.
good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-05-2001 03:15 PM
тАО11-05-2001 03:15 PM
Re: how to test whether sendmail is working or not
Reena,
do
#telnet 25
If this returns sendmailrelated messages, then
your mail port is working fine
and the sendmail server is running.
The next test is to see
whether you can send a mail
outside
do
#sendmail -vt xyz@abc.com
and then end it with a dot
below
.
-> see whether it works.
If it is not able to send
the mail, then you would
need to configure the
sendmai configuration file.
HTH
raj
do
#telnet
If this returns sendmailrelated messages, then
your mail port is working fine
and the sendmail server is running.
The next test is to see
whether you can send a mail
outside
do
#sendmail -vt xyz@abc.com
and then end it with a dot
below
.
-> see whether it works.
If it is not able to send
the mail, then you would
need to configure the
sendmai configuration file.
HTH
raj
Take it easy.
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