Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Enviar alertas a correos Office365
#1
Buenos días,



He estado intentando configurar las alertas para enviar los correos desde el servidor de pandora a nuestro correo de administración de office365, pero no he conseguido hacerlo funcionar.




Instalé postfix y configuré todo siguiendo el manual de alertas:



(https://pandorafms.com/docs/index.php?ti...es:Alertas)




Configuré main.cf así:



teniendo en cuenta que mis direcciones de correo son ([email protected])
Code:
myhostname = organizacion.es # Modificar por nombre propio
relayhost = [smtp.office365.com]:587
mynetworks = 127.0.0.0/8
inet_interfaces = loopback-only
smtp_use_tls = yes
smtp_always_send_ehlo = yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_sasl_tls_security_options = noanonymous
smtp_tls_security_level = encrypt
Además de realizar los otros 6 pasos indicados en la guia, de crear sasl_passwd, hacerle hash, protegerle etc..


y Pandora_server.conf así:

Code:
mta_address localhost
#mta_port 25
#mta_user [email protected]
#mta_pass mypassword
#mta_auth LOGIN
#mta_from Pandora FMS <[email protected]>



La alerta se dispara en pandora FMS, pero el correo no llega a mi cuenta.. 

Al realizar el tail -f me muestra lo siguiente:
(He sustituido mi direccion por   [email protected])
Code:
[[email protected] ~]# tail -f /var/log/maillog
Jan  8 08:28:37 PANDORA postfix/qmgr[4359]: 36647221450: from=<>, size=23055, nrcpt=1 (queue active)
Jan  8 08:28:37 PANDORA postfix/smtp[5670]: connect to smtp.office365.com[2603:1026:c0b:1d::2]:587: Network is unreachable
Jan  8 08:28:37 PANDORA postfix/smtp[5670]: connect to smtp.office365.com[2603:1026:c0b:1c::2]:587: Network is unreachable
Jan  8 08:28:37 PANDORA postfix/smtp[5670]: connect to smtp.office365.com[2603:1026:c0b:16::2]:587: Network is unreachable
Jan  8 08:28:39 PANDORA postfix/smtp[5670]: BAD02221455: to=<[email protected]>, relay=smtp.office365.com[52.97.232.194]:587, delay=405, delays=403/0.11/1.4/0.67, dsn=5.2.0, status=bounced (host smtp.office365.com[52.97.232.194] said: 554 5.2.0 STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message. 0.35250:83310000, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.44866:E4270000, 1.36674:0E000000, 1.61250:00000000, 1.45378:E9270000, 1.44866:02020000, 16.55847:30130000, 17.43559:0000000024020000000000000000000000000000, 20.52176:140F9E8E0600F01F00000000, 20.50032:140F9E8E7617F01F00000000, 0.35180:140F9E8E, 255.23226:00000000, 255.27962:0A000000, 255.27962:0E000000, 255.31418:140F9E8E, 0.35250:0A002530, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.44866:4C000000, 1.36674:32000000, 1.61250:00000000, 1.45378:51000000, 1.44866:01000000, 16.55847:B8000000, 17.43559:0000000078030000000000000000000000000000, 20.52176:140F9E8E060010103F000000, 20.50032:140F9E8E7617000036000000, 0.35180:44000000, 255.23226:4800D13D, 255.27962:0A000000, 255.27962:32000000, 255.17082:DC040000, 0.27745:4E000000, 4.21921:DC040000, 255.27962:FA000000, 255.1494:77000000, 0.38698:05000780, 0.37692:01040480, 0.37948:01040480, 5.33852:00000000534D545000040480, 7.36354:010000000000010900000000, 4.56248:DC040000, 7.40748:010000000000010B39304D42, 7.57132:0000000000000000302D3135, 1.63016:32000000, 4.39640:DC040000, 8.45434:938DE6F423949B4FB2533EED3E5F730C4BCA1504, 1.46798:04000000, 5.10786:0000000031352E32302E333734322E3030363A414D37503139304D42303538313A61393639326336302D313562302D343133312D626561352D3163643632616361646233613A393237353600, 7.51330:8499BC04A7B3D80812000000, 0.39570:12000000, 1.55954:0A000000, 0.49266:56000000, 1.33010:0A000000, 2.54258:00000000, 0.40002:02000000, 1.56562:00000000, 1.64146:32000000, 1.33010:32000000, 2.54258:DC040000, 255.1750:0A005D36, 255.31418:6B010000, 0.22753:A0000000, 2
Jan  8 08:28:39 PANDORA postfix/smtp[5685]: B862E221454: to=<[email protected]>, relay=smtp.office365.com[52.97.232.194]:587, delay=405, delays=403/0.11/1.4/0.66, dsn=5.2.0, status=bounced (host smtp.office365.com[52.97.232.194] said: 554 5.2.0 STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message. 0.35250:83310000, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.44866:E4270000, 1.36674:0E000000, 1.61250:00000000, 1.45378:E9270000, 1.44866:02020000, 16.55847:2E130000, 17.43559:0000000024020000000000000000000000000000, 20.52176:140F9E8E0600F01F00000000, 20.50032:140F9E8E7617F01F00000000, 0.35180:140F9E8E, 255.23226:0A000000, 255.27962:0A000000, 255.27962:0E000000, 255.31418:140F9E8E, 0.35250:0A002530, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.44866:4C000000, 1.36674:32000000, 1.61250:00000000, 1.45378:51000000, 1.44866:01000000, 16.55847:B8000000, 17.43559:0000000078030000000000000000000000000000, 20.52176:140F9E8E060010100C000000, 20.50032:140F9E8E7617101033000000, 0.35180:01000000, 255.23226:9B000000, 255.27962:0A000000, 255.27962:32000000, 255.17082:DC040000, 0.27745:140F9E8E, 4.21921:DC040000, 255.27962:FA000000, 255.1494:77000000, 0.38698:00000000, 0.37692:01000000, 0.37948:00000000, 5.33852:00000000534D545000040480, 7.36354:010000000000010900000000, 4.56248:DC040000, 7.40748:010000000000010B39304D42, 7.57132:0000000000000000302D3135, 1.63016:32000000, 4.39640:DC040000, 8.45434:938DE6F423949B4FB2533EED3E5F730C0FB9A604, 1.46798:04000000, 5.10786:0000000031352E32302E333734322E3030363A414D37503139304D42303538313A61393639326336302D313562302D343133312D626561352D3163643632616361646233613A393237353600, 7.51330:8499BC04A7B3D80818000000, 0.39570:00000000, 1.55954:0A000000, 0.49266:56000000, 1.33010:0A000000, 2.54258:00000000, 0.40002:02000000, 1.56562:00000000, 1.64146:32000000, 1.33010:32000000, 2.54258:DC040000, 255.1750:0A005D36, 255.31418:6B010000, 0.22753:A0000000, 2
Jan  8 08:28:39 PANDORA postfix/qmgr[4359]: B862E221454: removed
Jan  8 08:28:39 PANDORA postfix/qmgr[4359]: BAD02221455: removed
Jan  8 08:28:39 PANDORA postfix/smtp[5686]: 36647221450: to=<[email protected]>, relay=smtp.office365.com[52.97.201.242]:587, delay=705, delays=703/0.12/1.5/0.55, dsn=5.2.0, status=bounced (host smtp.office365.com[52.97.201.242] said: 554 5.2.0 STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message. 0.35250:32040000, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.44866:DB270000, 1.36674:0E000000, 1.61250:00000000, 1.45378:E0270000, 1.44866:02020000, 16.55847:2D130000, 17.43559:0000000024020000000000000300000000000000, 20.52176:140F9E8E0600103100000000, 20.50032:140F9E8E7617000000000000, 0.35180:140F9E8E, 255.23226:54040000, 255.27962:0A000000, 255.27962:0E000000, 255.31418:56040000, 0.35250:1F001A00, 1.36674:0A000000, 1.61250:00000000, 1.45378:02000000, 1.44866:4C000000, 1.36674:32000000, 1.61250:00000000, 1.45378:51000000, 1.44866:01000000, 16.55847:B8000000, 17.43559:0000000078030000000000000000000000000000, 20.52176:140F9E8E0600101074020000, 20.50032:140F9E8E7617000010320000, 0.35180:79020000, 255.23226:0A008010, 255.27962:0A000000, 255.27962:32000000, 255.17082:DC040000, 0.27745:46320000, 4.21921:DC040000, 255.27962:FA000000, 255.1494:4B320000, 0.38698:05000780, 0.37692:01040480, 0.37948:01040480, 5.33852:00000000534D545000040480, 7.36354:010000000000010901040480, 4.56248:DC040000, 7.40748:010000000000010B302E3337, 7.57132:000000000000000039304D42, 1.63016:32000000, 4.39640:DC040000, 8.45434:938DE6F423949B4FB2533EED3E5F730C61646233, 1.46798:04000000, 5.10786:0000000031352E32302E333734322E3030363A414D37503139304D42303538313A61393639326336302D313562302D343133312D626561352D3163643632616361646233613A393237353600, 7.51330:BDA6C404A7B3D80812000000, 0.39570:12000000, 1.55954:0A000000, 0.49266:02000000, 1.33010:0A000000, 2.54258:00000000, 0.40002:7A000000, 1.56562:00000000, 1.64146:32000000, 1.33010:32000000, 2.54258:DC040000, 255.1750:0A002E81, 255.31418:49340000, 0.22753:CE020000, 2
Jan  8 08:28:39 PANDORA postfix/qmgr[4359]: 36647221450: removed
Jan  8 08:52:02 PANDORA postfix/pickup[4358]: AAAFE22144E: uid=0 from=<root>
Jan  8 08:52:02 PANDORA postfix/cleanup[9992]: AAAFE22144E: message-id=<[email protected]>
Jan  8 08:52:02 PANDORA postfix/qmgr[4359]: AAAFE22144E: from=<[email protected]>, size=396, nrcpt=1 (queue active)
Jan  8 08:52:02 PANDORA postfix/local[9994]: AAAFE22144E: to=<[email protected]>, relay=local, delay=0.05, delays=0.03/0.01/0/0.01, dsn=5.1.1, status=bounced (unknown user: "nombre")
Jan  8 08:52:02 PANDORA postfix/cleanup[9992]: B4942221450: message-id=<[email protected]>
Jan  8 08:52:02 PANDORA postfix/qmgr[4359]: B4942221450: from=<>, size=2023, nrcpt=1 (queue active)
Jan  8 08:52:02 PANDORA postfix/bounce[9995]: AAAFE22144E: sender non-delivery notification: B4942221450
Jan  8 08:52:02 PANDORA postfix/qmgr[4359]: AAAFE22144E: removed
Jan  8 08:52:02 PANDORA postfix/local[9994]: B4942221450: to=<[email protected]anizacion.es>, relay=local, delay=0.02, delays=0/0/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
Jan  8 08:52:02 PANDORA postfix/qmgr[4359]: B4942221450: removed



Alguien me puede indicar si estoy realizando algo mal?
Gracias y un saludo.
 Reply
#2
Buenas,

¿Podrías indicarnos la versión de Pandora FMS que estas usando? También no seria de ayuda que configurases temporalmente la opción de verbosity del fichero padora_server.conf a 10 y que nos mandases la información que veas en el pandora_server.log referente al correo.

Además de eso, por lo que entiendo estas configurando el servidor de correo postfix para que envie los correos al servidor de correo de office 365... No se si sabes que puedes configurar pandora para que funcione directamente con tu servidor de office 365, lo cual creo que te ahorraría mucho trabajo.

Saludos
Diego
 Reply
#3
Buenos días Diego y gracias por la respuesta.

La versión que estoy utilizando actualmente es 7.0NG.750 (P) 201111.

Para que pandora funcione directamente y evitar el postfix, que tendría que hacer?
tendría que cumplimentar todas las lineas del pandora_server.conf??

Si me das instrucciones de como realizarlo lo intento, pero la única documentación que encontre al respecto era la de configurarlo mediante postfix.
 Reply
#4
Buenas,

Siempre recomendamos que Pandora FMS este actualizado a la ultima versión ya que puede darse el caso de que existan bugs que puedan darte problemas y que se solucionen simplemente actualizando, la ultima versión a día de hoy es la 751.

Respecto a lo que preguntas de las líneas del pandora_server.conf, puedes configurar el correo de PandoraFMS tanto mediante consola como mediante el fichero .conf, solo tienes que saber que siempre prevalecerá lo que tengas en el fichero .conf, por lo que si descomentas las líneas que hacen referencia al correo lo que tengas en la consola no se usará.

En cuanto a los pasos que deberías seguir para configurar el correo te dejo un enlace a la wiki de Pandora FMS, siguiéndolo no deberías tener problemas. Ten en cuenta que este apartado configura todo mediante el fichero .conf, por lo que tengas configurado en la consola web de Pandora FMS no tendrá ningún valor.

https://pandorafms.com/docs/index.php?ti..._Office365

Saludos
Diego
 Reply
#5
Buenos días Diego,

Voy a actualizar el firm a la versión 751.

Respecto al enlace que me has proporcionado, es el mismo el cual seguí en un principio, y las pautas que dá es para configurarlo mediante Postfix, que si no he entendido mal en tu primer mensaje es independiente de pandora, es decir, puedo hacerlo sin configurar postfix y debería funcionar.

He tratado de configurarlo tanto por la consola, como por ficheros, y con ninguna de las dos he conseguido hacerlo funcionar.

Te dejo captura de la consola y configuración del pandora_server.conf, a ver si es que tengo algo mal configurado.

Consola:
[Image: image.png]
https://ibb.co/nPP1gDt

Pandora_server.conf
Code:
mta_address smtp.office365.com
mta_port 587
mta_user [email protected]
mta_pass ******
mta_auth LOGIN
mta_from Pandora FMS <[email protected]>
mta_encryption starttls
* He intentado el mta_address como localhost y con la IP de smtp.office365.com


En pandora_server.log  aparece la linea:
Code:
"2021-01-18 08:28:39 Core: PANDORA [V1] [ERROR] Sending email to [email protected] with                    subject [PANDORA] Alert"

En el maillog
Code:
[[email protected] ~]# cat /var/log/maillog
Jan 17 04:01:04 PANDORA postfix/pickup[41793]: 32E77221445: uid=0 from=<root>
Jan 17 04:01:04 PANDORA postfix/cleanup[42562]: 32E77221445: message-id=<[email protected]                  company.es>
Jan 17 04:01:04 PANDORA postfix/qmgr[4359]: 32E77221445: from=<[email protected]>, size=13899, nrcpt=1 (q                  ueue active)
Jan 17 04:01:04 PANDORA postfix/local[42565]: 32E77221445: to=<[email protected]>, orig_to=<root>, relay=                  local, delay=1.4, delays=1.3/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 17 04:01:04 PANDORA postfix/qmgr[4359]: 32E77221445: removed
Jan 17 05:01:04 PANDORA postfix/pickup[41793]: 1F23E221445: uid=0 from=<root>
Jan 17 05:01:04 PANDORA postfix/cleanup[53552]: 1F23E221445: message-id=<[email protected]                  company.es>
Jan 17 05:01:04 PANDORA postfix/qmgr[4359]: 1F23E221445: from=<[email protected]>, size=13899, nrcpt=1 (q                  ueue active)
Jan 17 05:01:04 PANDORA postfix/local[53555]: 1F23E221445: to=<[email protected]>, orig_to=<root>, relay=                  local, delay=1.4, delays=1.4/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 17 05:01:04 PANDORA postfix/qmgr[4359]: 1F23E221445: removed
Jan 17 06:01:04 PANDORA postfix/pickup[59670]: 09D3C221445: uid=0 from=<root>
Jan 17 06:01:04 PANDORA postfix/cleanup[64367]: 09D3C221445: message-id=<[email protected]                  company.es>
Jan 17 06:01:04 PANDORA postfix/qmgr[4359]: 09D3C221445: from=<[email protected]>, size=13899, nrcpt=1 (q                  ueue active)
Jan 17 06:01:04 PANDORA postfix/local[64370]: 09D3C221445: to=<[email protected]>, orig_to=<root>, relay=                  local, delay=1.3, delays=1.3/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 17 06:01:04 PANDORA postfix/qmgr[4359]: 09D3C221445: removed
Jan 17 07:01:03 PANDORA postfix/pickup[59670]: D96AE221445: uid=0 from=<root>
Jan 17 07:01:03 PANDORA postfix/cleanup[10246]: D96AE221445: message-id=<[email protected]                  company.es>
Jan 17 07:01:03 PANDORA postfix/qmgr[4359]: D96AE221445: from=<[email protected]>, size=13899, nrcpt=1 (q                  ueue active)
Jan 17 07:01:03 PANDORA postfix/local[10249]: D96AE221445: to=<[email protected]>, orig_to=<root>, relay=                  local, delay=1.3, delays=1.3/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 17 07:01:03 PANDORA postfix/qmgr[4359]: D96AE221445: removed
Jan 17 08:01:04 PANDORA postfix/pickup[12450]: B780E221445: uid=0 from=<root>
Jan 17 08:01:04 PANDORA postfix/cleanup[21261]: B780E221445: message-id=<[email protected]                  company.es>
Jan 17 08:01:04 PANDORA postfix/qmgr[4359]: B780E221445: from=<[email protected]>, size=13898, nrcpt=1 (q                  ueue active)
Jan 17 08:01:04 PANDORA postfix/local[21264]: B780E221445: to=<[email protected]>, orig_to=<root>, relay=                  local, delay=1.4, delays=1.3/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 17 08:01:04 PANDORA postfix/qmgr[4359]: B780E221445: removed
Jan 17 09:01:04 PANDORA postfix/pickup[30565]: 86A44221445: uid=0 from=<root>
Jan 17 09:01:04 PANDORA postfix/cleanup[32070]: 86A44221445: message-id=<[email protected]                  company.es>
Jan 17 09:01:04 PANDORA postfix/qmgr[4359]: 86A44221445: from=<[email protected]>, size=13899, nrcpt=1 (q                  ueue active)
Jan 17 09:01:04 PANDORA postfix/local[32073]: 86A44221445: to=<[email protected]>, orig_to=<root>, relay=                  local, delay=1.3, delays=1.3/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 17 09:01:04 PANDORA postfix/qmgr[4359]: 86A44221445: removed
Jan 17 10:01:04 PANDORA postfix/pickup[30565]: 69312221445: uid=0 from=<root>
Jan 17 10:01:04 PANDORA postfix/cleanup[43095]: 69312221445: message-id=<[email protected]                  company.es>
Jan 17 10:01:04 PANDORA postfix/qmgr[4359]: 69312221445: from=<[email protected]>, size=13899, nrcpt=1 (q                  ueue active)
Jan 17 10:01:04 PANDORA postfix/local[43098]: 69312221445: to=<[email protected]>, orig_to=<root>, relay=                  local, delay=1.4, delays=1.3/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 17 10:01:04 PANDORA postfix/qmgr[4359]: 69312221445: removed
Jan 17 11:01:04 PANDORA postfix/pickup[48457]: 457A9221445: uid=0 from=<root>
Jan 17 11:01:04 PANDORA postfix/cleanup[54050]: 457A9221445: message-id=<[email protected]                  company.es>
Jan 17 11:01:04 PANDORA postfix/qmgr[4359]: 457A9221445: from=<[email protected]>, size=13899, nrcpt=1 (q                  ueue active)
Jan 17 11:01:04 PANDORA postfix/local[54053]: 457A9221445: to=<[email protected]>, orig_to=<root>, relay=                  local, delay=1.4, delays=1.4/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 17 11:01:04 PANDORA postfix/qmgr[4359]: 457A9221445: removed
Jan 17 12:01:04 PANDORA postfix/pickup[48457]: 289E4221445: uid=0 from=<root>
Jan 17 12:01:04 PANDORA postfix/cleanup[65030]: 289E4221445: message-id=<[email protected]                  company.es>
Jan 17 12:01:04 PANDORA postfix/qmgr[4359]: 289E4221445: from=<[email protected]>, size=13899, nrcpt=1 (q                  ueue active)
Jan 17 12:01:04 PANDORA postfix/local[65033]: 289E4221445: to=<[email protected]>, orig_to=<root>, relay=                  local, delay=1.4, delays=1.4/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 17 12:01:04 PANDORA postfix/qmgr[4359]: 289E4221445: removed
Jan 17 13:01:04 PANDORA postfix/pickup[1024]: 01FC0221445: uid=0 from=<root>
Jan 17 13:01:04 PANDORA postfix/cleanup[10702]: 01FC0221445: message-id=<[email protected]                  company.es>
Jan 17 13:01:04 PANDORA postfix/qmgr[4359]: 01FC0221445: from=<[email protected]>, size=13899, nrcpt=1 (q                  ueue active)
Jan 17 13:01:04 PANDORA postfix/local[10705]: 01FC0221445: to=<[email protected]>, orig_to=<root>, relay=                  local, delay=1.3, delays=1.3/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 17 13:01:04 PANDORA postfix/qmgr[4359]: 01FC0221445: removed
Jan 17 14:01:03 PANDORA postfix/pickup[19166]: DBDBB22144B: uid=0 from=<root>
Jan 17 14:01:03 PANDORA postfix/cleanup[21711]: DBDBB22144B: message-id=<[email protected]                  company.es>
Jan 17 14:01:03 PANDORA postfix/qmgr[4359]: DBDBB22144B: from=<[email protected]>, size=13899, nrcpt=1 (q                  ueue active)
Jan 17 14:01:03 PANDORA postfix/local[21714]: DBDBB22144B: to=<[email protected]>, orig_to=<root>, relay=                  local, delay=1.4, delays=1.3/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 17 14:01:03 PANDORA postfix/qmgr[4359]: DBDBB22144B: removed
Jan 17 14:41:55 PANDORA postfix/smtpd[29126]: connect from localhost[127.0.0.1]
Jan 17 14:41:55 PANDORA postfix/smtpd[29126]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 550 5                  .1.1 <[email protected]>: Recipient address rejected: User unknown in local recipient table; from=<pandora                  @localhost> to=<[email protected]> proto=ESMTP helo=<PANDORA>
Jan 17 14:41:55 PANDORA postfix/smtpd[29126]: lost connection after RCPT from localhost[127.0.0.1]
Jan 17 14:41:55 PANDORA postfix/smtpd[29126]: disconnect from localhost[127.0.0.1]
Jan 17 15:01:04 PANDORA postfix/pickup[19166]: CDC30221445: uid=0 from=<root>
Jan 17 15:01:04 PANDORA postfix/cleanup[32715]: CDC30221445: message-id=<[email protected]                  company.es>
Jan 17 15:01:04 PANDORA postfix/qmgr[4359]: CDC30221445: from=<[email protected]>, size=13899, nrcpt=1 (q                  ueue active)
Jan 17 15:01:04 PANDORA postfix/local[32718]: CDC30221445: to=<[email protected]>, orig_to=<root>, relay=                  local, delay=1.4, delays=1.4/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 17 15:01:04 PANDORA postfix/qmgr[4359]: CDC30221445: removed
Jan 17 16:01:04 PANDORA postfix/pickup[37114]: AADD1221445: uid=0 from=<root>
Jan 17 16:01:04 PANDORA postfix/cleanup[43607]: AADD1221445: message-id=<[email protected]                  company.es>
Jan 17 16:01:04 PANDORA postfix/qmgr[4359]: AADD1221445: from=<[email protected]>, size=13899, nrcpt=1 (q                  ueue active)
Jan 17 16:01:04 PANDORA postfix/local[43610]: AADD1221445: to=<[email protected]>, orig_to=<root>, relay=                  local, delay=1.4, delays=1.3/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 17 16:01:04 PANDORA postfix/qmgr[4359]: AADD1221445: removed
Jan 17 17:01:04 PANDORA postfix/pickup[37114]: 82BB9221445: uid=0 from=<root>
Jan 17 17:01:04 PANDORA postfix/cleanup[54608]: 82BB9221445: message-id=<[email protected]                  company.es>
Jan 17 17:01:04 PANDORA postfix/qmgr[4359]: 82BB9221445: from=<[email protected]>, size=13899, nrcpt=1 (q                  ueue active)
Jan 17 17:01:04 PANDORA postfix/local[54611]: 82BB9221445: to=<[email protected]>, orig_to=<root>, relay=                  local, delay=1.3, delays=1.3/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 17 17:01:04 PANDORA postfix/qmgr[4359]: 82BB9221445: removed
Jan 17 18:01:04 PANDORA postfix/pickup[55019]: 624FB221445: uid=0 from=<root>
Jan 17 18:01:04 PANDORA postfix/cleanup[65535]: 624FB221445: message-id=<[email protected]                  company.es>
Jan 17 18:01:04 PANDORA postfix/qmgr[4359]: 624FB221445: from=<[email protected]>, size=13899, nrcpt=1 (q                  ueue active)
Jan 17 18:01:04 PANDORA postfix/local[302]: 624FB221445: to=<[email protected]>, orig_to=<root>, relay=lo                  cal, delay=1.4, delays=1.4/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 17 18:01:04 PANDORA postfix/qmgr[4359]: 624FB221445: removed
Jan 17 19:01:04 PANDORA postfix/pickup[7961]: 3F093221445: uid=0 from=<root>
Jan 17 19:01:04 PANDORA postfix/cleanup[11413]: 3F093221445: message-id=<[email protected]                  company.es>
Jan 17 19:01:04 PANDORA postfix/qmgr[4359]: 3F093221445: from=<[email protected]>, size=13899, nrcpt=1 (q                  ueue active)
Jan 17 19:01:04 PANDORA postfix/local[11416]: 3F093221445: to=<[email protected]>, orig_to=<root>, relay=                  local, delay=1.4, delays=1.3/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 17 19:01:04 PANDORA postfix/qmgr[4359]: 3F093221445: removed
Jan 17 20:01:04 PANDORA postfix/pickup[7961]: 2C844221445: uid=0 from=<root>
Jan 17 20:01:04 PANDORA postfix/cleanup[22355]: 2C844221445: message-id=<[email protected]                  company.es>
Jan 17 20:01:04 PANDORA postfix/qmgr[4359]: 2C844221445: from=<[email protected]>, size=13899, nrcpt=1 (q                  ueue active)
Jan 17 20:01:04 PANDORA postfix/local[22358]: 2C844221445: to=<[email protected]>, orig_to=<root>, relay=                  local, delay=1.4, delays=1.4/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 17 20:01:04 PANDORA postfix/qmgr[4359]: 2C844221445: removed
Jan 17 21:01:04 PANDORA postfix/pickup[25873]: 09D1F221445: uid=0 from=<root>
Jan 17 21:01:04 PANDORA postfix/cleanup[33243]: 09D1F221445: message-id=<[email protected]                  company.es>
Jan 17 21:01:04 PANDORA postfix/qmgr[4359]: 09D1F221445: from=<[email protected]>, size=13899, nrcpt=1 (q                  ueue active)
Jan 17 21:01:04 PANDORA postfix/local[33246]: 09D1F221445: to=<[email protected]>, orig_to=<root>, relay=                  local, delay=1.3, delays=1.3/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 17 21:01:04 PANDORA postfix/qmgr[4359]: 09D1F221445: removed
Jan 17 22:01:03 PANDORA postfix/pickup[43934]: CDCED221445: uid=0 from=<root>
Jan 17 22:01:03 PANDORA postfix/cleanup[44141]: CDCED221445: message-id=<[email protected]                  company.es>
Jan 17 22:01:03 PANDORA postfix/qmgr[4359]: CDCED221445: from=<[email protected]>, size=13899, nrcpt=1 (q                  ueue active)
Jan 17 22:01:03 PANDORA postfix/local[44144]: CDCED221445: to=<[email protected]>, orig_to=<root>, relay=                  local, delay=1.3, delays=1.3/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 17 22:01:03 PANDORA postfix/qmgr[4359]: CDCED221445: removed
Jan 17 23:01:04 PANDORA postfix/pickup[43934]: A9251221445: uid=0 from=<root>
Jan 17 23:01:04 PANDORA postfix/cleanup[55123]: A9251221445: message-id=<[email protected]                  company.es>
Jan 17 23:01:04 PANDORA postfix/qmgr[4359]: A9251221445: from=<[email protected]>, size=13899, nrcpt=1 (q                  ueue active)
Jan 17 23:01:04 PANDORA postfix/local[55126]: A9251221445: to=<[email protected]>, orig_to=<root>, relay=                  local, delay=1.4, delays=1.4/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 17 23:01:04 PANDORA postfix/qmgr[4359]: A9251221445: removed
Jan 18 00:01:04 PANDORA postfix/pickup[61745]: 8A460221445: uid=0 from=<root>
Jan 18 00:01:04 PANDORA postfix/cleanup[791]: 8A460221445: message-id=<[email protected]                  or.es>
Jan 18 00:01:04 PANDORA postfix/qmgr[4359]: 8A460221445: from=<[email protected]>, size=13899, nrcpt=1 (q                  ueue active)
Jan 18 00:01:04 PANDORA postfix/local[795]: 8A460221445: to=<[email protected]>, orig_to=<root>, relay=lo                  cal, delay=1.4, delays=1.3/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 18 00:01:04 PANDORA postfix/qmgr[4359]: 8A460221445: removed
Jan 18 01:01:04 PANDORA postfix/pickup[61745]: 6B628221445: uid=0 from=<root>
Jan 18 01:01:04 PANDORA postfix/cleanup[11921]: 6B628221445: message-id=<[email protected]                  company.es>
Jan 18 01:01:04 PANDORA postfix/qmgr[4359]: 6B628221445: from=<[email protected]>, size=13899, nrcpt=1 (q                  ueue active)
Jan 18 01:01:04 PANDORA postfix/local[11924]: 6B628221445: to=<[email protected]>, orig_to=<root>, relay=                  local, delay=1.4, delays=1.4/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 18 01:01:04 PANDORA postfix/qmgr[4359]: 6B628221445: removed
Jan 18 02:01:04 PANDORA postfix/pickup[14653]: 4BE63221445: uid=0 from=<root>
Jan 18 02:01:04 PANDORA postfix/cleanup[22944]: 4BE63221445: message-id=<[email protected]                  company.es>
Jan 18 02:01:04 PANDORA postfix/qmgr[4359]: 4BE63221445: from=<[email protected]>, size=13899, nrcpt=1 (q                  ueue active)
Jan 18 02:01:04 PANDORA postfix/local[22947]: 4BE63221445: to=<[email protected]>, orig_to=<root>, relay=                  local, delay=1.3, delays=1.3/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 18 02:01:04 PANDORA postfix/qmgr[4359]: 4BE63221445: removed
Jan 18 03:01:04 PANDORA postfix/pickup[32580]: 28DB3221445: uid=0 from=<root>
Jan 18 03:01:04 PANDORA postfix/cleanup[33798]: 28DB3221445: message-id=<[email protected]                  company.es>
Jan 18 03:01:04 PANDORA postfix/qmgr[4359]: 28DB3221445: from=<[email protected]>, size=13899, nrcpt=1 (q                  ueue active)
Jan 18 03:01:04 PANDORA postfix/local[33800]: 28DB3221445: to=<[email protected]>, orig_to=<root>, relay=                  local, delay=1.4, delays=1.4/0.01/0/0.07, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 18 03:01:04 PANDORA postfix/qmgr[4359]: 28DB3221445: removed
Jan 18 04:01:03 PANDORA postfix/pickup[32580]: F0392221445: uid=0 from=<root>
Jan 18 04:01:03 PANDORA postfix/cleanup[44721]: F0392221445: message-id=<[email protected]                  company.es>
Jan 18 04:01:04 PANDORA postfix/qmgr[4359]: F0392221445: from=<[email protected]>, size=13899, nrcpt=1 (q                  ueue active)
Jan 18 04:01:04 PANDORA postfix/local[44724]: F0392221445: to=<[email protected]>, orig_to=<root>, relay=                  local, delay=1.4, delays=1.4/0.01/0/0.02, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 18 04:01:04 PANDORA postfix/qmgr[4359]: F0392221445: removed
Jan 18 05:01:04 PANDORA postfix/pickup[50528]: D30B6221445: uid=0 from=<root>
Jan 18 05:01:04 PANDORA postfix/cleanup[55646]: D30B6221445: message-id=<[email protected]                  company.es>
Jan 18 05:01:04 PANDORA postfix/qmgr[4359]: D30B6221445: from=<[email protected]>, size=13899, nrcpt=1 (q                  ueue active)
Jan 18 05:01:04 PANDORA postfix/local[55649]: D30B6221445: to=<[email protected]>, orig_to=<root>, relay=                  local, delay=1.4, delays=1.3/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 18 05:01:04 PANDORA postfix/qmgr[4359]: D30B6221445: removed
Jan 18 06:01:04 PANDORA postfix/pickup[50528]: B3ECA221445: uid=0 from=<root>
Jan 18 06:01:04 PANDORA postfix/cleanup[1382]: B3ECA221445: message-id=<[email protected]                  cor.es>
Jan 18 06:01:04 PANDORA postfix/qmgr[4359]: B3ECA221445: from=<[email protected]>, size=13899, nrcpt=1 (q                  ueue active)
Jan 18 06:01:04 PANDORA postfix/local[1385]: B3ECA221445: to=<[email protected]>, orig_to=<root>, relay=l                  ocal, delay=1.3, delays=1.3/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 18 06:01:04 PANDORA postfix/qmgr[4359]: B3ECA221445: removed
Jan 18 06:24:10 PANDORA postfix/smtpd[5824]: connect from localhost[127.0.0.1]
Jan 18 06:24:10 PANDORA postfix/smtpd[5824]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 550 5.                  1.1 <[email protected]>: Recipient address rejected: User unknown in local recipient table; from=<[email protected]                  localhost> to=<[email protected]> proto=ESMTP helo=<PANDORA>
Jan 18 06:24:10 PANDORA postfix/smtpd[5824]: lost connection after RCPT from localhost[127.0.0.1]
Jan 18 06:24:10 PANDORA postfix/smtpd[5824]: disconnect from localhost[127.0.0.1]
Jan 18 07:01:04 PANDORA postfix/pickup[3204]: 91DA1221445: uid=0 from=<root>
Jan 18 07:01:04 PANDORA postfix/cleanup[12468]: 91DA1221445: message-id=<20[email protected]                  company.es>
Jan 18 07:01:04 PANDORA postfix/qmgr[4359]: 91DA1221445: from=<[email protected]>, size=13899, nrcpt=1 (q                  ueue active)
Jan 18 07:01:04 PANDORA postfix/local[12471]: 91DA1221445: to=<[email protected]>, orig_to=<root>, relay=                  local, delay=1.3, delays=1.3/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 18 07:01:04 PANDORA postfix/qmgr[4359]: 91DA1221445: removed
Jan 18 07:04:48 PANDORA postfix/smtpd[13244]: connect from localhost[127.0.0.1]
Jan 18 07:04:48 PANDORA postfix/smtpd[13244]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 550 5                  .1.1 <[email protected]>: Recipient address rejected: User unknown in local recipient table; from=<pandora                  @localhost> to=<[email protected]> proto=ESMTP helo=<PANDORA>
Jan 18 07:04:48 PANDORA postfix/smtpd[13244]: lost connection after RCPT from localhost[127.0.0.1]
Jan 18 07:04:48 PANDORA postfix/smtpd[13244]: disconnect from localhost[127.0.0.1]
Jan 18 08:00:31 PANDORA postfix/smtpd[23426]: connect from localhost[127.0.0.1]
Jan 18 08:00:32 PANDORA postfix/smtpd[23426]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 550 5                  .1.1 <[email protected]>: Recipient address rejected: User unknown in local recipient table; from=<pandora                  @localhost> to=<[email protected]> proto=ESMTP helo=<PANDORA>
Jan 18 08:00:32 PANDORA postfix/smtpd[23426]: lost connection after RCPT from localhost[127.0.0.1]
Jan 18 08:00:32 PANDORA postfix/smtpd[23426]: disconnect from localhost[127.0.0.1]
Jan 18 08:01:04 PANDORA postfix/pickup[21422]: 87BBB221445: uid=0 from=<root>
Jan 18 08:01:04 PANDORA postfix/cleanup[23541]: 87BBB221445: message-id=<[email protected]                  company.es>
Jan 18 08:01:04 PANDORA postfix/qmgr[4359]: 87BBB221445: from=<[email protected]>, size=20442, nrcpt=1 (q                  ueue active)
Jan 18 08:01:04 PANDORA postfix/local[23543]: 87BBB221445: to=<[email protected]>, orig_to=<root>, relay=                  local, delay=1.5, delays=1.4/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 18 08:01:04 PANDORA postfix/qmgr[4359]: 87BBB221445: removed
Jan 18 08:10:11 PANDORA postfix/smtpd[25222]: connect from localhost[127.0.0.1]
Jan 18 08:10:11 PANDORA postfix/smtpd[25222]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 550 5                  .1.1 <[email protected]>: Recipient address rejected: User unknown in local recipient table; from=<pandora                  @localhost> to=<[email protected]> proto=ESMTP helo=<PANDORA>
Jan 18 08:10:11 PANDORA postfix/smtpd[25222]: lost connection after RCPT from localhost[127.0.0.1]
Jan 18 08:10:11 PANDORA postfix/smtpd[25222]: disconnect from localhost[127.0.0.1]
Jan 18 08:10:26 PANDORA postfix/smtpd[25222]: connect from localhost[127.0.0.1]
Jan 18 08:10:26 PANDORA postfix/smtpd[25222]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 550 5                  .1.1 <[email protected]>: Recipient address rejected: User unknown in local recipient table; from=<pandora                  @localhost> to=<[email protected]> proto=ESMTP helo=<PANDORA>
Jan 18 08:10:26 PANDORA postfix/smtpd[25222]: lost connection after RCPT from localhost[127.0.0.1]
Jan 18 08:10:26 PANDORA postfix/smtpd[25222]: disconnect from localhost[127.0.0.1]
Jan 18 08:28:39 PANDORA postfix/smtpd[28593]: connect from localhost[127.0.0.1]
Jan 18 08:28:39 PANDORA postfix/smtpd[28593]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 550 5                  .1.1 <[email protected]>: Recipient address rejected: User unknown in local recipient table; from=<pandora                  @localhost> to=<[email protected]> proto=ESMTP helo=<PANDORA>
Jan 18 08:28:39 PANDORA postfix/smtpd[28593]: lost connection after RCPT from localhost[127.0.0.1]
Jan 18 08:28:39 PANDORA postfix/smtpd[28593]: disconnect from localhost[127.0.0.1]
[[email protected] ~]#
 Reply
#6
Buenas,

En log de PandoraFMS no esta aportando suficiente información respecto al problema que esta sucediendo, para arreglar esto, por favor, cambia dentro del fichero pandora_server.conf la linea "verbosity 3" y pon un 10 en lugar del 3 (o el numero que tengas configurado). Tras esto reinicia el proceso del servidor (/etc/init.d/pandora_server restart) y chequea de nuevo el error, esta vez debería ser mucho mas extenso. Captúralo y mándanoslo para que lo revisemos.

Gracias.
Diego
 Reply
#7
Yo también tuve muchos problemas para configurar el e-mail con office365. He tratado de configurarlo desde la interfaz web en varias ocasiones (Configuration -> General), sin éxito y lo tuve configurar a través del fichero pandora_server.conf. Lo tengo configurado de la siguiente manera.

# mta_address: External Mailer (MTA) IP Address to be used by Pandora FMS internal email capabilities
# If not set, the MTA configuration specified in the Pandora FMS Console will be used.

mta_address smtp.office365.com
mta_port 587
mta_user [email protected]
mta_pass *********
mta_auth LOGIN
mta_from Pandora FMS <[email protected]>
mta_encryption starttls

Otra cosa que te voy a decir, es que al crear la cuenta de correo en office 365 por defecto, aunque te ponga que tienes activado el envío de e-mails por smtp, este no funciona y hay que quitarle el permiso de envío smtp y luego volver a ponerselo y a la de un tiempo comienza a funcionar. Este problema me ha pasado con varias cuentas que envían e-mails por smtp, no sólo con Pandora y no entendía lo que estaba pasando.

Espero que esto te ayude a solucionar el problema.
 Reply
#8
Buenos días,

@Diego.M, ya tenía el Verbosity en 10 pero no había reiniciado el servidor después (no tenia constancia de ello) y es por eso que no se había aplicado.

@P.Gutierrez  muchísimas gracias, he realizado el paso que comentas de quitar y volver a poner el permiso de SMTP y ahora parece estar funcionando correctamente.

El problema ahora es que, desde la configuración si que envia el email de prueba y llega correctamente, pero cuando se dispara una alarma no lo hace.

La alarma esta configurada de la siguiente manera:
[Image: image.png]

[Image: image.png]

[Image: image.png]

Y como se puede observar en la foto, ha sido disparada, pero esta no envía el correo.
 Reply
#9
Buenas,

Que correo tienes configurado en la accion "Mail to Admin"? Debes cambiar ahi la direccion de correo al que desees enviar el mail.

Saludos
Diego
 Reply
#10
(01-22-2021, 11:45 AM)Diego.M Wrote: Buenas,

Que correo tienes configurado en la accion "Mail to Admin"? Debes cambiar ahi la direccion de correo al que desees enviar el mail.

Saludos
Diego
Tengo configurada la cuenta a la que quiero que se envie los correos. Que es la misma que utilicé para enviar el email de prueba desde la consola y llegó correctamente.

[Image: image.png]
 Reply


Users browsing this thread: 1 Guest(s)


(c) 2006-2018 Artica Soluciones Tecnológicas. Contents of this wiki are under Create Common Attribution v3 licence. | pandorafms.com | pandorafms.org

Theme © MyBB Themes