cannot email to the jail from the host

Jonathan Horne freebsd at dfwlp.com
Wed May 9 01:20:28 UTC 2007


i have a host, that runs a jail that is my network's email server.  the host, 
cannot send mails to the jail.  (host is canopus, jail is pollux)  example:

[jhorne at canopus ~]$ mail
No mail for jhorne
[jhorne at canopus ~]$ ifconfig|mail jhorne at pollux.dfwlp.com

then, in my host's maillog, i see: 

[jhorne at canopus ~]$ tail /var/log/maillog|grep sm-mta
May  8 19:51:24 canopus sm-mta[4523]: l490pONL004523: 
from=<jhorne at canopus.dfwlp.com>, size=1372, class=0, nrcpts=1, 
msgid=<200705090051.l490pO9h004521 at canopus.dfwlp.com>, proto=ESMTP, 
daemon=Daemon0, relay=localhost.dfwlp.com [127.0.0.1]

May  8 19:51:24 canopus sm-mta[4524]: l490pONL004523: 
to=<jhorne at pollux.dfwlp.com>, ctladdr=<jhorne at canopus.dfwlp.com> (1001/1001), 
delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31654, relay=local, 
dsn=2.0.0, stat=Sent

May  8 19:53:46 canopus sm-mta[4554]: l490rjLf004554: 
from=<jhorne at canopus.dfwlp.com>, size=1372, class=0, nrcpts=1, 
msgid=<200705090053.l490rjZT004553 at canopus.dfwlp.com>, proto=ESMTP, 
daemon=Daemon0, relay=localhost.dfwlp.com [127.0.0.1]

May  8 19:53:46 canopus sm-mta[4555]: l490rjLf004554: 
to=<jhorne at pollux.dfwlp.com>, ctladdr=<jhorne at canopus.dfwlp.com> (1001/1001), 
delay=00:00:01, xdelay=00:00:00, mailer=local, pri=31654, relay=local, 
dsn=2.0.0, stat=Sent

and of course, nothing at all in the maillog of pollux.  back on canopus, is 
the where the email in question has been delivered:

[jhorne at canopus ~]$ mail
Mail version 8.1 6/6/93.  Type ? for help.
"/var/mail/jhorne": 1 message 1 unread
>U  1 jhorne at canopus.dfwlp  Tue May  8 19:53  41/1723
&

problem appears to be related to canopus using localhost as its relay, 
possibly amplified by the fact that canopus and pollux share the same mac 
address.  is there a way around this?  on my host (canopus) i have 
sendmail_enable="NO" in /etc/rc.conf.  also, local DNS is correctly 
configured, and resolves the correct ip from canopus

im totally stumped here, is there a way around this caveat?

thanks,
-- 
Jonathan Horne
http://dfwlpiki.dfwlp.org
freebsd at dfwlp.com


More information about the freebsd-questions mailing list