[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ossec-list
Subject:    Re: [ossec-list] [v2.8.3][ossec-maild] ERROR (smtp server)
From:       jbalbuenawsgsec () gmail ! com
Date:       2018-06-19 8:30:52
Message-ID: 1c24d6b1-0af5-421c-a8c0-5f12d7eadce5 () googlegroups ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I've already find out the solution!

In the file /etc/postfix/master.cf, i had to uncomment this line:

*smtp      inet  n       -       -       -       -       smtpd*

Right now, postfix is listening at 25 and 465:


*tcp        0      0 0.0.0.0:465                 0.0.0.0:*                  
LISTEN      26318/mastertcp        0      0 0.0.0.0:25                  
0.0.0.0:*                   LISTEN      26318/master*

Thanks.

El lunes, 18 de junio de 2018, 14:09:54 (UTC+2), dan (ddpbsd) escribió:
> 
> On Thu, Jun 7, 2018 at 2:28 AM,  <jbalbue...@gmail.com <javascript:>> 
> wrote: 
> > tcp        0      0 0.0.0.0:465             0.0.0.0:*               
> LISTEN 
> > 26256/master 
> > 
> 
> Is postfix listening on 127.0.0.1 port 25? 
> 
> > I can send emails through postfix from the terminal; the problem is that 
> > OSSEC does not send the requests to the postfix. 
> > 
> > El miércoles, 6 de junio de 2018, 16:37:20 (UTC+2), dan (ddpbsd) 
> escribió: 
> > > 
> > > On Tue, May 29, 2018 at 6:07 AM,  <jbalbue...@gmail.com> wrote: 
> > > > It's empy. 
> > > > 
> > > > There are no entries at maillog. 
> > > > 
> > > > However, if I send a mail with sendmail (echo "Subject: sendmail 
> test" | 
> > > > sendmail -v xxx@xxx.xxx), at /var/log/maillog: 
> > > > 
> > > > May 29 12:04:30 X postfix/pickup[8183]: 638F727EA4: uid=0 from=<root> 
> > > > May 29 12:04:30 X postfix/cleanup[8218]: 638F727EA4: 
> > > > message-id=<20180529100430.638F727EA4@X> 
> > > > May 29 12:04:30 X postfix/qmgr[8184]: 638F727EA4: from=<root@X>, 
> > > > size=314, 
> > > > nrcpt=1 (queue active) 
> > > > May 29 12:04:33 X postfix/smtp[8220]: 638F727EA4: to=<X@X>, 
> > > > relay=smtp-mail.outlook.com[40.100.175.146]:587, delay=2.7, 
> > > > delays=0.02/0/2.1/0.52, dsn=2.6.0, status=sent (250 2.6.0 
> > > > <20180529100430.638F727EA4@X> [InternalId=5665061863960, 
> > > > Hostname=DB7P193MB0457.EURP193.PROD.OUTLOOK.COM] 3116 bytes in 
> 0.347, 
> > > > 8.762 
> > > > KB/sec Queued mail for delivery) 
> > > > May 29 12:04:33 X postfix/cleanup[8218]: 1EA9427EB9: 
> > > > message-id=<20180529100433.1EA9427EB9@X> 
> > > > May 29 12:04:33 X postfix/bounce[8221]: 638F727EA4: sender delivery 
> > > > status 
> > > > notification: 1EA9427EB9 
> > > > May 29 12:04:33 X postfix/qmgr[8184]: 638F727EA4: removed 
> > > > 
> > > > 
> > > > What's the problem with ossec? 
> > > > 
> > > 
> > > No clue. Is postfix listening on 127.0.0.1:25? 
> > > 
> > > > El martes, 29 de mayo de 2018, 11:22:16 (UTC+2), dan (ddpbsd) 
> escribió: 
> > > > > 
> > > > > 
> > > > > 
> > > > > On Tue, May 29, 2018, 5:06 AM <jbalbue...@gmail.com> wrote: 
> > > > > > 
> > > > > > Hi, 
> > > > > > 
> > > > > > I am receiving the error: 
> > > > > > 
> > > > > > 2018/05/28 17:29:54 ossec-maild(1223): ERROR: Error Sending email 
> to 
> > > > > > 127.0.0.1 (smtp server) 
> > > > > > 2018/05/28 18:00:01 ossec-maild(1223): ERROR: Error Sending email 
> to 
> > > > > > 127.0.0.1 (smtp server) 
> > > > > > 2018/05/28 18:22:07 ossec-maild(1223): ERROR: Error Sending email 
> to 
> > > > > > 127.0.0.1 (smtp server) 
> > > > > > 
> > > > > > Postfix is already set up and it's working on fine. (postfix's log 
> is 
> > > > > > empty) 
> > > > > > 
> > > > > > I have changed smtp_relay in my global config to localhost and 
> > > > > > 127.0.0.1 
> > > > > > but neither worked. 
> > > > > > 
> > > > > > I have changed <email_from> in my ossec config to localhost and 
> > > > > > 127.0.0.1 
> > > > > > but neither worked. 
> > > > > 
> > > > > 
> > > > > 
> > > > > Check your postfix logs. 
> > > > > 
> > > > > > 
> > > > > > Thanks in advance. 
> > > > > > 
> > > > > > -- 
> > > > > > 
> > > > > > --- 
> > > > > > You received this message because you are subscribed to the Google 
> > > > > > Groups 
> > > > > > "ossec-list" group. 
> > > > > > To unsubscribe from this group and stop receiving emails from it, 
> send 
> > > > > > an 
> > > > > > email to ossec-list+...@googlegroups.com. 
> > > > > > For more options, visit https://groups.google.com/d/optout. 
> > > > 
> > > > -- 
> > > > 
> > > > --- 
> > > > You received this message because you are subscribed to the Google 
> > > > Groups 
> > > > "ossec-list" group. 
> > > > To unsubscribe from this group and stop receiving emails from it, 
> send 
> > > > an 
> > > > email to ossec-list+...@googlegroups.com. 
> > > > For more options, visit https://groups.google.com/d/optout. 
> > 
> > -- 
> > 
> > --- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "ossec-list" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to ossec-list+...@googlegroups.com <javascript:>. 
> > For more options, visit https://groups.google.com/d/optout. 
> 

