Dovecot user lookup from sendmail
Hi *
after trying everything I could think of and find on the web, I'm totally stumped ... maybe someone give me some hints on what I'm doing wrong, or where to look ...
I have an ancient customer box with sendmail & cyrus imap, with imap using an LDAP database of users (no locally configured users), all of which is working fine.
This machine needs to be replaced by a new installation, which - regrettably - is supposed to use SLES 12. Which does not have any Cyrus IMAP packages available anymore, so I had to use the Dovecot imap instead. I've already got the LDAP auth working, as well as the imap storage of mails (used imapsync to copy all of the old mailboxes to the new machine), everything fine so far.
Anyway, I'm running into problems getting sendmail to check whether a recipient actually exists. Any local user is correctly identified, but all virtual users are constantly rejected. I tried finding anything on how sendmail actually does the user check ... on the cyrus install, all I had to do is
define(confLOCAL_MAILER',
cyrusv2')dnl
define(CYRUSV2_MAILER_ARGS',
FILE /var/lib/imap/socket/lmtp')dnl
MAILER(cyrusv2)dnl
and both user checks and local delivery worked. What's the appropriate config entry in the .mc for dovecot?
I tried settings like:
FEATURE(local_lmtp',
[IPC]',`FILE /var/run/dovecot/lmtp')dnl
and used the dovecot.m4 file together with
MAILER(`dovecot')dnl
but couldn't see anything happening - or improve.
Hints and help greatly appreciated!
-garry
-- PGP Fingerprint: A79F A33F 5B13 BEB7 A51D 274F F99C 3AE2 4BCB 7015
Use exim instead of sendmail with an LDA or LMTP transport.
On 04/07/17 15:41, Garry Glendown wrote:
Hi *
after trying everything I could think of and find on the web, I'm totally stumped ... maybe someone give me some hints on what I'm doing wrong, or where to look ...
I have an ancient customer box with sendmail & cyrus imap, with imap using an LDAP database of users (no locally configured users), all of which is working fine.
This machine needs to be replaced by a new installation, which - regrettably - is supposed to use SLES 12. Which does not have any Cyrus IMAP packages available anymore, so I had to use the Dovecot imap instead. I've already got the LDAP auth working, as well as the imap storage of mails (used imapsync to copy all of the old mailboxes to the new machine), everything fine so far.
Anyway, I'm running into problems getting sendmail to check whether a recipient actually exists. Any local user is correctly identified, but all virtual users are constantly rejected. I tried finding anything on how sendmail actually does the user check ... on the cyrus install, all I had to do is
define(
confLOCAL_MAILER',
cyrusv2')dnl define(CYRUSV2_MAILER_ARGS',
FILE /var/lib/imap/socket/lmtp')dnl MAILER(cyrusv2)dnland both user checks and local delivery worked. What's the appropriate config entry in the .mc for dovecot?
I tried settings like:
FEATURE(
local_lmtp',
[IPC]',`FILE /var/run/dovecot/lmtp')dnland used the dovecot.m4 file together with
MAILER(`dovecot')dnl
but couldn't see anything happening - or improve.
Hints and help greatly appreciated!
-garry
On 05/07/2017 14:47, Garry Glendown wrote:
Hi,
Use exim instead of sendmail with an LDA or LMTP transport. Also, not available in any of the standard or legacy packages of SLES 12 ... I know why I stopped using SLES quite some time ago :(
It does seem to have Postfix though.
-- Jack.
Garry Glendown <garry@glendown.de> wrote:
after trying everything I could think of and find on the web, I'm totally stumped ... maybe someone give me some hints on what I'm doing wrong, or where to look ...
I have an ancient customer box with sendmail & cyrus imap, with imap using an LDAP database of users (no locally configured users), all of which is working fine.
This machine needs to be replaced by a new installation, which - regrettably - is supposed to use SLES 12. Which does not have any Cyrus IMAP packages available anymore, so I had to use the Dovecot imap instead. I've already got the LDAP auth working, as well as the imap storage of mails (used imapsync to copy all of the old mailboxes to the new machine), everything fine so far.
Anyway, I'm running into problems getting sendmail to check whether a recipient actually exists. Any local user is correctly identified, but all virtual users are constantly rejected. I tried finding anything on how sendmail actually does the user check ... on the cyrus install, all I had to do is
define(
confLOCAL_MAILER',
cyrusv2')dnl define(CYRUSV2_MAILER_ARGS',
FILE /var/lib/imap/socket/lmtp')dnl MAILER(cyrusv2)dnland both user checks and local delivery worked. What's the appropriate config entry in the .mc for dovecot?
I tried settings like:
FEATURE(
local_lmtp',
[IPC]',`FILE /var/run/dovecot/lmtp')dnland used the dovecot.m4 file together with
MAILER(`dovecot')dnl
but couldn't see anything happening - or improve.
Hints and help greatly appreciated!
Does you old sendmail config use FEATURE(`stickyhost')? [ It would explain working virtual addresses ]
-- A. Filip
participants (4)
-
Andrzej A. Filip
-
Dirk Koopman
-
Garry Glendown
-
Jack