Sendmail Configuration

Dan Busarow dan at dpcsys.com
Mon Mar 1 20:03:51 UTC 2010


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 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-ENHANCEDSTATUSCODES
> 250-PIPELINING
> 250-8BITMIME
> 250-SIZE
> 250-DSN
> 250-ETRN
> 250-DELIVERBY
> 250 HELP
>>>> MAIL From:<uzair at FreeBSD> SIZE=46
> 250 2.1.0 <uzair at FreeBSD>... Sender ok
>>>> RCPT To:<dest at domain.pk>
>>>> DATA
> 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]
>>>> QUIT
> 221 2.0.0 FreeBSD closing connection
>
>
>
> Regards
> Uzair Qadir
>
>
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions- 
> unsubscribe at freebsd.org"



More information about the freebsd-questions mailing list