Setting up mail notifications

Follow

Comments

5 comments

  • Avatar
    Anastasios Gryponisiotis

    Cluster Configurator scripts install postfix, however sendmail is apparently required to send mail? Why is postfix installed instead of sendmail? Postfix could also be used as an SMTP using localhost, but it does not appear to work. 

  • Avatar
    Johan

    Hi,

    I am not 100 why postfix is installed. It must be installed as an dependency.

    what do you get in /var/log/mail.log  ?

     

    BR

    johan

     

  • Avatar
    Anastasios Gryponisiotis

    Yes Johan, it appears that postfix is installed as dependency of the clustercontrol-controller package.

    Unfortunately mail.log gets nothing when I try to send a test email, be it using mail or SMTP server (localhost:25) from UI

    I have tried using mail on the command line and it works fine, as expected.

    Frankly, I am more familiar with postfix, but still I would install sendmail in a heartbeat if that's all it took. I will just feel horible if I have a production server with postfix and sendmail on it!

    Any ideas?

  • Avatar
    Johan

    Hi,

    I will check with my colleagues, but it sounds like the postfix is not setup correctly to be a SMTP server (maybe you can set it up to relay the email from localhost to a real SMTP server).

    However, if:

    echo "test message" | mail -s "test subject" user@example.com 

    works (replace user@example.com with the real user) then i suggest you tell ClusterControl to use the "mail" program as the method, by going into Settings -> General Settings -> Configure Mailserver:

     

    Screen_Shot_2015-07-14_at_19.30.20.png

    So you tick "Option 1", and then also set the mail sender (maybe needed to avoid delivery problems).

    Let me know if this works.

     

    BR

    johan

  • Avatar
    Anastasios Gryponisiotis

    Dear Johan,

    If it wasn't clear, sending from UI using both "mail" and "SMTP" are not working. They are simply poping up a confirmation dialog and adding a "Job" in the list. Nothing ever reaches the mail.log.

    In regards to system setup, I can send emails using "mail" from the command line, as well as by "talking" to the localhost SMTP via telnet.

    Is there any log I could check, because nothing gets logged in cmon.log when sending notifications.

    BR,

    Anastasis

Please sign in to leave a comment.

Powered by Zendesk