Koozali.org: home of the SME Server

multi smtp

Offline pelli

  • **
  • 66
  • +0/-0
multi smtp
« on: April 24, 2013, 04:05:05 PM »
Hello, i would like setup two external smtp based from email domain.

ex: test@test.com     the domain test use smtp.test.com with auth

ex: john@john.com  the domain john use smtp.john.com with auth in ssl mode

Is possible?

Thanks

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: multi smtp
« Reply #1 on: April 24, 2013, 05:07:08 PM »
AFAIK this can be achieved using a custom template for /var/qmail/control/smtproutes

but I would wait for Charlie's advice

just a question: you'd like to do so or you must do in that way?

Offline pelli

  • **
  • 66
  • +0/-0
Re: multi smtp
« Reply #2 on: April 24, 2013, 05:12:36 PM »
AFAIK this can be achieved using a custom template for /var/qmail/control/smtproutes

but I would wait for Charlie's advice

just a question: you'd like to do so or you must do in that way?

Thanks
i must use that way.... first account is normal email...second account is certified email account (italian pec)

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: multi smtp
« Reply #3 on: April 24, 2013, 05:25:47 PM »
what about posting in italian forum too? :-)

in any case, I would setup pec email smtp server on each client.. SME is not involved at all


Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: multi smtp
« Reply #4 on: April 24, 2013, 06:07:09 PM »
AFAIK this can be achieved using a custom template for /var/qmail/control/smtproutes

I don't know exactly what pelli wants or why.

SME server only supports one outbound authenticated email route, configured via the server-manager. To support more than one authenticated outbound route, you would need  more than one instance of the smtp auth proxy, as well as a custom template in smtproutes. This is something I expect pelli doesn't actually need, and may not have the skills to do.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: multi smtp
« Reply #5 on: April 24, 2013, 06:08:36 PM »
second account is certified email account (italian pec)

I agree with Stefano, do that directly from the email client.

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: multi smtp
« Reply #6 on: April 24, 2013, 06:21:20 PM »
SME server only supports one outbound authenticated email route, configured via the server-manager. To support more than one authenticated outbound route, you would need  more than one instance of the smtp auth proxy, as well as a custom template in smtproutes.

the second part is easy enough (already done with some customers of mine)
I've done some digging into smtp-auth-proxy script..
IIUC, I could run more than one instance changing the listening port (example 27) and create a new entry into /var/service dir (with all the related files..)

is it so?

TIA

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: multi smtp
« Reply #7 on: April 24, 2013, 07:16:43 PM »
the second part is easy enough (already done with some customers of mine)
I've done some digging into smtp-auth-proxy script..
IIUC, I could run more than one instance changing the listening port (example 27) and create a new entry into /var/service dir (with all the related files..)

is it so?

Correct. However I don't understand why you would be wanting to do this. I think you would be defeating the purpose of their requiring authentication if you do proxy authentication on behalf of the real senders.

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: multi smtp
« Reply #8 on: April 24, 2013, 07:28:46 PM »
indeed..

mine was only  curiosity :-)

@pelli: please configure each client to use the correct smtp server :-)

Offline pelli

  • **
  • 66
  • +0/-0
Re: multi smtp
« Reply #9 on: May 06, 2013, 03:53:05 PM »
ok, thanks  :-)