Sendmail - how to suppress return email erro messages to clients

Posted on 2009-04-22
Last Modified: 2013-12-16
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.

Question by:yaronkaden
    LVL 8

    Expert Comment

    by:Bradley Haynes
    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.

    Author Comment

    Hi b_haynes:,

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

    LVL 8

    Accepted Solution

    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',`', `"550 5.7.1 Access denied(O): Unsolicited e-mail from " $&{client_addr} " refused. Request access at"')dnl
    FEATURE(`dnsbl',`',`"554 Rejected " $&{client_addr} " found in"')dnl  

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
    Join Greg Farro and Ethan Banks from Packet Pushers ( and Greg Ross from Paessler ( for a discussion about smart network …
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now