On Dienstag, 31. März 2020 21:14:26 CEST Adam Raszkiewicz wrote:
> But then it loops again when get back to the postfix as an incoming message
> (doesn't know that a...@localdomain.com is located on that Dovecot)
+
> Is there any way to disable Dovecot LDA? I want to always send email via
> postfi
Well as you need LDA to deliver emails from postfix to dovecot, you can't just
turn it off. What you need is a second smtp daemon within postfix, which is
only responsible for local originating emails and is configured to send any
email to your gateway. This way your second smtpd will send loca
Micheal, just for your information: "stop;" stops the whole script at
this very line, which means no other rule will be applied on this
message anymore. Most of the time this is desired. Otherwise "elsif"
(and "else" as a catch-all) is your friend.
require ["fileinto"];
# rule:[check if either