Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

In Google Apps administration, under e-mail settings (Service Settings > Email), I have the option to specify a catch-all address or to discard the e-mail.

But, I'm wondering how I would configure rejection of the e-mail (i.e. 550 error) instead of simply discarding it, because I want people who send to an incorrect address to know they have sent to a wrong address.

What are methods for accomplishing this? Do I set a catch-all address and then monitor that mailbox with a Daemon that generates 550 rejection notices? Do I do something crazy with my MX records?

share|improve this question

4 Answers 4

up vote 2 down vote accepted

Google Apps already sends a 550 error if you don't have a catch-all address set.

Here is the results of a message I just sent to a invalid account on a Google Apps domain (example.org) from my gmail account. Names have been changed to protect the guilty. The domain is set to 'discard'.

Delivered-To: myaddress@gmail.com
Received: by 10.216.45.139 with SMTP id p11cs30689web;
        Tue, 21 Sep 2010 12:05:45 -0700 (PDT)
Received: by 10.216.176.83 with SMTP id a61mr9625704wem.47.1285095944841;
        Tue, 21 Sep 2010 12:05:44 -0700 (PDT)
MIME-Version: 1.0
Return-Path: <>
Received: by 10.216.176.83 with SMTP id a61mr12854859wem.47; Tue, 21 Sep 2010
 12:05:44 -0700 (PDT)
From: Mail Delivery Subsystem <mailer-daemon@googlemail.com>
To: myaddress@gmail.com
X-Failed-Recipients: baduser@example.org
Subject: Delivery Status Notification (Failure)
Message-ID: <0016e65aeed64b68270490c9b757@google.com>
Date: Tue, 21 Sep 2010 19:05:44 +0000
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Delivery to the following recipient failed permanently:

     baduser@example.org

Technical details of permanent failure:=20
Google tried to deliver your message, but it was rejected by the recipient 
domain. We recommend contacting the other email provider for further inform
ation about the cause of this error. The error that the other server return
ed was: 550 550-5.1.1 The email account that you tried to reach does not ex
ist. Please try
550-5.1.1 double-checking the recipient's email address for typos or
550-5.1.1 unnecessary spaces. Learn more at                            
550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=3D6596 p70si1
2864980weq.200 (state 14).

----- Original message -----

MIME-Version: 1.0
Received: by 10.216.176.83 with SMTP id a61mr9625683wem.47.1285095944055; T
ue,
 21 Sep 2010 12:05:44 -0700 (PDT)
Received: by 10.216.45.139 with HTTP; Tue, 21 Sep 2010 12:05:44 -0700 (PDT)
Date: Tue, 21 Sep 2010 12:05:44 -0700
Message-ID: <AANLkTin=3DHe9tL3SG8nYb2WpRSp8BYM-4rvNa2BPiOHMU@mail.gmail.com
>
Subject: invalid user test
From: Chris Francy <myaddress@gmail.com>
To: baduser@example.org
Content-Type: text/plain; charset=3DISO-8859-1

invalid user test
share|improve this answer
    
I guess I had never tried because I feared dropping e-mail in the intermittent time. Thanks! –  palswim Sep 21 '10 at 19:20

I use a catch-all account that has a Vacation responder.

No backscatter is produced, because incoming spam is filtered by Google. So the Vacation responder only replies to incorrectly addressed "real" messages.

The catch-all account also forwards a copy of all incoming mail to me, so I can monitor it.

share|improve this answer

The way Google Apps is configured is an increasingly common way of configuring mail. It is entirely possible for bad entities to perform what amounts to a directory attack by throwing commonly used usernames at a mail domain, and anything that doesn't produce a 550 error is considered to be a verified live address (we have a guy in the office who has "steve" as his account name. He gets more spam than you do). If you never return a 550, they can't know they found a bad one.

The utility of that is somewhat debatable in this era of IP-reputation based antispam systems, but it can matter to some.

share|improve this answer

Just create a catch-all address with an auto-responder. You can use the auto-responder to let people know they've sent mail to a user that doesn't exist.

share|improve this answer
1  
Please do not do this, the likely hood of you being a source of backscatter is very high. –  Zoredache Sep 21 '10 at 19:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.