From owner-freebsd-questions@FreeBSD.ORG Sun Apr 27 11:22:50 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 4B65D37B401 for ; Sun, 27 Apr 2003 11:22:50 -0700 (PDT) Received: from supermail.mweb.co.za (supermail.mweb.co.za [196.2.53.171]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E3A743F85 for ; Sun, 27 Apr 2003 11:22:43 -0700 (PDT) (envelope-from dj_boris@mail.ru) Received: from [196.7.205.193] (helo=d) by supermail.mweb.co.za with smtp (Exim 3.22 #1) id 199qfr-0002wN-00 for freebsd-questions@FreeBSD.ORG; Sun, 27 Apr 2003 20:14:51 +0200 Message-ID: <003c01c30ce9$f144b130$6300a8c0@fmelectro.co.za> From: "DJ Boris" To: "freebsd-questions" Date: Sun, 27 Apr 2003 20:21:46 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Subject: smart_host not working, sendmail trying to relay immediately 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: Sun, 27 Apr 2003 18:22:50 -0000 hi there, I am VERY stuck. I have been trying to get this smart_host to work on my fBSD 4.7 but nothing seems to work. I have a dial-up link and I want sendmail to do mail transfer only when the link is up and from a cron job. here is my .mc =========================== VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.10.2.16 2002/05/22 16:39:14 gshapiro Exp $') OSTYPE(freebsd4) FEATURE(access_db, `hash -o -T /etc/mail/access') FEATURE(local_lmtp) define(`SMART_HOST', `smarthost.com') MAILER(local) MAILER(smtp) ============================= unfortunately if I run sendmail -bp here is what I get ================================ -----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient------- ---- h3RHQn8p000219 2 Sun Apr 27 17:26 (host map: lookup (yahoo.com): deferred) Total requests: 1 ================================ it is trying to lookup yahoo.com and not send it through my smarthost.com - why? what am I doing wrong? and also when I send mail to the server it immediately tries to relay the message and my MUA hangs - why? how can I get sendmail to put everything in the queue and wait for a command in order to deliver the msgs to the smarthost.com? I have remove all -q from the sendmail flags in my rc.conf ============================== sendmail_enable="yes" sendmail_flags="-L sm-mta -bd" ============================== Thanx DJ Boris