I am trying to set up e-mail delivery between a couple of hosts in my
lan. So far, I am unable to get the "current" host to relay messages to
its neighbour because the "infrastructure" fails to inform smtpd (on
current) about the MX record for the local neighbour domain. The local
aliases for hosts are configured in /etc/hosts:
10.3.0.3 tryggve.lan try.lan tryggve try
10.3.0.6 raptor.lan rap.lan raptor rap
Is there a way to configure opensmtpd to accept e-mails for hosts in
/etc/hosts or for static IP addresses without setting up a DNS server
with a real (or fake local) domain and an MX for that domain?
Here is what I have done:
email from workstation:
$ mail root@try
Subject: Hello from raptor.lan
Dear Tryggve.lan,
Please accept my messages.
You should do so because I told you to:
accept from source { 10.3.0.0/24 }
----
I think that the "try" alias shoud work because on the workstation, I have:
accept from any for domain { "tryggve", "try", "tryggve.lan" } \
relay hostname "tryggve.lan"
---
But, regardless of that, even if I send to [email protected] or even
[email protected], there is still no DNS in my lan and therefore, smtpd says:
# smtpd -d
info: OpenSMTPD 5.4.2p1 starting
info: startup
smtp-in: New session e5f0c2025f56f36c from host 1512@localhost [local]
smtp-in: Accepted message 5e43e650 on session e5f0c2025f56f36c: \
from=<[email protected]>, to=<root@try>, size=349, ndest=1,
proto=ESMTP
smtp-in: Closing session e5f0c2025f56f36c
smtp-out: Failed to resolve MX for [relay:try,heloname=tryggve.lan]:
Domain does not exist
relay: PermFail for 5e43e650ba9fa8c5: session=0000000000000000, \
from=<[email protected]>, to=<root@try>, rcpt=<->, source=-, \
relay=try, delay=0s, stat=Domain does not exist
smtp-in: New session e5f0c2034704072f from host localhost [local]
smtp-in: Accepted message c0376b48 on session e5f0c2034704072f: \
from=<>, to=<[email protected]>, size=930, ndest=1, proto=ESMTP
smtp-in: Closing session e5f0c2034704072f
delivery: Ok for c0376b486e58eb00: from=<>, to=<[email protected]>, \
user=jaroslav, method=mbox, delay=0s, stat=Delivered
--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]