You should add the following to your /etc/hosts file:

127.0.0.1               localhost localhost.my.domain

You don't have any reference between the name "localhost" and the 127
address.

Mike


Michael K. Smith         NoaNet
206.219.7116 (work)      206.579.8360 (cell)
[EMAIL PROTECTED]       http://www.noanet.net



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Cowz Rule
Sent: Saturday, January 18, 2003 2:01 AM
To: [EMAIL PROTECTED]
Subject: Internal mail not working


#uname -a
FreeBSD bathory.aria 4.6-RELEASE FreeBSD 4.6-RELEASE #0: Tue Jun 11
06:14:12 GMT 2002    
[EMAIL PROTECTED]:/usr/src/sys/compile/GENERIC  i386

I'm having problems getting my internal mail working. What I'm trying to do
is email another internal user. #mail cowz
Subject: Test
Testing...
.
EOT
#
It never makes it to the user. After some investigation i found
/var/log/maillog:
Jan 18 01:34:53 bathory sm-mta[90]: starting daemon (8.12.3):
SMTP+queueing@00:30:00
Jan 18 01:34:53 bathory sm-msp-queue[93]: starting daemon (8.12.3):
queueing@00:30:00 Jan 18 01:35:32 bathory sendmail[155]: h0I9ZW0D000155:
from=root, size=33, class=0, nrcpts=1,
msgid=<[EMAIL PROTECTED]>, relay=root@localhost Jan
18 01:35:32 bathory sendmail[155]: h0I9ZW0D000155: to=cowz, ctladdr=root
(0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30025,
relay=[localhost], dsn=4.0.0, stat=Deferred: Name server:
[localhost]: host name lookup failure
Jan 18 01:35:33 bathory sm-msp-queue[95]: h0I9U923000154: to=cowz,
ctladdr=root (0/0), delay=00:05:24, xdelay=00:00:00, mailer=relay,
pri=120027, relay=[localhost], dsn=4.0.0, stat=Deferred: Name server:
[localhost]: host name lookup failure

I assume the localhost is the problem but i cant figure out where to change
that setting. My /etc/hosts looks:
127.0.0.1       bathory bathory.aria
::1     bathory bathory.aria
192.168.0.203   bathory bathory.aria
And in my /etc/rc.conf i have hostname="bathory.aria"
My sendmail configuration looks like this(/etc/rc.conf):
mta_start_script="/etc/rc.sendmail"
sendmail_enable="YES"
sendmail_flags="-L sm-mta -bd -q30m" # Flags to sendmail (as a server)
sendmail_submit_enable="YES"    # Start a localhost-only MTA for mail
submission
sendmail_submit_flags="-L sm-mta -bd -q30m
-ODaemonPortOptions=Addr=localhost`"
sendmail_outbound_enable="YES"
sendmail_outbound_flags="-L sm-queue -q30m"
sendmail_msp_queue_enable="YES" 
sendmail_msp_queue_flags="-L sm-msp-queue -Ac -q30m"

This is the default configureation with 4.6 i assumed it would work. The one
possible sollution i came up with was chaging the 
sendmail_submit_flags="-L sm-mta -bd -q30m
-ODaemonPortOptions=Addr=localhost"
to
sendmail_submit_flags="-L sm-mta -bd -q30m
-ODaemonPortOptions=Addr=bathory.aria"

but that doesnt work. Will someone please help me out. I have no idea what
to do `


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to