Posts by ashahid

This forum was archived to /woltlab and is now in read-only mode.

    Update:


    After a lot of tweaking and modifications on my postfix config file, I was able to send out emails.


    pillbug22, thank you for the tip on the Director part. Got that working as well.


    Question:


    If I want to update the notifications through the CLI, what is the location for it? I am getting the basic notifications for now, i.e. Host up or down. But, I want to make it even more detailed.


    I will appreciate if anyone can let me know where are the notification settings stored in the config file as i would like to dig deeper.


    Thanks much!

    Hello-


    I appologize fore not giving out enough information. I have an update, after going through multiple forums and videos I configured the postfix mail SMTP. the output is stated below:


    Output from vim /etc/postfix/main.cf


    myhostname = contoso.com

    relayhost = [mail.contoso.com]:25

    smtp_use_tls = yes

    smtp_sasl_auth_enable = yes

    smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd

    smtp_tls_CAfile = /etc/ssl/certs/ca-bundle.crt

    smtp_sasl_security_options = noanonymous

    smtp_sasl_tls_security_options = noanonymous


    I replaced my company’s domain with “contoso” for security purposes.




    However, I receive a bounce back whenever I try to send an email through cli. Results below:


    Output from vim /var/spool/mail/root


    The mail system


    <ashahid@contoso.com>: unknown user: "ashahid"


    --2CAE4EC2EB.1509457728/contoso.com

    Content-Description: Delivery report

    Content-Type: message/delivery-status


    Reporting-MTA: dns; contoso.com

    X-Postfix-Queue-ID: 2CAE4EC2EB

    X-Postfix-Sender: rfc822; root@contoso.com

    Arrival-Date: Tue, 31 Oct 2017 08:48:48 -0500 (CDT)


    Final-Recipient: rfc822; ashahid@contoso.com

    Action: failed

    Status: 5.1.1

    Diagnostic-Code: X-Postfix; unknown user: "ashahid"


    --2CAE4EC2EB.1509457728/contoso.com

    Content-Description: Undelivered Message

    Content-Type: message/rfc822


    Return-Path: <root@contoso.com>

    Received: by contoso.com (Postfix, from userid 0)

    id 2CAE4EC2EB; Tue, 31 Oct 2017 08:48:48 -0500 (CDT)

    Date: Tue, 31 Oct 2017 08:48:48 -0500

    To: ashahid@contoso.com

    Subject: Test Mail

    User-Agent: Heirloom mailx 12.5 7/5/10

    MIME-Version: 1.0

    Content-Type: text/plain; charset=us-ascii

    Content-Transfer-Encoding: 7bit

    Message-Id: <20171031134848.2CAE4EC2EB@contoso.com>

    From: root@contoso.com (root)


    icinga test


    --2CAE4EC2EB.1509457728/contoso.com—


    Similarly, I replaced my company’s domain with contoso.com for security purposes.




    I added the smtp user settings in the sasl_passwd file and the output is shown below:



    Output from vim /etc/postfix/sasl_passwd


    [mail.contoso.com]:25 mon@contoso.com:password123


    Is there any thing I am missing here? Also, do I have to do something to integrate postfix with icinga? (I have already setup notifications)


    I have attached a snapshot of the About page of my Icinga Host.


    Thanks,


    AQ


    Edit: I am using CentOS 7

    Hi,


    I have completed the setup of Icinga Web 2 with Director. I can connect to hosts and monitor their status through the icinga portal. However, I would like to receive email notifications when any of my Host is down, etc. I read through multiple forums but am still not able to get notifications when the host goes down. I will highly appreciate if any one can help me in setting up the SMTP/MTA service to send out the notifications when any host goes down, preferably through the director. I will also appreciate if you can give me a step by step guidance.


    Thanks in advance.


    AQ