Menu

Email Doesn't Work - Base 1.4.1

BASE-user
Joe User
2008-11-17
2013-06-03
  • Joe User

    Joe User - 2008-11-17

    My install (Fedora 9 / Base 1.4.1) is working well -- Except Email Doesn't Work....

    If select alerts to email, the page "search query info" and "summary info" section show up but it is BLANK underneath - and no email arrives.  This happens for all email options on full, summary, and csv email.

    There is no error shown.  I have all email parameters setup correctly (have tried both localhost and and external smtp hosts).  SMTP auth is not required for my internal network.  I even made a test php email script to ensure the sendmail and php are configured correctly and it sent fine.

        $action_email_smtp_host = 'localhost';  (have also tried smtp.mydomain.com)
        $action_email_smtp_auth = 0;
        $action_email_smtp_user = '';
        $action_email_smtp_pw = '';
        $action_email_from = 'root@mydomain.com';
        $action_email_subject = 'IDS Alert';
        $action_email_msg = '';
        $action_email_mode = 0;

    Have checked httpd,maillog,message logs and there is nothing to go off of - have also turned on base's debug option and can't find anythign relevant.

    Any help would be greatly appreciated!

     
    • Joe User

      Joe User - 2008-11-19

      Anybody experience something like this?  If not it must be something simple..

       
    • vagab0nd

      vagab0nd - 2008-11-20

      Have the same problem with base 1.4.0 on fedora core 9.

      V

       
    • dafank

      dafank - 2008-11-25

      Same here.

       
    • Karl  Kamin

      Karl Kamin - 2008-11-25

      This should be the fix. 
      file is includes/base_action.inc.php

      Basically, the $hdrs array needs the 'To' set
      and the smtp line needs to be replaced with sendmail.

      783d782
      <               'To'      => $action_arg,
      1657,1659c1656,1657
      <       $smtp =& Mail::factory('sendmail',
      <                               array ('sendmail_path' => '/usr/sbin/sendmail',
      <                                      'host'     => $smtp_host,
      ---
      >       $smtp =& Mail::factory('smtp',
      >                               array ('host'     => $smtp_host,

      Karl
      Heavy lifting done by Dave B.

       
      • Joe User

        Joe User - 2008-11-25

        Didn't work for some reason.  Same as before, returns to blank bottom half of the page and no email arrives.  I do see what you're getting at though...

        What settings are needed in the base_conf file now?  Maybe it's something Im missing there?

        Thanks

         
      • dafank

        dafank - 2008-11-25

        It didn't work either (OpenBSD 4.3)

         
      • Rick Chisholm

        Rick Chisholm - 2009-02-02

        yep - that worked like a charm.  thx!

         
    • Karl  Kamin

      Karl Kamin - 2008-12-01

      Yes you must edit the base_conf.php file. 

      This is the section.

          $action_email_smtp_host = 'localhost';
          $action_email_smtp_auth = 0;
          $action_email_smtp_user = '';
          $action_email_smtp_pw = '';
          $action_email_from = 'root@director.xxxx.xx.xxx';
          $action_email_subject = 'BASE Incident Report';
          $action_email_msg = '';
          $action_email_mode = 0;

       
      I have used various email servers, but here localhost works.  (verify that you
      can send email by hand)
      NO auth or user or pw.
      Message mode 0 means alert is in body vs attachment (1)

      Karl

       
      • Joe User

        Joe User - 2008-12-02

        Set config per your instructions - still doesn't send (returns to a half blank page).  There are many different views/pages and email sending options... Maybe it's something to do with what/how is requested to be sent?

        Would you mind describing the process you go through to send?  Thanks for your help.

         
    • Mateo De Vaca

      Mateo De Vaca - 2009-01-20

      I also had the same issue.  I would select an event, under actions select send an email, and then chose the selected events button and my browser went to a mainly blank page with no email being sent.

      After some searching I stumbled on the fact that I needed to add a couple of extra pear modules:

        Mail
        Mail_Mime
        Net_SMTP

      Once loaded and the configuration above from Karl everything worked.

      Also, I am using Fedora and the SE was blocking the HTTPSd server from sending an email...

      Good Luck.

       
    • Rick Chisholm

      Rick Chisholm - 2009-02-02

      Same thing here - BASE 1.4.1 on FreeBSD 6.3

       

Log in to post a comment.