UNSOLVED

Avilt1

updated

19 years ago

A

Avilt1

2 Intern

•

121 Posts

1

2736

May 7th, 2008 00:00

EVENT NOTIFICATIONS

I have configured Event Notification in Celerra Manager as shown below.

Under Notifications-Events-New Notification-Facility-Check All-Severity-Critical-mail-smtp address

My Celerra Console show the System Status as Critical. But I am not receiving any email notifications.
What's wrong? Is there any setting to specifiy SMTP server as well? Or does it uses DNS to get MX record?
  • Rainer_EMC

    6 Operator

    •

    8645 Posts

    1129

    0

    Posted May 7th, 2008 01:00

    yes, you first have to configure EMail on the Controlstation Linux

    try a "Mail -v your@email.com" and see what it says

    Often its enough to just change the line for smart relay in /etc/sendmail.cf
    # "Smart" relay host (may be null)
    DS

    There is a number of knowledgebase articles about configuring sendmail
  • Avilt1

    2 Intern

    •

    121 Posts

    1129

    0

    Posted May 7th, 2008 05:00

    Thank You Rainer.
    I have not configured any SMTP settings and its evident from the below output that it gets MX records from DNS. I am still not getting the mails. What's wrong? I am able to ping also telnet to smtp server on port 25.

    [nasadmin@EMC-DR nasadmin]$ mail -v avilt@myorg.com
    Subject: hi
    how are you doing?
    .
    Cc: avilt@myorg.com
    avilt@myorg.com... Connecting to MX-host-1 via esmtp...
    avilt@myorg.com... Connecting to MX-host-2 via esmtp...
    /home/nasadmin/dead.letter... Saved message in /home/nasadmin/dead
  • Rainer_EMC

    6 Operator

    •

    8645 Posts

    1129

    0

    Posted May 7th, 2008 13:00

    take a look at the knowledgebase or a good sendmail website

    hard to say what exactly doesnt work.

    Start with the smarthost config, dont forget to do a "/etc/init.d/sendmail restart" after changing /etc/sendmail.cf
    From your messages it doesnt look like sendmail is actually talking to the mail server

    Here's how it should look like:

    [nasadmin@ns700gcs0 nasadmin]$ Mail -v xxx@emc.com
    Subject: test
    test
    .
    Cc:
    xxx@emc.com... Connecting to mailhub.lss.emc.com. via esmtp...
    220 mailhub ESMTP Sendmail 8.10.1/8.10.1; Wed, 7 May 2008 13:32:50 -0400 (EDT)
    EHLO ns700gcs0.emc.com

    250-mailhub.lss.emc.com Hello [10.64.245.180], pleased to meet you
    250-ENHANCEDSTATUSCODES
    250-PIPELINING
    250-8BITMIME
    250-SIZE 100000000
    250-DSN
    250-ETRN
    250-AUTH DIGEST-MD5 CRAM-MD5
    250-DELIVERBY
    250 HELP
    MAIL From: SIZE=47

    250 2.1.0 ... Sender ok
    RCPT To:

    250 2.1.5 ... Recipient ok
    DATA

    354 Enter mail, end with "." on a line by itself
    .

    250 2.0.0 m47HWodt007431 Message accepted for delivery
    xxx@emc.com... Sent (m47HWodt007431 Message accepted for delivery)
    Closing connection to mailhub.lss.emc.com.
    QUIT

    221 2.0.0 mailhub.lss.emc.com closing connection


    One of the potential issues could be if your mail server doesnt like EMail's from non-resolvable hosts - a quick fix is something like this:

    Dj$w.myorg.com

    unless you want to go to full-blown masquerading or messing with DNS reverse lookup config

    have fun
    Rainer
  • nikolayp

    21 Posts

    1135

    0

    Posted September 25th, 2008 11:00

    And answering your question about "Dj$w.myorg.com" entry - this is in sendmail.conf file either in /etc (NAS 5.5) or /etc/mail (NAS 5.6) directory. Any changes to sendmail.cf file will require SMTP service to be restarted by issuing "/sbin/service sendmail restart" as root
  • nikolayp

    21 Posts

    1135

    0

    Posted September 25th, 2008 11:00

    Hi Dynamox,

    Use primus emc151602 and/or emc133427 for setting up SMTP on Celerra. Most of the cases and troubleshooting steps are explained there.

    Regards,
    Nick
  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    1129

    0

    Posted September 25th, 2008 11:00

    Rainer,

    i have the same problem where my SMTP server does not want to relay nasadmin@cellera.domain.local address.

    You mentioned this : Dj$w.myorg.com


    what is this ..where do i enter it ?

    Thanks
  • Rainer_EMC

    6 Operator

    •

    8645 Posts

    240

    0

    Posted September 25th, 2008 12:00

    yes, for example in my lab case the only two changes I had to make to /etc/sendmail.conf were this:

    [nasadmin@ns700gcs0 etc]$ diff sendmail*
    93d92
    < Dj$w.emc.com
    98c97
    < DSmailhub.lss.emc.com
    ---
    DS
  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    1135

    0

    Posted September 25th, 2008 12:00

    i see ..so you would simply un-comment this entry in /etc/sendmail.cf (dart 5.5)

    # my official domain name
    # ... define this only if sendmail cannot automatically determine your domain
    #Dj$w.Foo.COM


    and substitute that with Dj$w.emc.com ..or whatever your domain is ?

    Message was edited by:
    dynamox
  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    1135

    0

    Posted September 25th, 2008 12:00

    thanks Nick ...i used emc151602 and it worked great. Is "Dj$w.myorg.com" some kind of hack that allows you to send email without going through the process outlined in emc151602 ?
  • nandas

    6 Operator

    •

    1473 Posts

    240

    0

    Posted September 25th, 2008 12:00

    Very old and plain sendmail configuration stuff :) which was widely used in older days when so many fancy email software was not there ;)

    Configuring the SMTP alerts on Celerra reminds me those memories :)

    Anyway - Rainer and Nick had provided all the details needed here - so I should shut my mouth (to be precise keyboard) now :D