Add only outgoing mail for the group SMTP

Good day!
Friends tell me please, is it possible to add only outgoing mail for the group (SMTP Yandex)?
For example: there Is a “Support-tech” group that receives requests from the mail channel. (imap and smtp MyTest@yandex.ru). Can I configure agents in this group to send emails via smtp MyHelp@yandex.ru? It is important just to send from MyHelp@yandex.ru, but not receive.
Thank you in advance for your help

Infos:

  • Used Zammad version: 3.4
  • Used Zammad installation source: (source, package, …)
  • Operating system: Ubuntu 18
  • Browser + version: Chrome

Expected behavior:

Actual behavior:

Steps to reproduce the behavior:

Hey,

yes - that’s perfectly possible on selfhosted setups.
This page gives hints for it for sendmail: https://admin-docs.zammad.org/en/latest/channels/email/advanced/sendmail.html

So you’d proberbly look for something like this on a rails console:

mychannel = Channel.create(
   area: 'Email::Account', 
   options: { 
      inbound: { 
         adapter: 'null', 
         options: {} 
      }, 
      outbound: { 
         adapter: 'smtp' ,
         options: {
            host: "{hostname-smtp-server}", 
            user: "{username-mailaccount}", 
            password: "{password-mailaccount}", 
            port: {smtp-server-port},
            ssl: true,
            domain: Setting.get('fqdn'), 
            enable_starttls_auto: true
         }
      } 
   }, 
   active: true, 
   preferences: { 
      editable: false 
   }, 
   updated_by_id: 1, 
   created_by_id: 1
)
EmailAddress.create(
   channel_id: mychannel.id, 
   realname: Setting.get('organization'), 
   email: "{email-address-email-account}", 
   active: true, 
   updated_at: Time.now, 
   created_at: Time.now, 
   created_by_id: 1, 
   updated_by_id: 1
)

This will create an outbount only smtp account together with it’s mail address you can then use for groups.


Technically you can also use the same mail addresses (outgoing) on more than one group.
If there’s no ticket (so no follow up) it will automatically be routet to the destination group.

If you then move this ticket to another group and a follow up happens on that ticket, the answer will automatically appear on the already existing ticket.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.