Author Topic: Multiple smtp out server  (Read 1962 times)

Offline andileni

  • Newbie
  • *
  • Posts: 2
Multiple smtp out server
« on: December 16, 2020, 10:48:55 AM »
Hello,

I want to use roundcube to connect multiple mail servers at one place.
What I have is a working installation for two different imap servers, which works fine.
What I don't understand is how I can assign a smtp server for them?
It currently seems like they both use the same smtp server.
Can someone give me a hint?

Thanks and kind regards
Andreas

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
Re: Multiple smtp out server
« Reply #1 on: December 17, 2020, 12:26:20 PM »
Have a look at the comments for the smtp_server config option there are a few ways of doing it:
Code: [Select]
// SMTP server host (for sending mails).
// Enter hostname with prefix ssl:// to use Implicit TLS, or use
// prefix tls:// to use STARTTLS.
// Supported replacement variables:
// %h - user's IMAP hostname
// %n - hostname ($_SERVER['SERVER_NAME'])
// %t - hostname without the first part
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
// %z - IMAP domain (IMAP hostname without the first part)
// For example %n = mail.domain.tld, %t = domain.tld
$config['smtp_server'] = 'localhost';
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦

Offline andileni

  • Newbie
  • *
  • Posts: 2
Re: Multiple smtp out server
« Reply #2 on: December 17, 2020, 12:43:45 PM »
Thanks for the answer.
I was a little unprecise in my first post, I want to assign two different smtp servers for each of my accounts.
Is this possible?