Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: pelli on April 24, 2013, 04:05:05 PM

Title: multi smtp
Post by: pelli 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
Title: Re: multi smtp
Post by: Stefano 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?
Title: Re: multi smtp
Post by: pelli 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)
Title: Re: multi smtp
Post by: Stefano 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

Title: Re: multi smtp
Post by: CharlieBrady 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.
Title: Re: multi smtp
Post by: CharlieBrady 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.
Title: Re: multi smtp
Post by: Stefano 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
Title: Re: multi smtp
Post by: CharlieBrady 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.
Title: Re: multi smtp
Post by: Stefano on April 24, 2013, 07:28:46 PM
indeed..

mine was only  curiosity :-)

@pelli: please configure each client to use the correct smtp server :-)
Title: Re: multi smtp
Post by: pelli on May 06, 2013, 03:53:05 PM
ok, thanks  :-)