Date: Thu, 19 Dec 2002 15:50:15 +0200 From: Juha Erkkila <erkkila@cc.jyu.fi> To: freebsd-questions@FreeBSD.org Subject: how to configure sendmail to send mail locally? Message-ID: <20021219155015.B7875@itu.st.jyu.fi>
next in thread | raw e-mail | index | archive | help
it seems i can't send mail to anyone locally. shouldn't
sendmail do this?
aot% date
Thu Dec 19 14:46:26 EET 2002
aot% mail -s test je@localhost
i think this should work, but it doesn't. no mail for me!
EOT
aot% mail
No mail for je
aot% su
Password:
aot# mailq -Ac
/var/spool/clientmqueue (3 requests)
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
gBJCkgen000436 59 Thu Dec 19 14:46 je
(Deferred: Name server: [localhost]: host name lookup failure)
je@localhost
gBJA1bKs000084 1438 Thu Dec 19 12:01 MAILER-DAEMON
(Deferred: Name server: [localhost]: host name lookup failure)
root
gBIMULUH000260 108 Thu Dec 19 00:30 root
(Deferred: Name server: [localhost]: host name lookup failure)
elina
Total requests: 3
aot# exit
aot%
localhost should resolve somehow anyway, as i can ping it:
aot# ping localhost
PING localhost (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.104 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.078 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.072 ms
^C
--- localhost ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.072/0.085/0.104/0.014 ms
i haven't touched sendmail configuration in /etc/mail. should i?
here's some general confuration info:
aot# cat /etc/host.conf
# $FreeBSD: src/etc/host.conf,v 1.6 1999/08/27 23:23:41 peter Exp $
# First try the /etc/hosts file
hosts
# Now try the nameserver next.
bind
# If you have YP/NIS configured, uncomment the next line
# nis
aot# cat /etc/hosts
127.0.0.1 localhost
aot# cat /etc/resolv.conf
cat: /etc/resolv.conf: No such file or directory
aot# grep sendmail /etc/rc.conf
sendmail_enable="YES"
aot# top -b | grep sendmail
79 root 2 0 2780K 2188K select 0:00 0.00% 0.00% sendmail
82 smmsp 18 0 2660K 2180K pause 0:00 0.00% 0.00% sendmail
aot# cat /var/spool/clientmqueue/sm-client.pid
82
/usr/sbin/sendmail -L sm-msp-queue -Ac -q30m
aot# netstat -a | grep tcp4
tcp4 0 0 *.submission *.* LISTEN
tcp4 0 0 *.smtp *.* LISTEN
i don't run any DNS server, and don't want to run one (at least
not quite yet)
any pointers on how this could be resolved? exim does this in
the default configuration, why not sendmail?
Juha
--
People must not do things for fun. We are not here for fun. There is
no reference to fun in any Act of Parliament.
-- A P Herbert, Uncommon Law
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021219155015.B7875>
