dan at dpcsys.com
Mon Mar 1 20:03:51 UTC 2010
On Mar 1, 2010, at 10:40 AM, Uzair Qadir wrote:
> 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
using the correct IP address for the mail server. If the mail server
has an FQDN use that without the square brackets
That should do it.
> WARNING: local host name (FreeBSD) is not qualified; see cf/README:
> WHO AM I?
> dest at 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 HELP
>>>> MAIL From:<uzair at FreeBSD> SIZE=46
> 250 2.1.0 <uzair at FreeBSD>... Sender ok
>>>> RCPT To:<dest at domain.pk>
> 250 2.1.5 <dest at domain.pk>... Recipient ok
> 354 Enter mail, end with "." on a line by itself
> 250 2.0.0 o21DbDbk008201 Message accepted for delivery
> dest at domain.pk... Sent (o21DbDbk008201 Message accepted for delivery)
> Closing connection to [127.0.0.1]
> 221 2.0.0 FreeBSD closing connection
> Uzair Qadir
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to "freebsd-questions-
> unsubscribe at freebsd.org"
More information about the freebsd-questions