This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

E-mail Notification

Hello Everyone,

I have been running ASL (Home License) for almost 1 month now, and am quite pleased with its performance and operation.  Everything is working great except for one problem I can't seem to resolve:  the e-mail notification is not working.  I have searched the forums for relevant information, with little luck.  I really hope someone can help!!

Running version 5.017, 3 interfaces (1 external-ADSL with DynDNS account, and 2 internal).  I do not have an internal SMTP server.  I'm using my ISP's mail servers for inbound and outbound e-mail which are in the Network Definitions Configuration.  There is a Packet Filter Rule enabled allowing traffic from the internal network interface to my ISP's SMTP server.  My e-mail client (Thunderbird) sends and receives properly.  The Administrator Contact e-mail addresses are set under System >> Settings. I have tried using the Smarthost option (which requires enabling the SMTP Proxy) and entering my username and password, but still no notification.  From what I have read in the manual (Section 5.6.6 SMTP) it is not necessary to activate the SMTP Proxy to facilitate sending of System Notifications.  

Any ideas on what I'm missing here??

Thank-You.


This thread was automatically locked due to age.
  • Take a look into the smtp.log file. What's the reason that the mail is not sent?
  • Thank-you Andreas for your reply.  Actually I forgot to mention that the entire smtp.log file (covering a 24 hour period) contains no activity related to e-mail notification.  It only shows the same entries repeated every 20 minutes:

    2004:08:10-02:18:08 (none) exim[30400]: 2004-08-10 02:18:08 Start queue run: pid=30400
    2004:08:10-02:18:08 (none) exim[30400]: 2004-08-10 02:18:08 End queue run: pid=30400
    2004:08:10-02:38:08 (none) exim[30571]: 2004-08-10 02:38:08 Start queue run: pid=30571
    2004:08:10-02:38:08 (none) exim[30571]: 2004-08-10 02:38:08 End queue run: pid=30571
    2004:08:10-02:58:08 (none) exim[30748]: 2004-08-10 02:58:08 Start queue run: pid=30748
    2004:08:10-02:58:08 (none) exim[30748]: 2004-08-10 02:58:08 End queue run: pid=30748
    2004:08:10-03:18:08 (none) exim[30924]: 2004-08-10 03:18:08 Start queue run: pid=30924
    2004:08:10-03:18:08 (none) exim[30924]: 2004-08-10 03:18:08 End queue run: pid=30924

    I have looked through all the log files generated by ASL, and did not see anything that might be related, however, it is entirely possible I have missed something!
  • There is a log file especially for the notfication daemon. It is called notifier.log. Can you please take a look into it and watch for something indicating an error?
  • Hello Andreas.  I have checked and included a sample of the notifier.log file.  As you will see there is an error reported, but unfortunately it does not tell much...

    2004:08:09-00:00:02 (none) notifier[2620]: INFO: #------------------   notifier exiting    -------------------#
    2004:08:09-00:00:13 (none) notifier[15180]: INFO: #------------------   notifier starting   -------------------#
    2004:08:09-01:37:24 (none) notifier[15180]: INFO: #------------------   notification start  -------------------#
    2004:08:09-01:37:24 (none) notifier[15180]: INFO: #-- Received notification request for CRIT-850
    2004:08:09-01:37:24 (none) notifier[15180]: INFO: Including dynamic file: "/opt/tmpfs/tmpLFI10126662"
    2004:08:09-01:37:26 (none) notifier[15180]: ERROR: #-- Failed: could not send notification!
    2004:08:09-01:37:26 (none) notifier[15180]: INFO: Removed include file: /opt/tmpfs/tmpLFI10126662
    2004:08:09-01:37:26 (none) notifier[15180]: INFO: #------------------   notification end    -------------------#
    2004:08:09-22:25:26 (none) notifier[15180]: INFO: #------------------   notification start  -------------------#
    2004:08:09-22:25:26 (none) notifier[15180]: INFO: #-- Received notification request for INFO-010
    2004:08:09-22:25:26 (none) notifier[15180]: INFO: Including dynamic file: "/opt/tmpfs/tmpLFI15947747"
    2004:08:09-22:25:29 (none) notifier[15180]: INFO: Checking file: "/opt/tmpfs/backup_20040809_222517.abf"
    2004:08:09-22:25:29 (none) notifier[15180]: INFO: Attaching file: "/opt/tmpfs/backup_20040809_222517.abf" Type: application/octet-stream Encoding: base64
    2004:08:09-22:25:29 (none) notifier[15180]: ERROR: #-- Failed: could not send notification!
    2004:08:09-22:25:29 (none) notifier[15180]: INFO: Removed include file: /opt/tmpfs/backup_20040809_222517.abf
    2004:08:09-22:25:29 (none) notifier[15180]: INFO: Removed include file: /opt/tmpfs/tmpLFI15947747
    2004:08:09-22:25:29 (none) notifier[15180]: INFO: #------------------   notification end    -------------------#
    2004:08:09-22:31:50 (none) notifier[15180]: INFO: #------------------   notifier exiting    -------------------#
    2004:08:09-22:31:59 (none) notifier[27533]: INFO: #------------------   notifier starting   -------------------#
    2004:08:09-23:19:04 (none) notifier[27533]: INFO: #------------------   notifier exiting    -------------------#
    2004:08:09-23:19:12 (none) notifier[28633]: INFO: #------------------   notifier starting   -------------------#
    2004:08:09-23:58:02 (none) notifier[28633]: INFO: #------------------   notification start  -------------------#
    2004:08:09-23:58:02 (none) notifier[28633]: INFO: #-- Received notification request for INFO-720
    2004:08:09-23:58:02 (none) notifier[28633]: INFO: Including dynamic file: "/opt/tmpfs/tmpLFI53007738"
    2004:08:09-23:58:05 (none) notifier[28633]: INFO: Checking file: "/opt/tmpfs/executive_report.html"
    2004:08:09-23:58:05 (none) notifier[28633]: INFO: Attaching executive report : "/opt/tmpfs/executive_report.html" Type: text/html Encoding: 8bit
    2004:08:09-23:58:05 (none) notifier[28633]: ERROR: #-- Failed: could not send notification!
    2004:08:09-23:58:05 (none) notifier[28633]: INFO: Removed include file: /opt/tmpfs/executive_report.html
    2004:08:09-23:58:05 (none) notifier[28633]: INFO: Removed include file: /opt/tmpfs/tmpLFI53007738
    2004:08:09-23:58:05 (none) notifier[28633]: INFO: #------------------   notification end    -------------------#

    I checked the status of the /opt/tmpfs filesystem, size is 32M and available 29M.  Don't know how large the executive report can get.  Also in /opt/tmpfs is a file called notifier.debug, but it is zero bytes in size and dated Aug 3.  Is there a way to turn on some sort of debugging for the notifier?  Thanks again for your help with this!
  • The error indicates that the notifier could not dispatch it's message to the SMTP daemon on the firewall. That's odd - normally, the exim should always listen locally and receive the notification mails. Mails might get stuck in the exim queue, but between the notifier and the exim there should not be an error possibility.
    Can you check and try to inject an smtp message manually from the console?
    Example:
     Code:
    host:/var/log # netcat localhost 25
    220 mx.domain.example ESMTP ready.
    HELO mydomain.com
    250 mx.domain.example Hello mydomain.com [127.0.0.1]
    MAIL FROM: mail@mydomain.com
    250 OK
    RCPT TO: me@mydomain.com
    250 Accepted
    DATA
    354 Enter message, ending with "." on a line by itself
    Subject: Test message
    This is a test message.
    .
    250 OK id=1BvDuZ-0007zx-1a
    QUIT
    221 mx.domain.example closing connection



    The smtp.log should show a mail delivery, and you should have a mail in your inbox.
  • Thank-you for your continued assistance, Andreas.  I did as you asked and sent a message from the console.  It worked properly, and I received the message as expected.  Here are the relevant lines from smtp.log:

    Code:

    2004:08:13-00:38:15 (none) exim[2257]: 2004-08-13 00:38:15 Start queue run: pid=2257
    2004:08:13-00:38:15 (none) exim[2257]: 2004-08-13 00:38:15 End queue run: pid=2257
    2004:08:13-00:44:04 (none) exim[2361]: 2004-08-13 00:44:04 1BvTum-0000c5-0O test@mydomain.ca H=(mydomain.ca) [127.0.0.1] P=smtp S=310
    2004:08:13-00:44:05 (none) exim[2366]: 2004-08-13 00:44:05 1BvTum-0000c5-0O => me@mydomain.ca R=smarthost T=remote_smtp H=209.xxx.xxx.xxx [209.xxx.xxx.xxx]
    2004:08:13-00:44:05 (none) exim[2366]: 2004-08-13 00:44:05 1BvTum-0000c5-0O Completed



    What do you think could be causing the notifier and exim to not communicate properly?
  • hello,on my asl 5.017 SMTP and DNS already runing but I met the same problem,what type of packet filter service utilize the notifier..