# Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/

Channel.create_if_not_exists(
  area:        'Email::Notification',
  options:     {
    outbound: {
      adapter: 'smtp',
      options: {
        host:     'host.example.com',
        user:     '',
        password: '',
        ssl:      true,
      },
    },
  },
  preferences: { online_service_disable: true },
  active:      Zammad::Deployment.container?,
)
Channel.create_if_not_exists(
  area:        'Email::Notification',
  options:     {
    outbound: {
      adapter: 'sendmail',
    },
  },
  preferences: { online_service_disable: true },
  active:      !Zammad::Deployment.container?,
)
