On Thu, 18 Mar 2021 at 23:13, Viktor Dukhovni <postfix-us...@dukhovni.org> wrote:
> On Thu, Mar 18, 2021 at 10:21:02PM +0530, Durga Prasad Malyala wrote: > > > I am getting the error "Sender address rejected: Domain not found > exception" > > in my mail server. > > Are you sure the word "exception" is there? Postfix does not generate > messages, but it does generate "Domain not found" when a domain does > not exist or has no MX or A, AAAA records. > > > The sender domain has - a special character as well in their domain like > > abc-dfgh.co.in. > > If you want usable help, you'll need to be willing to post the actual > domain name, not an obfuscated version. > > > after googling I created a file called no_a_record.pcre with the > following > > contents. > > The first line below does not look like a valid PCRE table pattern. > > > smsupp...@abc-dfgh.co.in > > /^.*abc-dfgh.co.in$/ OK > > > > also added in main.cf. ... > > smtpd_sender_restrictions = > > check_sender_access hash:/etc/postfix/access, > > pcre:/etc/postfix/no_a_record.pcre, > > reject_unknown_sender_domain > > You really should write: > > smtpd_sender_restrictions = > check_sender_access hash:/etc/postfix/access, > check_sender_access pcre:/etc/postfix/no_a_record.pcre, > reject_unknown_sender_domain > > but again, post the output of "postconf -nf", being careful to > not fold any lines, or otherwise add or remove whitespace. > Do not send HTML email, compose it as plain text. > > > however it is not working. Can someone please help. > > Post the *actual* domain name in question. Also your "postconf -nf" > output as requested above. > > -- > Viktor. > Thank You Victor for your quick response. You are right the word exception is not there. My Mistake - it was my ask actually to create an exception.. the domain is ucc-bsnl.co.in The Log is: Mar 18 23:09:25 mx5 postfix/smtpd[6039]: NOQUEUE: reject: RCPT from mail-eopbgr1390048.outbound.protection.outlook.com[40.107.139.48]: 450 4.1.8 <dltsupp...@ucc-bsnl.co.in>: Sender address rejected: Domain not found; from=<dltsupp...@ucc-bsnl.co.in> to=<d...@datasoftcomnet.com> proto=ESMTP helo=<IND01-BO1-obe.outbound.protection.outlook.com> Is this OK? smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/access, check_sender_access pcre:/etc/postfix/no_a_record.pcre, check_sender_access hash:/etc/postfix/joeweindb, check_sender_access hash:/etc/postfix/ransomwaredombl, reject_unknown_sender_domain Regards DP <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>