+ Post New Thread
Results 1 to 10 of 10
*nix Thread, email notification in Technical; Hi I have a problem i can't receive notification by email (when one server or service down that i do ...
  1. #1

    Join Date
    Nov 2009
    Posts
    10
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    email notification

    Hi

    I have a problem i can't receive notification by email (when one server or service down that i do it manualy just for the test) .

    I installed mailx and postfix under Fedora10 .

    Now i think the problem is in the /etc/postfix/main.cf because i think i should modify just this three parametre if i m right .

    myhostname
    Code:
    myhostname = ServerNagios.domaine.com
    mydestination
    Code:
    mydestination = $myhostname, ServerNagios.domaine.com , localhost.$mydomain, localhost
    relayhost
    Code:
    #relayhost = $mydomain
    #relayhost = [gateway.my.domain]
    #relayhost = [mailserver.isp.tld]
    #relayhost = uucphost
    #relayhost = [an.ip.add.ress]
    Please can you help me to solve this big problme ,I will be thankful.

    many thanks

  2. #2

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,529
    Thank Post
    513
    Thanked 2,406 Times in 1,862 Posts
    Blog Entries
    24
    Rep Power
    822
    Ok, from the look of that, you're hoping to mail direct out to the recipients. Does your ISP allow that? Or are they expecting you to relay all mail through their own SMTP server?

  3. #3

    Join Date
    Nov 2009
    Posts
    10
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    I don't think so , that i need That is, my server does not store the mailboxes of users, it only transmits messages to the SMTP server, which manages the boxes.

  4. #4

    Join Date
    Nov 2009
    Posts
    10
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Can someone help me please

    thank you

  5. #5
    somabc's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    2,337
    Thank Post
    83
    Thanked 388 Times in 258 Posts
    Rep Power
    111
    Have you specified the SMTP server?

  6. #6

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,529
    Thank Post
    513
    Thanked 2,406 Times in 1,862 Posts
    Blog Entries
    24
    Rep Power
    822
    Quote Originally Posted by epsone View Post
    I don't think so , that i need That is, my server does not store the mailboxes of users, it only transmits messages to the SMTP server, which manages the boxes.
    Ok. The way you need to set it up is as such:

    1. Nagios server sends messages to
    2. Local postfix server which sends messages to
    3. Your SMTP server.

    An example of how to set up Postfix to relay mail through an SMTP server can be found here:

    Send Mail Postfix through Gmail’s SMTP on a Ubuntu LTS Server

    This is sending via a TLS secured SMTP server, with authentication. You may need to alter accordingly if you don't require a secure connection or authentication.

  7. #7

    Join Date
    Nov 2009
    Posts
    10
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by localzuk View Post
    Ok. The way you need to set it up is as such:

    1. Nagios server sends messages to
    2. Local postfix server which sends messages to
    3. Your SMTP server.

    An example of how to set up Postfix to relay mail through an SMTP server can be found here:

    Send Mail Postfix through Gmail’s SMTP on a Ubuntu LTS Server

    This is sending via a TLS secured SMTP server, with authentication. You may need to alter accordingly if you don't require a secure connection or authentication.
    execuse me i can use our exchange server so nagios server sends messages to exchange server ???

    thank you

  8. #8

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,529
    Thank Post
    513
    Thanked 2,406 Times in 1,862 Posts
    Blog Entries
    24
    Rep Power
    822
    You can, but you still need to set up postfix to connect to the exchange SMTP server, as with that link I provided.

  9. #9

    Join Date
    Nov 2009
    Posts
    10
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by localzuk View Post
    You can, but you still need to set up postfix to connect to the exchange SMTP server, as with that link I provided.
    yes i already installed postfix ,but the problem in the configuration /etc/postfix/main.cf .in the link that you sent me the configuration is more complicate

    thank you

  10. #10

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,529
    Thank Post
    513
    Thanked 2,406 Times in 1,862 Posts
    Blog Entries
    24
    Rep Power
    822
    Quote Originally Posted by epsone View Post
    yes i already installed postfix ,but the problem in the configuration /etc/postfix/main.cf .in the link that you sent me the configuration is more complicate

    thank you
    Yes, to mail via another SMTP server is more complicated - especially a server like Exchange, which will require authentication and TLS. There's not much more I can do, as that link covers pretty much everything...

SHARE:
+ Post New Thread

Similar Threads

  1. moodle email updation and email notification
    By monali in forum Virtual Learning Platforms
    Replies: 0
    Last Post: 3rd October 2009, 09:51 AM
  2. Email notification of password expiry?
    By gshaw in forum Windows
    Replies: 0
    Last Post: 23rd April 2008, 12:42 PM
  3. ePortal email notification?
    By slilley in forum MIS Systems
    Replies: 6
    Last Post: 2nd October 2007, 07:22 AM
  4. Email client with tasktray notification
    By MK-2 in forum Windows
    Replies: 15
    Last Post: 18th May 2007, 08:22 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •