Vacation use different SMTP server
azurit at pobox.sk
azurit at pobox.sk
Sun Jan 26 10:24:47 EET 2020
Thanks for idea but it won't work for me as 'internal domains' can be
anything, including gmail.com (and i don't know which of them are
really internal/local, this is decided by sending SMTP everytime
something is sent, based on MX records). Problem is that Dovecot/Sieve
is using wrong SMTP server (one used for receiving e-mails which
should NEVER be used for sending [and is never is, except sieve]).
Citát "KOCIK Fabien (Acoss)" <fabien.kocik at acoss.fr>:
> Hi,
>
> I had the same problem and solved it at architectural design level.
>
> Instead of forcing Sieve to use a different SMTP server, I declared
> some transports in the sending SMTP server to force it to route
> internal domains directly to receiving SMTP server without going to
> the Internet.
> So, internal mails remains on internal network and there is only one
> SMTP server for all mail traffic.
>
> Sorry, I know that I don't answer directly to the original question.
> But in the context, may be an idea ?
>
> Regards.
> Fabien
>
> -----Message d'origine-----
> De : dovecot <dovecot-bounces at dovecot.org> De la part de azurit at pobox.sk
> Envoyé : vendredi 24 janvier 2020 12:39
> À : Dovecot Mailing List <dovecot at dovecot.org>
> Objet : Vacation use different SMTP server
>
> Hi,
>
> in our setup, we have two SMTP servers:
> - one for receiving messages (this one is using Dovecot's LMTP for
> delivery)
> - one for sending messages (this one is used by our users as
> outgoing SMTP server)
>
> Only the first one has list of local domains, local e-mail accoutns
> etc. so the second one will ALWAYS use MX records for delivery -
> with this setup, we can allow to our users to add any domain to
> their accounts (for example, if someone will add gmail.com and
> create e-mail accounts on it, it's complete safe because we will
> never deliver mail for gmail.com locally). The only problem seems to
> be vacation messages (maybe other messages send by sieve), as
> Dovecot is using the first SMTP server for sending.
>
> My questions: Can i set different SMTP server for sieve messages?
> How exactly is Dovecot/Sieve choosing which SMTP server will be used?
>
> Thanks.
>
> azur
More information about the dovecot
mailing list