On 12/26/25 10:47 AM, Wietse Venema via Postfix-users wrote:
David Koski via Postfix-users:
Hello Wietse,
Thank you for getting me on the right track.? It occurred to me that I
am issuing a transport for all users.? I have split domains and SQL
driven user queries always result in a transport table match. It made it
easier to develop.? As such, I found that with this scheme, neither does
the master.cf need a transport added nor does main.cf need
virtual_transport to be set.? Once I set the default transport to what
was in main.cf:virtual_transport (lmtp:unix:private/dovecot-lmtp) it all
just worked.? Thanks!
The default transport is used for remote deliveries. If you configure
that to use LMTP then you can't send enail elsewhere.
Please review some Dovecot documentation examples.
Wietse
Re: "Once I set the default transport to what was in
main.cf:virtual_transport.."
My bad. This should not say "default transport" but "default for local
delivery" as per the scheme. SQL queries resolve transport on
individual users yielding a default for the domain users, not the entire
system. Overrides are applied individually. A script handles this:
# vtransportadd -h
Usage:
vtransportadd [-h] | <transport_key> <transport>
Options:
-h Display this help and exit.
Example:
vtransportadd example.com smtp:[12.34.56.78]
vtransportadd mydomain.net dovecot:
vtransportadd notmydomain.net error:
# Not in transport table, defaults to default_transport in main.cf which
is smtp.
MariaDB [vmail]> select * from view_transport_users where
tkey='[email protected]';
(No results)
# Transport query for local virtual user.
MariaDB [vmail]> select * from view_transport_users where
tkey='z@<redacted>.com';
+------------------+--------------------------------+
| tkey | transport |
+------------------+--------------------------------+
| z@<redacted>.com | lmtp:unix:private/dovecot-lmtp |
+------------------+--------------------------------+
# Transport query for same domain but not hosted locally.
MariaDB [vmail]> select * from view_transport_users where
tkey='dkoski@s<redacted>.com';
+-----------------------+-------------------------------------+
| tkey | transport |
+-----------------------+-------------------------------------+
| dkoski@<redacted>.com | smtp:[mail.kosmosisland.com]:587 |
+-----------------------+-------------------------------------+
Thank you for the clarification.
David Koski
David Koski
On 12/24/25 1:43 PM, Wietse Venema via Postfix-users wrote:
David Koski via Postfix-users:
LMTP transport fails: warning: connect to transport private/dovecot: No
such file or directory
You did not configure a 'dovecot' service in master.cf.
Relevant Postfix configs:
lmtp unix - - y - - lmtp
make that:
dovecot unix - - y - - lmtp
Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]