From owner-freebsd-questions Thu Feb 27 0:24:52 2003 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 DFB9437B401 for ; Thu, 27 Feb 2003 00:24:49 -0800 (PST) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5344A43F93 for ; Thu, 27 Feb 2003 00:24:48 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) by smtp.infracaninophile.co.uk (8.12.7/8.12.7) with ESMTP id h1R8Oh5U085284 for ; Thu, 27 Feb 2003 08:24:43 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.7/8.12.7/Submit) id h1R8Ohi0085283 for freebsd-questions@FreeBSD.ORG; Thu, 27 Feb 2003 08:24:43 GMT Date: Thu, 27 Feb 2003 08:24:42 +0000 From: Matthew Seaman To: freebsd-questions@FreeBSD.ORG Subject: Re: Sendmail and MSP issues Message-ID: <20030227082442.GA85097@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , freebsd-questions@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.3i X-Spam-Status: No, hits=-3.3 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_01_02, USER_AGENT,USER_AGENT_MUTT version=2.44 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Feb 27, 2003 at 03:46:11AM -0800, Chris McCluskey wrote: > > I'm having some issues with Sendmail with the MSP, and I have read so > many docs I have confused myself! > > My issue is the following. I'm running 4.7p4 with the 8.12.x Sendmail. > I want to route all local mail to a central mail hub (I'm doing this > somewhat successfully with LOCAL_RELAY and MAIL_HUB). But I'm hitting > a wall with the new MSP (the submit.cf stuff) and mail. When I try to > write an e-mail message using the local mail from a localhost user to > an outside address, the message isn't transferred to the mail hub, but > gets stored in the clientmqueue for processing, and just sits there. I > get the following log entry: > > Feb 20 23:06:55 server sendmail[16892]: h1L76tFs016892: from=chris, > size=42, class=0, nrcpts=1, > msgid=<200302210706.h1L76tFs016892@server.company.com>, > relay=chris@localhost > Feb 20 23:06:55 server sendmail[16892]: h1L76tFs016892: > to=chris@outsideaddress.com, delay=00:00:00, mailer=esmtp, pri=30041, > dsn=4.4.3, stat=queued > > I thought that LOCAL_RELAY was supposed to relay stuff like this and > send it on -- but I don't think that the normal sendmail daemon is > looking at this queue (that's what the MSP is for after all, right?!). > I thought about using genericstable to rewrite the base domain of the > local users, but it doesn't look like MSP would even look at it to do > the domain rewrite anyway. Any help would be appreciated. > > My assumption riding though all of this is that on a normal system, > the only thing that uses the LOCAL mailer part of Sendmail (and now > the MSP mailer) is the CLI mailer "mail". Most other programs use SMTP > to talk directly with a local mail relay. Try this: On each of your client machines (not you mail server), set up the sm-msp process to submit the e-mail directly to the sm-mta on your mail server. This means you don't need to run a sm-mta process on each of your client machines, and just the sm-msp process to check and flush the queue occasionally. In /etc/rc.conf sendmail_msp_queue_enable="YES" sendmail_enable="NO" sendmail_outbound_enable="NO" sendmail_submit_enable="NO" In /etc/mail/submit.mc, modify the last line that says FEATURE(`msp'... so that it directs the e-mail directly to the mail submission port (587) on your mail server: FEATURE(`msp', `[smtp.your.domain]', `MSA')dnl The square brackets act to suppress the normal MX lookups sendmail does --- usually you don't want that with this sort of mail submission setup. Rebuild submit.cf and restart the sm-msp daemon: # cd /et/mail # make install-submit-cf # make restart-mspq Now, all new mail submissions should be routed through the central mail server. You'll need to ensure the central server will handle the mail for machines in your domain, which usually entails entering all of the names of all your hosts into the /etc/mail/local-host-names file. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message