Timothy Murphy wrote:
Sendmail should fall back to A records if no MX exists, and it should
accept any names you've added to /etc/mail/local-host-names (requires a
sendmail restart) as local regardless of what DNS says. If you want
network-local mail delivered to some other machine you can define
MAIL_HUB in sendmail.mc with approximately the same syntax as SMART_HOST
(i.e. use []'s around literal IPs or hostnames where you want to skip
the MX lookup). Then mail determined to be local will go to the
MAIL_HUB and you can still send outside mail to a different SMART_HOST.
Thanks, I'll try that and tell you what happens.
As I said, it used to be simple to forward logwatch to a local machine.
(I'm thinking 2 or 3 years ago, possibly pre-Fedora, on Redhat systems.)
I'm not sure what has changed.
The one other thing you'll need to do if you haven't already, is
configure the receiving machine so it will accept network mail. Fedora
and current RH versions ship with sendmail configured to only listen on
the localhost loopback which is pretty useless for a nework mailer. In
sendmail.mc on alfred, remove the 127.0.0.1 from DAEMON_OPTIONS entry so
it looks like:
DAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea')dnl
and make sure port 25 isn't firewalled. Also make sure that alfred has
all the host/domain names you might use as target addresses in its
local-host-names file. There are other ways to explicitly force mail to
go to a certain machine (local DNS with explicit addresses, forwarding
files with explicit addresses, mailertable entries mapping to IP
addresses, etc., but MAIL_HUB is intended for use where you have more
than one internal machine and you want all local mail to go to one of
them. If you also do internet mail you can configure this one to relay
and be the SMART_HOST for the others, perhaps with address masquerading
but they are separate concepts.
--
Les Mikesell
lesmikesell@xxxxxxxxx
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list