We are using Fetchmail to create a ticket via email and it has two accounts.
For example, support1@example.com → queue: support1, support2@example → queue: support2
It works ok to send an email via smtp, but I am not sure how I can use two SMTP accounts to send email based on the queues. If anyone configured this, please help me.
You shouldn’t need to. RT needs just one account to send mail, and then will take care of the from and reply-to headers for you. Are you having problems with your current setup?
I see you’re using office365 as your email relay, there sometimes are RT config settings that need set or even email server settings that need set to get the email to pass through correctly, but you should never need multiple smtp client accounts to get all outbound RT emails sending correctly.
If I need to route outbound mails with the respective email queue email address, How can I accomplish it.
I Use support@domain1.com, support@domanin2.com and support@domain3.com - All are three different mail accounts. I need outbound mails to go through respective queue emails and not through the global email configuration. Can some one help how to accomplish this.
If you’re using Postfix for outgoing email you can checkout transport maps to set different outgoing options like different SMTP relays based on the address