-- 

--- 
You received this message because you are subscribed to the Google Groups \
"ossec-list" group. To unsubscribe from this group and stop receiving emails from it, \
send an email to ossec-list+unsubscribe@googlegroups.com. For more options, visit \
https://groups.google.com/d/optout.


[Attachment #5 (text/html)]

<div dir="ltr"><div>I&#39;ve already find out the \
solution!</div><div><br></div><div>In the file /etc/postfix/master.cf, i had to \
uncomment this line:</div><div><br></div><div><i>smtp           inet   n             \
-             -             -             -             \
smtpd</i><br></div><div><br></div><div>Right now, postfix is listening at 25 and \
465:</div><div><br></div><div><i>tcp               0           0 0.0.0.0:465          \
0.0.0.0:*                                   LISTEN           26318/master<br>tcp      \
0           0 0.0.0.0:25                                   0.0.0.0:*                  \
LISTEN           26318/master</i><br></div><div><br></div><div>Thanks.<br></div><br>El \
lunes, 18 de junio de 2018, 14:09:54 (UTC+2), dan (ddpbsd)  escribió:<blockquote \
class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc \
solid;padding-left: 1ex;">On Thu, Jun 7, 2018 at 2:28 AM,   &lt;<a href="javascript:" \
target="_blank" gdf-obfuscated-mailto="-u9H-uYtCAAJ" rel="nofollow" \
onmousedown="this.href=&#39;javascript:&#39;;return true;" \
onclick="this.href=&#39;javascript:&#39;;return true;">jbalbue...@gmail.com</a>&gt; \
wrote: <br>&gt; tcp            0         0 <a href="http://0.0.0.0:465" \
target="_blank" rel="nofollow" \
onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%3A465\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH4tbNlXuGKxE1ZSHuwF-iyIILrxw&#39;;return \
true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F0.0.0.0%3A4 \
65\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH4tbNlXuGKxE1ZSHuwF-iyIILrxw&#39;;return \
true;">0.0.0.0:465</a>                   0.0.0.0:*                      LISTEN \
<br>&gt; 26256/master <br>&gt;
<br>
<br>Is postfix listening on 127.0.0.1 port 25?
<br>
<br>&gt; I can send emails through postfix from the terminal; the problem is that
<br>&gt; OSSEC does not send the requests to the postfix.
<br>&gt;
<br>&gt; El miércoles, 6 de junio de 2018, 16:37:20 (UTC+2), dan (ddpbsd) escribió:
<br>&gt;&gt;
<br>&gt;&gt; On Tue, May 29, 2018 at 6:07 AM,   &lt;<a>jbalbue...@gmail.com</a>&gt; \
wrote: <br>&gt;&gt; &gt; It&#39;s empy.
<br>&gt;&gt; &gt;
<br>&gt;&gt; &gt; There are no entries at maillog.
<br>&gt;&gt; &gt;
<br>&gt;&gt; &gt; However, if I send a mail with sendmail (echo &quot;Subject: \
sendmail test&quot; | <br>&gt;&gt; &gt; sendmail -v xxx@xxx.xxx), at \
/var/log/maillog: <br>&gt;&gt; &gt;
<br>&gt;&gt; &gt; May 29 12:04:30 X postfix/pickup[8183]: 638F727EA4: uid=0 \
from=&lt;root&gt; <br>&gt;&gt; &gt; May 29 12:04:30 X postfix/cleanup[8218]: \
638F727EA4: <br>&gt;&gt; &gt; message-id=&lt;20180529100430.<wbr>638F727EA4@X&gt;
<br>&gt;&gt; &gt; May 29 12:04:30 X postfix/qmgr[8184]: 638F727EA4: \
from=&lt;root@X&gt;, <br>&gt;&gt; &gt; size=314,
<br>&gt;&gt; &gt; nrcpt=1 (queue active)
<br>&gt;&gt; &gt; May 29 12:04:33 X postfix/smtp[8220]: 638F727EA4: to=&lt;X@X&gt;,
<br>&gt;&gt; &gt; relay=<a href="http://smtp-mail.outlook.com" target="_blank" \
rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2 \
Fsmtp-mail.outlook.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHNmeDR0L2_gMwLQSPgZYD0Nv7CFQ&#39;;return \
true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsmtp-mail.o \
utlook.com\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHNmeDR0L2_gMwLQSPgZYD0Nv7CFQ&#39;;return \
true;">smtp-mail.outlook.com</a>[<wbr>40.100.175.146]:587, delay=2.7, <br>&gt;&gt; \
&gt; delays=0.02/0/2.1/0.52, dsn=2.6.0, status=sent (250 2.6.0 <br>&gt;&gt; &gt; \
&lt;20180529100430.638F727EA4@X&gt; [InternalId=5665061863960, <br>&gt;&gt; &gt; \
Hostname=<a href="http://DB7P193MB0457.EURP193.PROD.OUTLOOK.COM" target="_blank" \
rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2 \
FDB7P193MB0457.EURP193.PROD.OUTLOOK.COM\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEIPfg1sCaZcQg9mz-Kusqs6budbw&#39;;return \
true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2FDB7P193MB04 \
57.EURP193.PROD.OUTLOOK.COM\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEIPfg1sCaZcQg9mz-Kusqs6budbw&#39;;return \
true;">DB7P193MB0457.<wbr>EURP193.PROD.OUTLOOK.COM</a>] 3116 bytes in 0.347, \
<br>&gt;&gt; &gt; 8.762 <br>&gt;&gt; &gt; KB/sec Queued mail for delivery)
<br>&gt;&gt; &gt; May 29 12:04:33 X postfix/cleanup[8218]: 1EA9427EB9:
<br>&gt;&gt; &gt; message-id=&lt;20180529100433.<wbr>1EA9427EB9@X&gt;
<br>&gt;&gt; &gt; May 29 12:04:33 X postfix/bounce[8221]: 638F727EA4: sender delivery
<br>&gt;&gt; &gt; status
<br>&gt;&gt; &gt; notification: 1EA9427EB9
<br>&gt;&gt; &gt; May 29 12:04:33 X postfix/qmgr[8184]: 638F727EA4: removed
<br>&gt;&gt; &gt;
<br>&gt;&gt; &gt;
<br>&gt;&gt; &gt; What&#39;s the problem with ossec?
<br>&gt;&gt; &gt;
<br>&gt;&gt;
<br>&gt;&gt; No clue. Is postfix listening on <a href="http://127.0.0.1:25" \
target="_blank" rel="nofollow" \
onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F127.0.0.1%3A25 \
\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHmJtVMGHigwgY2S3_q7Cy4yW2dPA&#39;;return \
true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F127.0.0.1%3 \
A25\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHmJtVMGHigwgY2S3_q7Cy4yW2dPA&#39;;return \
true;">127.0.0.1:25</a>? <br>&gt;&gt;
<br>&gt;&gt; &gt; El martes, 29 de mayo de 2018, 11:22:16 (UTC+2), dan (ddpbsd) \
escribió: <br>&gt;&gt; &gt;&gt;
<br>&gt;&gt; &gt;&gt;
<br>&gt;&gt; &gt;&gt;
<br>&gt;&gt; &gt;&gt; On Tue, May 29, 2018, 5:06 AM \
&lt;<a>jbalbue...@gmail.com</a>&gt; wrote: <br>&gt;&gt; &gt;&gt;&gt;
<br>&gt;&gt; &gt;&gt;&gt; Hi,
<br>&gt;&gt; &gt;&gt;&gt;
<br>&gt;&gt; &gt;&gt;&gt; I am receiving the error:
<br>&gt;&gt; &gt;&gt;&gt;
<br>&gt;&gt; &gt;&gt;&gt; 2018/05/28 17:29:54 ossec-maild(1223): ERROR: Error Sending \
email to <br>&gt;&gt; &gt;&gt;&gt; 127.0.0.1 (smtp server)
<br>&gt;&gt; &gt;&gt;&gt; 2018/05/28 18:00:01 ossec-maild(1223): ERROR: Error Sending \
email to <br>&gt;&gt; &gt;&gt;&gt; 127.0.0.1 (smtp server)
<br>&gt;&gt; &gt;&gt;&gt; 2018/05/28 18:22:07 ossec-maild(1223): ERROR: Error Sending \
email to <br>&gt;&gt; &gt;&gt;&gt; 127.0.0.1 (smtp server)
<br>&gt;&gt; &gt;&gt;&gt;
<br>&gt;&gt; &gt;&gt;&gt; Postfix is already set up and it&#39;s working on fine. \
(postfix&#39;s log is <br>&gt;&gt; &gt;&gt;&gt; empty)
<br>&gt;&gt; &gt;&gt;&gt;
<br>&gt;&gt; &gt;&gt;&gt; I have changed smtp_relay in my global config to localhost \
and <br>&gt;&gt; &gt;&gt;&gt; 127.0.0.1
<br>&gt;&gt; &gt;&gt;&gt; but neither worked.
<br>&gt;&gt; &gt;&gt;&gt;
<br>&gt;&gt; &gt;&gt;&gt; I have changed &lt;email_from&gt; in my ossec config to \
localhost and <br>&gt;&gt; &gt;&gt;&gt; 127.0.0.1
<br>&gt;&gt; &gt;&gt;&gt; but neither worked.
<br>&gt;&gt; &gt;&gt;
<br>&gt;&gt; &gt;&gt;
<br>&gt;&gt; &gt;&gt;
<br>&gt;&gt; &gt;&gt; Check your postfix logs.
<br>&gt;&gt; &gt;&gt;
<br>&gt;&gt; &gt;&gt;&gt;
<br>&gt;&gt; &gt;&gt;&gt; Thanks in advance.
<br>&gt;&gt; &gt;&gt;&gt;
<br>&gt;&gt; &gt;&gt;&gt; --
<br>&gt;&gt; &gt;&gt;&gt;
<br>&gt;&gt; &gt;&gt;&gt; ---
<br>&gt;&gt; &gt;&gt;&gt; You received this message because you are subscribed to the \
Google <br>&gt;&gt; &gt;&gt;&gt; Groups
<br>&gt;&gt; &gt;&gt;&gt; &quot;ossec-list&quot; group.
<br>&gt;&gt; &gt;&gt;&gt; To unsubscribe from this group and stop receiving emails \
from it, send <br>&gt;&gt; &gt;&gt;&gt; an
<br>&gt;&gt; &gt;&gt;&gt; email to <a>ossec-list+...@googlegroups.<wbr>com</a>.
<br>&gt;&gt; &gt;&gt;&gt; For more options, visit <a \
href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" \
onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" \
onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return \
true;">https://groups.google.com/d/<wbr>optout</a>. <br>&gt;&gt; &gt;
<br>&gt;&gt; &gt; --
<br>&gt;&gt; &gt;
<br>&gt;&gt; &gt; ---
<br>&gt;&gt; &gt; You received this message because you are subscribed to the Google
<br>&gt;&gt; &gt; Groups
<br>&gt;&gt; &gt; &quot;ossec-list&quot; group.
<br>&gt;&gt; &gt; To unsubscribe from this group and stop receiving emails from it, \
send <br>&gt;&gt; &gt; an
<br>&gt;&gt; &gt; email to <a>ossec-list+...@googlegroups.<wbr>com</a>.
<br>&gt;&gt; &gt; For more options, visit <a \
href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" \
onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" \
onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return \
true;">https://groups.google.com/d/<wbr>optout</a>. <br>&gt;
<br>&gt; --
<br>&gt;
<br>&gt; ---
<br>&gt; You received this message because you are subscribed to the Google Groups
<br>&gt; &quot;ossec-list&quot; group.
<br>&gt; To unsubscribe from this group and stop receiving emails from it, send an
<br>&gt; email to <a href="javascript:" target="_blank" \
gdf-obfuscated-mailto="-u9H-uYtCAAJ" rel="nofollow" \
onmousedown="this.href=&#39;javascript:&#39;;return true;" \
onclick="this.href=&#39;javascript:&#39;;return \
true;">ossec-list+...@<wbr>googlegroups.com</a>. <br>&gt; For more options, visit <a \
href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" \
onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" \
onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return \
true;">https://groups.google.com/d/<wbr>optout</a>. <br></blockquote><div \
style="display: none;"></div></div>

<p></p>

-- <br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups \
&quot;ossec-list&quot; group.<br /> To unsubscribe from this group and stop receiving \
emails from it, send an email to <a \
href="mailto:ossec-list+unsubscribe@googlegroups.com">ossec-list+unsubscribe@googlegroups.com</a>.<br \
/> For more options, visit <a \
href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br \
/>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic