This is normally only available with the DSN capability, but we use it to
forward the original recipient in proxy setups.
This feature was available in the original Dovecot v2.2 LMTP, but it got lost in
the new lib-smtp implementation.
SMTP_CAPABILITY_ENHANCEDSTATUSCODES |
SMTP_CAPABILITY_8BITMIME |
SMTP_CAPABILITY_CHUNKING |
- SMTP_CAPABILITY_XCLIENT;
+ SMTP_CAPABILITY_XCLIENT |
+ SMTP_CAPABILITY__ORCPT;
if (!conn->ssl && master_service_ssl_is_enabled(master_service))
lmtp_set.capabilities |= SMTP_CAPABILITY_STARTTLS;
lmtp_set.hostname = client->unexpanded_lda_set->hostname;
i_zero(&lmtp_set);
lmtp_set.peer_trusted = TRUE;
+ lmtp_set.forced_capabilities = SMTP_CAPABILITY__ORCPT;
lmtp_conn = smtp_client_connection_create(proxy->lmtp_client,
set->protocol, conn->set.host, conn->set.port,