Jump to content

Email notification script not working, any ideas?


Recommended Posts

I have added the default email notification script to the retrospect.exe folder and have edited the mail server and email address fiields. I can tell retrospect runs the script when starting and exiting but i fail to receive any mail. ugh. I have also tested the smtp im using from the backup server just to be sure. Why am i not receiving these notifications????? Here is the notification.bat config... (just the actual server and email settings). Does anyone have any idea about this?

 

Thanks

John

 

 

----

REM -------- Begin Email Group Properties -------------------------------------

REM You need to edit the following email group properties.

 

REM Put your mail server here

set kMailServer="smtp-server.domain.com" - this server does work from the backup machine

 

REM Email address of the sender

set kMailSender="sender name<jflilley@domain.com>"

 

REM To send mail to more than one person, enter the addresses separated by

REM semicolons, for example:

REM "name one<jflilley@domain.com>;name two<jflilley@domain.com>"

 

REM These recipients will get emails for all events

set kMainGroup="name one<jflilley@domain.com>"

 

 

REM These recipients will get emails only when fatal errors occur

set kFatalErrorGroup=""

 

REM These recipients will get emails when there is no fatal error

set kSuccessGroup=""

 

REM These recipients will get emails only when Retrospect needs new media

set kMediaRequestGroup=""

 

REM The following is the time at which the MediaRequest message is sent.

REM The time unit must be in 5 minute increments and the minimum value is 5 minutes.

set MediaRequestNotificationTime="5"

 

REM -------- End of Email Group Properites ------------------------------------

Link to comment
Share on other sites

If you're using Exchange Server, try taking out "Sender Name" in the entries

 

 

 

For example:

 

 

 

Original:

 

set kMailSender="sender name<jflilley@domain.com>"

 

 

 

Revised:

 

set kMailSender="<jflilley@domain.com>"

 

 

 

and:

 

 

 

Original:

 

REM "name one<jflilley@domain.com>;name two<jflilley@domain.com>"

 

 

 

Revised:

 

REM "<jflilley@domain.com>;<jflilley@domain.com>"

 

 

 

Etc.

Link to comment
Share on other sites

Thanks for the info but it did not effect anything : ( .....

 

The has to be something up with the script because I ran the MAILSNDR.EXE via the command line with this info and it worked without a problem (received the email).

 

 

 

mailsndr -p smtp-server.mydomain.edu testingmailsndr ee2_backup@domain.edu -t john@domain.edu testmail.txt

 

 

 

this works and sends a message titled 'testingmailsndr' from ee2_backup to my account (john@domain.edu) including the text file testmail.txt.

 

 

 

I've included my revised bat file below, which still does not work. (i've also tested this on two seperate backup servers, one running our backup server 5 and another running a trial version of 6).

 

 

 

It hurts to think that ill have to live without email notifiication especially after having this same function in many other backup applications of the same price range. I've been looking at upgrading to multiserv 6 but I need to iron this issue out hopefully with your help? Anyone?

 

 

 

Thanks

 

John

 

 

 

REM -------- Begin Email Group Properties -------------------------------------

 

REM You need to edit the following email group properties.

 

 

 

REM Put your mail server here

 

set kMailServer="smtp-server.domain.edu"

 

 

 

REM Email address of the sender

 

set kMailSender="ee2_backup@domain.edu>"

 

 

 

REM To send mail to more than one person, enter the addresses separated by

 

REM semicolons, for example:

 

REM "john@domain.edu"

 

 

 

REM These recipients will get emails for all events

 

set kMainGroup="john@domain.edu"

 

 

 

REM These recipients will get emails only when fatal errors occur

 

set kFatalErrorGroup=""

 

 

 

REM These recipients will get emails when there is no fatal error

 

set kSuccessGroup=""

 

 

 

REM These recipients will get emails only when Retrospect needs new media

 

set kMediaRequestGroup=""

 

 

 

REM The following is the time at which the MediaRequest message is sent.

 

REM The time unit must be in 5 minute increments and the minimum value is 5 minutes.

 

set MediaRequestNotificationTime="5"

 

 

 

REM -------- End of Email Group Properites ------------------------------------

Link to comment
Share on other sites

I just took the batch file and made the following three changes, then started Proactive Backup and then stopped Proactive Backup. An email popped into my mailbox. I'm not sure what's not working in your environment. You may want to delete the External Scripts folder and then do a custom install of Retrospect so the folder is replaced. Maybe the file is corrupted, or another line was changed somewhere.

 

Are you putting the retroeventhandler in the Retrospect program folder?

 

REM -------- Begin Email Group Properties -------------------------------------

REM You need to edit the following email group properties.

 

REM Put your mail server here

set kMailServer="mail.domain.com"

 

REM Email address of the sender

set kMailSender="<amy.lastname@domain.com>"

 

REM To send mail to more than one person, enter the addresses separated by

REM semicolons, for example:

REM "name one<name_one@your_company.com>;name two<name_two@your_company.com>"

 

REM These recipients will get emails for all events

set kMainGroup="<amy.lastname@domain.com>"

Link to comment
Share on other sites

Well, i got it working! , I just specified the IP address of the SMTP server instead of the dns name. Who knows why this was not working because the MAILSNDR.exe program had no problem with me specifying my smtp servers dns name. Maybe is because my dns name has a - in it? hmmmm. (smtp-server.domain.edu) . Anyhow I recieve successful and error msgs.

 

 

 

QUESTION- does anyone know why the script wont email when starting and stopping retrospect? I can SEE the mailsndr app flash on the screen when i start or stop retrospect, so it is attempting to send me something, maybe retrospect is not passing any data to it?

 

 

 

Thanks

 

John

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...