Menu

Oauth Clients Multiple - SMTP not working

2022-10-20
2024-04-19
  • Karthik Reddy

    Karthik Reddy - 2022-10-20

    Hi,

    I have configured two mailboxes using Oauth to read emails from two different mailboxes which is working fine. But when we are sending email notifications, it is working from address of only one Oauth client which is given as default address in config file parameter- 'email_transport_smtp.username'

    if we give other one, it is failing to send an email, because it is referring to default one and as from address is different oAUTH rejects it. Before Oauth this was not an issue, but with oAuth can we pick the Oauth configuration based on from address in notification instead of default which is given in config file.

    Can someone please help how to make this SMTP work with multiple mailboxes. Thanks

     
  • Karthik Reddy

    Karthik Reddy - 2022-10-25

    Hi,

    Can someone please help how to set option to pick different oAUTH in notifications from the availble list of oAuth connections enabled for SMTP.

     
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2022-10-26

    I haven't thoroughly dived into this, but isn't the username determined by what's configured in the notification anyway?

    How are your "send as" permissions configured in MS 365?

     
    • Karthik Reddy

      Karthik Reddy - 2022-10-26

      Hi Jeffrey,

      Thanks for checking , yes I did this workaround yesterday but it has to go
      through some chain of approvals to get there. it would be great if iTop can
      provide a way that it picks up Oauth connection according to from address
      then it should work seamlessly. Any way we can instruct oauth connection
      according to from address In notifications instead of always default from
      Config . Thanks

      On Wed, 26 Oct 2022 at 9:13 PM Jeffrey jbostoen@users.sourceforge.net
      wrote:

      I haven't thoroughly dived into this, but isn't the username determined by
      what's configured in the notification anyway?

      How are your "send as" permissions configured in MS 365?

      Oauth Clients Multiple - SMTP not working
      https://sourceforge.net/p/itop/discussion/customizing-itop/thread/dbc5b8fac5/?limit=250#7e28


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/itop/discussion/customizing-itop/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2024-04-19

    Any of you who had a need to use different SMTP servers?
    It seems iTop is hardcoded at this point to use the one defined in its configuration file?

    My customer's need: depending on the "from:" address in e-mail notifications, the e-mail should be sent through a O365 mailbox - from a different organization/tenant.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.