Thanks Mike,

That's weird because I do have the $config['email']['default'] to send to my default email. When I added the Default_Only part though it seemed to have fixed the problem.

After attempting again it seems I'm running into another issue. 

Mailer Error: Failed to connect to xxxx.protection.outook.com:25 [SMTP: Failed to connect socket: Connection timed out (code: -1, response: )]

I can connect fine to the server via telnet port 25.

Looking at /var/log/mail.log I see the following which Im unsure where it's picking up smmsp@xxxx.com from and why its trying to send to root.

Sep  8 12:20:01 cacti postfix/pickup[1349]: 2922CA0187: uid=111 from=<smmsp>
Sep  8 12:20:01 cacti postfix/cleanup[1756]: 2922CA0187: message-id=<20140908172001.2922CA0187@cacti>
Sep  8 12:20:01 cacti postfix/qmgr[8343]: 2922CA0187: from=<smmsp@xxxx>, size=658, nrcpt=1 (queue active)
Sep  8 12:20:06 cacti postfix/smtp[1758]: 2922CA0187: to=<root@xxxxx>, orig_to=<root>, relay=xxxxx.protection.outlook.com[207.46.163.247]:25, delay=4.9, delays=0.03/0.04/1.5/3.3, dsn=2.6.0, status=sent (250 2.6.0 <20140908172001.2922CA0187@cacti> [InternalId=11742440588743, Hostname=CY1PR0401MB0986.namprd04.prod.outlook.com] Queued mail for delivery)
Sep  8 12:20:06 cacti postfix/qmgr[8343]: 2922CA0187: removed


On Mon, Sep 8, 2014 at 1:12 PM, Mike Stupalov <mike@observium.org> wrote:
On 08.09.2014 18:03, Darian Jimenez wrote:
Mike,

I tried but it keeps saying "NOT ended"
That because you not have any recipient for these device.
 You can set snmp sysContact on specific device
or default recipient for all devices: $config['email']['default']
than try again.

Also if you want sent all alerts only to one default recipient,
set $config['email']['default_only'] to TRUE.



below is the debug output

root@cacti:/opt/observium# ./test_mail.php -h fwtec.sup.xxxxx.local -d
CMD[/bin/hostname -f]
RUNTIME[0.0043s]
OUTPUT[
cacti
]
Observium v0.14.9.5792
Test E-mail Configuration

My Hostname: cacti
E-mails ENABLED globally
E-mails use SMTP backend
  smtp port: [25]
  smtp timeout: [10]
  smtp auth: [FALSE]
E-mails send from:
  "Observium" <observium@xxxxxxs>

SQL[SELECT * FROM `devices` WHERE `hostname` LIKE 'fwtec.sup.xxxxxx.local']

SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '16' AND `attrib_type` = 'override_sysContact_bool']

SQL[SELECT `contact_descr`, `contact_endpoint` FROM `alert_contacts` WHERE `contact_disabled` = 0 AND `contact_method` = 'email' AND `contact_id` IN (SELECT `alert_contact_id` FROM `alert_contacts_assoc` WHERE `alert_checker_id` = '');]
Try send test notification for fwtec.sup.xxxx.local to these email(s):


SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '16' AND `attrib_type` = 'disable_notify']

SQL[SELECT DISTINCT `contact_method` FROM `alert_contacts` WHERE `contact_disabled` = 0 AND `contact_id` IN (SELECT `alert_contact_id` FROM `alert_contacts_assoc` WHERE `alert_checker_id` = '');]

SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '16' AND `attrib_type` = 'override_sysContact_bool']

SQL[SELECT `contact_descr`, `contact_endpoint` FROM `alert_contacts` WHERE `contact_disabled` = 0 AND `contact_method` = 'email' AND `contact_id` IN (SELECT `alert_contact_id` FROM `alert_contacts_assoc` WHERE `alert_checker_id` = '');]
Notification for fwtec.sup.xxxx.local NOT sended.


On Mon, Sep 8, 2014 at 2:26 AM, Mike Stupalov <mike@observium.org> wrote:
Hi Darian,

please use updated (latest svn) version.
Run ./test_mail.php -h fwtec.sup.domain.local and if anyway mail not sended,
run same script with -d option and send me full output from this script.

SMTP backend should work properly.


On Fri, Sep 5, 2014 at 1:48 AM, Darian Jimenez <darian929@gmail.com> wrote:
Hello,

I was able to get some alert checks going but email doesn't seem to be working.

When I try the test_mail.php script it eventually times out giving me the following.

./test_mail.php -h fwtec.sup.domain.local

Sending test notification for fwtec.sup.domain.local...Mailer Error: Failed to connect to myemailserverl.protection.outook.com:25 [SMTP: Failed to connect socket: Connection timed out (code: -1, response: )]
 done.


my config.php has the following for email settings.

$config['alerts']['email']['default'] = "xxx@mydomain";
$config['email_from'] = "Observium <observium@mydomain.com>";
$config['email_backend'] = "smtp";
$config['email_smtp_host'] = 'mymaildoman.protection.outook.com';
$config['email_smtp_port'] = 25;
$config['alerts']['email']['enable'] = TRUE;
$config['email_smtp_auth'] = TRUE;
$config['email_smtp_username'] = 'xxx@mydomain';
$config['email_smtp_password'] = 'xxxx';
$config['email_smtp_timeout'] = 10;


I am able to successfully telnet to my email server on port 25 but can't seem to send.

What am i Missing?

_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium




--
Mike Stupalov
http://observium.org/

_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium




-- 
Mike Stupalov
http://observium.org

_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium