imapd 2.5.7-8 with virtual domains and sendmail config

Alexander Dalloz ad+lists at uni-x.org
Thu Jun 2 13:59:35 EDT 2016


Am 02.06.2016 um 18:18 schrieb Mogens Melander:
> Thanks Alexander
>
> I have been all over the install-virtualdomains docs, plus a lot of
> deprecated info found on Google,
> not getting closer to a solution.
>
> My confic and log-files:
>
> --- cyrusv2.mc
> --------------------------------------------------------------------
>
> divert(-1)dnl
> #
> # $Id: cyrusv2.mc,v 1.5 2008/04/04 12:46:34 murch Exp $
> #
> divert(0)dnl
> include(`../m4/cf.m4')dnl
> VERSIONID(`@(#)cyrusv2.mc fumlersoft ver 1.0 2016-06-03')dnl
> OSTYPE(linux)dnl
> DOMAIN(generic)dnl
>
> FEATURE(`use_cw_file')dnl    /etc/mail/local-host-names
> FEATURE(`access_db', `hash -T<TMPF> /etc/mail/access')dnl
> FEATURE(`virtusertable', `hash /etc/mail/virtusertable')dnl
>
> define(`confLOCAL_MAILER', `cyrusv2')dnl
>
> MAILER(`cyrusv2')dnl
> MAILER(`smtp')dnl
>
> MAILER_DEFINITIONS
> dnl --- Another failed atempt ----
> dnl    Mcyrusv2,    P=[IPC], E=\r\n,
> dnl        S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP,
> dnl        A=FILE /var/imap/socket/lmtp
>
> Mcyrusv2,    P=[IPC], F=lsDFMnqA@/:|SmXz, E=\r\n,
>     S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP,
>     A=FILE /var/imap/socket/lmtp

Given you do validating existing mailboxes in your virtusertable to make 
use of Anfi's cyrusv2 mailer:

http://jmaimon.com/sendmail/anfi.homeunix.net/sendmail/cyrusv2.html

The default LMTP matches yours so you do not explicitly have to define

define(`CYRUS_LMTP_SOCKET',`/var/imap/socket/lmtp')dnl

in sendmail.mc. But make sure to define

MAILER(`cyrusv2')dnl

and to place your hosted domains into a mailertable.

Regards

Alexander




More information about the Info-cyrus mailing list