Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to write a script which sends an alert to a few email ids. The script will fetch its data from pmta log file.

As my script is ready but it's not sending out the mail. The server on which this script will run is installed with PowerMTA to relay out its bulk mails which queued up.

When I just checked whether mail is going out or not I tried:

echo "This will go into the body of the mail." | mail -s "Hello world" abhinav.octane@gmail.com 

I waited for 5 hours but did not receive the mail.

I had installed mailx, below is the port detail which might be helpful.

tcp        0      0 0.0.0.0:25                  0.0.0.0:*                   LISTEN      1225/pmtad

Any help will be highly appreciated. If anyone needs more information then please let me know and I will provide.

share|improve this question
    
What do the logs say? –  draxxxeus May 27 '13 at 12:14
    
Probably a problem with the smtp server which is supposed to process your send-request. Any info about how that is configured? –  Alfe May 27 '13 at 12:35
    
we are using port25 powerMTA to relay out the mails of client but for one particular situation we want to sent an alert . from server internally –  user1659298 May 27 '13 at 13:10
    
do you have a firewall or something which may be stopping the emails being delivered? –  Bill May 27 '13 at 14:23
add comment

migrated from stackoverflow.com May 27 '13 at 14:34

This question came from our site for professional and enthusiast programmers.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.