Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 498
  • Last Modified:

Sendmail - how to suppress return email erro messages to clients

Hi all, I have a Sendmail server up and running.
I restrict email messages that can pass through my server to 10M and it's working fine.
In the current situation, if a client tries to send an email that its size is more than 10M my sendmail server sends an error message back to the client which likes this :
from:Mail Delivery Subsystem
The following addresses had permanent fatal errors ----- shay@qamail
(reason: 552 5.2.3 Message size exceeds fixed maximum message size (10000000))

My question is how can I suppress these error messages from being sent by sendmail and how can I custom my own error messages sent by sendmail.

  • 2
1 Solution
Bradley HaynesCommented:
I use Postfix and I would think Sendmail is not that much different.
In the Conf file there is a setting where you can set the error message text.
yaronkadenAuthor Commented:
Hi b_haynes:,

Are you sure about it? can you maybe point me the corresponding configuration lines in the /etc/mail/sendmail.mc file because I went over it and I couldn't find it.

Bradley HaynesCommented:
I found this example:
Optional: Customize the Error Message
If you aren't satisfied with the default error message sendmail returns, you may specify one that you like better as a a third argument to the FEATURE macro.
Here are two examples:
FEATURE(`dnsbl',`relays.ordb.org', `"550 5.7.1 Access denied(O): Unsolicited e-mail from " $&{client_addr} " refused. Request access at http://www.whipple.org/mailrequest.html"')dnl
FEATURE(`dnsbl',`dnsbl.sorbs.net',`"554 Rejected " $&{client_addr} " found in dnsbl.sorbs.net"')dnl  

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now