Date: Mon, 1 Mar 2010 12:47:55 -0700 From: Dan Busarow <dan@dpcsys.com> To: Uzair Qadir <uzairqadir2003@yahoo.com> Cc: questions@freebsd.org Subject: Re: Sendmail Configuration Message-ID: <F4227425-D037-427D-8371-587E90F8182D@dpcsys.com> In-Reply-To: <657548.61990.qm@web52307.mail.re2.yahoo.com> References: <657548.61990.qm@web52307.mail.re2.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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:<uzair@FreeBSD> SIZE=46 > 250 2.1.0 <uzair@FreeBSD>... Sender ok >>>> RCPT To:<dest@domain.pk> >>>> DATA > 250 2.1.5 <dest@domain.pk>... 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F4227425-D037-427D-8371-587E90F8182D>