On Friday 05 December 2003 22:32, Leo \ wrote:
> I want to configure my courier daemon to not issue an 550 User Unknown
> message during the SMTP transaction and instead fire a mailer-daemon
> type email to the sender warning of the problem.
>
> Is it possible at all?
> If so, how to do it?

Yes it's (mostly) possible.  For any domain in hosteddomains you can create 
the account '[EMAIL PROTECTED]' and all mail for non-users at that domain 
will be delivered to the alias account.  You can then use a .courier-default 
file to do whatever you want - send back warning messages, bit-bucket the 
mail, parse it for misspellings, etc.

But you really need to think this through.  If this machine is connected to 
the internet then every spammer that comes along is going to dump 10,000 
messages into your machine all of which will be accepted by you and then you 
will turn around and send back 10,000 "this account is invalid" messages to 
an account that doesn't exist in the first place (or worse might be an actual 
account that he hijacked as his MAIL FROM address).  

I can see some situations where you want to accept mail for unknown users.  
One of our machines hosts a subset of our organization's domain, so I use an 
"[EMAIL PROTECTED]" account to simply forward all mail to unknowns back upstream 
to the main servers and let them handle it.  But this machine is NOT on the 
internet so I don't have to worry about spammers, etc.  

I can't see a good reason to accept mail for unknowns and send back a message 
saying it's an unknown account.  That's going to generate a ton of traffic 
which doesn't need to be generated.  Any legitimate user should get a bounce 
back from their mail server saying that the remote server refused the 
connection - "550 user unknown" or some such.  What are you trying to 
accomplish differently?  (Just curious.  I figure that you have do have a 
reason for wanting to do this even if I don't know what it is. :-)

Jeff Jansen



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to