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.