From owner-freebsd-questions@FreeBSD.ORG Mon Mar 1 20:03:51 2010 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 304891065670 for ; Mon, 1 Mar 2010 20:03:51 +0000 (UTC) (envelope-from dan@dpcsys.com) Received: from capistrano.beach.net (ns.beach.net [12.130.64.129]) by mx1.freebsd.org (Postfix) with ESMTP id 171988FC0C for ; Mon, 1 Mar 2010 20:03:50 +0000 (UTC) Received: from [192.168.1.225] (host135 [209.200.204.135]) by capistrano.beach.net (8.14.3/8.14.3) with ESMTP id o21Jm0xw017555; Mon, 1 Mar 2010 11:48:01 -0800 (PST) (envelope-from dan@dpcsys.com) In-Reply-To: <657548.61990.qm@web52307.mail.re2.yahoo.com> References: <657548.61990.qm@web52307.mail.re2.yahoo.com> Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Dan Busarow Date: Mon, 1 Mar 2010 12:47:55 -0700 To: Uzair Qadir X-Mailer: Apple Mail (2.753.1) Cc: questions@freebsd.org Subject: Re: Sendmail Configuration X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Mar 2010 20:03:51 -0000 On Mar 1, 2010, at 10:40 AM, Uzair Qadir wrote: > Hi, > i am new to the freebsd. and i have been trying to configure > sendmail so that it would only send mails through a mail server . > but i cant seem to get it right. wen i run sendmail. i get the > following output. i would like to knw what could be the problem. Set SMART_HOST in /etc/mail/hostname.mc and then run make If you have not run make in /etc/mail yet, do that first. That will create hostname.mc In your case that may end up being domain.pk.mc Add a line like this define(`SMART_HOST', `[172.16.1.1]') using the correct IP address for the mail server. If the mail server has an FQDN use that without the square brackets define(`SMART_HOST', `mail.server.com') Run make That should do it. Dan > > > WARNING: local host name (FreeBSD) is not qualified; see cf/README: > WHO AM I? > dest@domain.pk... Connecting to [127.0.0.1] via relay... > 220 FreeBSD ESMTP Sendmail 8.14.3/8.14.3; Mon, 1 Mar 2010 18:37:13 > +0500 (PKT) >>>> EHLO FreeBSD > 250-FreeBSD Hello localhost [127.0.0.1], pleased to meet you > 250-ENHANCEDSTATUSCODES > 250-PIPELINING > 250-8BITMIME > 250-SIZE > 250-DSN > 250-ETRN > 250-DELIVERBY > 250 HELP >>>> MAIL From: SIZE=46 > 250 2.1.0 ... Sender ok >>>> RCPT To: >>>> DATA > 250 2.1.5 ... Recipient ok > 354 Enter mail, end with "." on a line by itself >>>> . > 250 2.0.0 o21DbDbk008201 Message accepted for delivery > dest@domain.pk... Sent (o21DbDbk008201 Message accepted for delivery) > Closing connection to [127.0.0.1] >>>> QUIT > 221 2.0.0 FreeBSD closing connection > > > > Regards > Uzair Qadir > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions- > unsubscribe@freebsd.org"