From owner-freebsd-questions@FreeBSD.ORG Thu Jun 19 13:39:49 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2461E37B401 for ; Thu, 19 Jun 2003 13:39:49 -0700 (PDT) Received: from mta03.fuse.net (mx3.fuse.net [216.68.1.123]) by mx1.FreeBSD.org (Postfix) with ESMTP id 134A043FBD for ; Thu, 19 Jun 2003 13:39:48 -0700 (PDT) (envelope-from mistry.7@osu.edu) Received: from [192.168.1.101] ([216.196.159.76]) by mta03.fuse.net (InterMail vM.5.01.05.27 201-253-122-126-127-20021220) with ESMTP id <20030619203947.WFUC22525.mta03.fuse.net@[192.168.1.101]> for ; Thu, 19 Jun 2003 16:39:47 -0400 From: Anish Mistry To: freebsd-questions@freebsd.org Date: Thu, 19 Jun 2003 16:40:12 -0400 User-Agent: KMail/1.5 MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Description: clearsigned data Content-Disposition: inline Message-Id: <200306191640.23568.mistry.7@osu.edu> Subject: Sendmail + Cyrus + IMAP and virtual hosting X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2003 20:39:49 -0000 =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 /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-----