# Question about no mail from bro-2.5.4

**URL:** <https://community.zeek.org/t/question-about-no-mail-from-bro-2-5-4/5414>\
**Category:** Zeek\
**Created:** [August 15, 2018, 10:21am UTC](https://community.zeek.org/t/question-about-no-mail-from-bro-2-5-4/5414 "2018-08-15T10:21:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wangdj](https://avatars.discourse-cdn.com/v4/letter/w/e19b73/32.png) [@wangdj](https://community.zeek.org/u/wangdj)\
**Post date:** [August 15, 2018, 10:21am UTC](https://community.zeek.org/t/question-about-no-mail-from-bro-2-5-4/5414/1 "2018-08-15T10:21:01Z")

</div>

Hi,

I write a bro shell file to test function of notice mail. But when i run this shell, the mailbox “[dj5521@163.com](mailto:dj5521@163.com)” does not receive any mail.  
The following is the shell file:

@load base/protocols/conn  
@load base/protocols/http  
@load base/frameworks/logging  
@load base/frameworks/notice

module HTTP;

export {  
redef enum Notice::Type += {  
Http\_Notice\_Plicy  
};

#redef Notice::mail\_dest = “[dj5521@163.com](mailto:dj5521@163.com)”;  
}

redef Notice::mail\_dest = “[dj5521@163.com](mailto:dj5521@163.com)”;

event http\_message\_done(c: connection, is\_orig: bool, stat: http\_message\_stat)  
{  
local message = fmt("====http done====");  
NOTICE([$note=Http\_Notice\_Plicy, $msg=message,  
$conn=c,  
$identifier=cat(c$id$resp\_h,c$id$resp\_p,c$http$uid)]);  
}

hook Notice::policy(n: Notice::Info)  
{  
print “===========\>run HTTP policy\<=============”;  
if ( n$note == HTTP::Http\_Notice\_Plicy )  
add n$actions[Notice::ACTION\_EMAIL];  
}

When i run this file, i do not get any error and bro produces notice.log and weird.log correctly. I have installed mail tool on my centos system already.  
Could you please help me to look what wrong with this shell file?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [May 6, 2022, 3:45pm UTC](https://community.zeek.org/t/question-about-no-mail-from-bro-2-5-4/5414/2 "2022-05-06T15:45:59Z")

</div>


