Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Jun 2003 16:40:12 -0400
From:      Anish Mistry <mistry.7@osu.edu>
To:        freebsd-questions@freebsd.org
Subject:   Sendmail + Cyrus  + IMAP and virtual hosting
Message-ID:  <200306191640.23568.mistry.7@osu.edu>

next in thread | raw e-mail | index | archive | help
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

   I'm working on setting up a virtual hosting server for multiple domains,=
=20
and I'm running into a bit of trouble with the email.  I'm using Sendmail a=
nd=20
Cyrus sasl imap to handle the mail, but can't for the life of me figure out=
=20
how to get them to handle email for multiple domains.  I've got the followi=
ng=20
set in my virtusertable, mailertable, and genericstable for sendmail.  The=
=20
*table rules for sendmail do not seem to be rewriting the mail headers.  I'=
m=20
not sure what to do for cyrus sasl.  I can send/receive email, but only as=
=20
the domain of the box. =20

using:
Cyrus IMAP4 v2.2.0-ALPHA
Sendmail 8.12.8p1/8.12.8

Any help would be appreciated.


=2D --genericstable--
newuser		newuser@mydomain.com
=2D --virtusertable--
newuser@mydomain.com		newuser
=2D --mailertable--
*			cyrus:inbox

important part of my .mc
OSTYPE(freebsd4)
DOMAIN(generic)

=46EATURE(access_db, `hash -o -T<TMPF> /etc/mail/access')
=46EATURE(blacklist_recipients)
=46EATURE(local_lmtp)
=46EATURE(mailertable, `hash -o /etc/mail/mailertable')
=46EATURE(virtusertable, `hash -o /etc/mail/virtusertable')
=46EATURE(genericstable, hash -o /etc/mail/genericstable')
=46EATURE(allmasquerade)
=46EATURE(masquerade_envelope)
=46EATURE(`no_default_msa')

dnl set SASL options
TRUST_AUTH_MECH(`GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl
define(`confAUTH_OPTIONS', `A p y')dnl
define(`confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl
define(`confDEF_AUTH_INFO', /etc/mail/auth-info')dnl
dnl DAEMON_OPTIONS(`Port=3D587, Name=3DTLSMSA, M=3DE')dnl
DAEMON_OPTIONS(`Port=3Dsmtp, Name=3DMSA, M=3DE')dnl
DAEMON_OPTIONS(`Port=3Dsmtps, Name=3DTLSMSA, M=3DE')dnl

dnl set cyrus local mailbox option
dnl make sure to add imap.your.domain   cyrus:inbox into mailertable
define(`CYRUS_MAILER_FLAGS',`S')
define(`confLOCAL_MAILER',`cyrusv2')
define(`confCW_FILE', `-o /etc/mail/local-host-names')

define(`confCACERT', `/etc/mail/CA/demoCA/cacert.pem')dnl
define(`confCACERT_PATH',`/etc/mail/CA/demoCA')dnl
define(`confSERVER_CERT', `/etc/mail/CA/newcert.smtp.pem')dnl
define(`confSERVER_KEY', `/etc/mail/CA/newreq.smtp.pem')dnl
dnl define(`confCLIENT_CERT', `/etc/mail/CA/newcert.smtp.pem')dnl
dnl define(`confCLIENT_KEY', `/etc/mail/certs/newreq.smtp.pem')dnl
dnl add mail header filtering
LOCAL_RULESETS
=46{JunkSubs} /etc/mail/junksubs
=46{SSJunk} /etc/mail/ssjunk

HSubject: $>CheckSubject

SCheckSubject
R$=3D{JunkSubs}$* $: NMJUNKSUB
R$* $=3D{SSJunk} $*       $: NMJUNKSUB
R$* NMJUNKSUB $*        $#error $: "553 Spam Rejected"

MAILER(local)
MAILER(smtp)
MAILER(cyrusv2)

=2D -----


=2D --=20
Anish Mistry
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQE+8h+1xqA5ziudZT0RAh+cAKC8mA7/35p5fIhjYgyGN34V7aw8QQCfbuGk
xjMQJeOWrpgH4etS+EMiucg=3D
=3D0Inq
=2D----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306191640.23568.mistry.7>