Dovecot/Sieve cannot send mails #13

Closed
opened 2019-04-16 08:44:29 +00:00 by david · 11 comments
david commented 2019-04-16 08:44:29 +00:00 (Migrated from dev.cryptec.at)

When trying to use Sieve to send e-mails, for example for automatic vacation messages, Dovecot will try to send the messages using the local sendmail binary. Since there is no properly configured MTA inside the Dovecot container, this does not work.

I see two options:

  1. Make Dovecot use SMTP and send its stuff directly to the Postfix container.
  2. Setup a relaying SMTP server inside the Dovecot container, that forwards all mail to the Postfix container.

@root, what do you think?

When trying to use Sieve to send e-mails, for example for automatic vacation messages, Dovecot will try to send the messages using the local `sendmail` binary. Since there is no properly configured MTA inside the Dovecot container, this does not work. I see two options: 1. Make Dovecot use SMTP and send its stuff directly to the Postfix container. 2. Setup a relaying SMTP server inside the Dovecot container, that forwards all mail to the Postfix container. @root, what do you think?
root commented 2019-04-16 09:13:57 +00:00 (Migrated from dev.cryptec.at)

I believe the real option is to teach Dovecot using LMTP to send postfix it's data. That's how it's done if they are in the same environment. Normally via a socket but dovecot should be able to do this via the network.

I believe the real option is to teach Dovecot using LMTP to send postfix it's data. That's how it's done if they are in the same environment. Normally via a socket but dovecot should be able to do this via the network.
david commented 2019-04-16 10:02:35 +00:00 (Migrated from dev.cryptec.at)

I do like the approach. Any idea how to do this?

I do like the approach. Any idea how to do this?
root commented 2019-04-16 10:42:46 +00:00 (Migrated from dev.cryptec.at)

The documentation of dovecot states the following:

It's possible to use Dovecot LMTP server as a proxy to remote LMTP or SMTP servers. The configuration is similar to IMAP/POP3 proxying, but you'll need to tell Dovecot LMTP to issue passdb lookups:

lmtp_proxy = yes

The relevant files are, as far as I believe 10-master.conf and 15-lda.com

The [documentation of dovecot](https://wiki.dovecot.org/LMTP) states the following: > It's possible to use Dovecot LMTP server as a proxy to remote LMTP or SMTP servers. The configuration is similar to IMAP/POP3 proxying, but you'll need to tell Dovecot LMTP to issue passdb lookups: > > lmtp_proxy = yes The relevant files are, as far as I believe `10-master.conf` and `15-lda.com`
david commented 2019-07-17 10:59:02 +00:00 (Migrated from dev.cryptec.at)

mentioned in commit a0d3bfab81

mentioned in commit a0d3bfab813acdbcbb11d959cb05cb5fc3b9d861
david commented 2019-07-17 10:59:41 +00:00 (Migrated from dev.cryptec.at)

mentioned in merge request !42

mentioned in merge request !42
david commented 2019-07-17 11:00:07 +00:00 (Migrated from dev.cryptec.at)

assigned to @david

assigned to @david
root commented 2019-07-17 19:08:24 +00:00 (Migrated from dev.cryptec.at)

mentioned in commit 368f846605

mentioned in commit 368f8466055676e1c35e0d6409f80b4003d6d76d
root commented 2019-07-17 19:08:24 +00:00 (Migrated from dev.cryptec.at)

closed via merge request !42

closed via merge request !42
david commented 2019-07-17 19:08:24 +00:00 (Migrated from dev.cryptec.at)

closed via commit a0d3bfab81

closed via commit a0d3bfab813acdbcbb11d959cb05cb5fc3b9d861
root commented 2020-01-31 14:57:01 +00:00 (Migrated from dev.cryptec.at)

mentioned in commit 7a49dc1e5c200a650e94d0af1f32804b5eac84aa

mentioned in commit 7a49dc1e5c200a650e94d0af1f32804b5eac84aa
root commented 2020-01-31 15:00:03 +00:00 (Migrated from dev.cryptec.at)

mentioned in commit 3e3a692ff2e27dd43b4c559930bccf8cde217cfe

mentioned in commit 3e3a692ff2e27dd43b4c559930bccf8cde217cfe
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
infrastructure/mailstack#13
No description provided.