Thanks for the quick response.  These are sometimes generated by cron jobs
and other times by users
with entrenched behaviour.

The simplest fix for us would be to  make our mail server to accept all
mails addressed

user@ALL_localhosts (short form) and
user@ALL_localhosts.domain.com   (FQDN)

in addition to accepting

u...@domain.com

---
An example is.... (from hostA)

mailx -s "to  joe@hostb " joe@hostb  < /etc/redhat-release



(Yes restarting the postfix did not help).

The error message I see on the postfix server is ...

Jul 16 10:59:42 hostM postfix/smtp[696815]: 9B1B420ECDC6: to=<joe@hostb>,
relay=none, delay=0.05, delays=0.02/0.03/0/0, dsn=5.4.4, status=bounced
(Host or domain name not found. Name service error for name=hostb type=A:
Host not found)

Of course hostb resolves in DNS.

Thanks again for your time and help.


On Fri, Jul 16, 2021 at 10:52 AM Matus UHLAR - fantomas <uh...@fantomas.sk>
wrote:

> On 16.07.21 10:42, Thirumurugan Kalapatti wrote:
> >We have a few dozen linux clients with one system setup as the post
> >mail relay server.
> >
> >like host1, host2, host3 .... hostn all setup to use hostM as mail
> >relay host.  These hosts just relay through hostM. They all
> >share the namespace in terms of account/usernames.
> >
> >But when a userA on host1 sends mail to userB@host2, host1
> >relays through hostM but hostM is not accepting mail for host2.
> >
> >Basically I want to add all our hosts to be part of the mydestination
> >on the mail server hostM.
> >
> >Setting up to
> >mydestination = $mydomain, $myhostname, localhost.$mydomain, localhost,
> >"/etc/postifx/local-host-names"
> >
> >with local-host-names with the list of local hosts does not seem to help.
>
> 1. have you tried reloading postfix?
>
> 2. wouldn't it be better to use single host/domain name for mail on all
> hosts
> instead of mailing userA@host1 and userB@host2 ?
>
> >How can I make our mail server accept mail for all our local hosts?
>
> --
> Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
> Warning: I wish NOT to receive e-mail advertising to this address.
> Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
> If Barbie is so popular, why do you have to buy her friends?
>

Reply via email to