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]>, 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
Messages In This Thread
Enviar alertas a correos Office365 - by David89 - 01-08-2021, 07:27 AM


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