From owner-freebsd-questions@FreeBSD.ORG Wed Mar 8 16:15:31 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 56BA016A420 for ; Wed, 8 Mar 2006 16:15:31 +0000 (GMT) (envelope-from nvidican@wmptl.com) Received: from wmptl.net (mail.wmptl.com [216.8.159.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id C09F443D55 for ; Wed, 8 Mar 2006 16:15:30 +0000 (GMT) (envelope-from nvidican@wmptl.com) Received: from [10.0.0.104] (r3140ca.wmptl.net [10.0.0.104]) by wmptl.net (8.13.4/8.13.4) with ESMTP id k28GFTgo090565 for ; Wed, 8 Mar 2006 11:15:29 -0500 (EST) (envelope-from nvidican@wmptl.com) Message-ID: <440F033A.2070400@wmptl.com> Date: Wed, 08 Mar 2006 11:15:54 -0500 From: Nathan Vidican User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.54 on 10.0.0.80 Cc: Subject: Sendmail / alias issue X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Mar 2006 16:15:31 -0000 I know there might be a better sendmail/related mailing list to send this to, but figured I'd drop it here and give it a shot - sorry for the cross post, but I subscribe to -questions so figured it'd be okay and beneficial to other users too. Anyhow, on with the problem: I have an entry like this in /etc/mail/aliases: someolduserwhoquit: 550:"The user you have attempted to send mail to no \ longer exists on this system, please see\ http://www... for details or a new contact" (not exact; in alias file it's all on one line with no \ ) alias works exactly as expected; when someone sends a message to someolduserwhoquit@wmptl.com, it bounces their message back with the error string I quoted. The problem then, becomes SPAM (lol - when is SPAM NOT a problem eh?). example: - (faked) from: somefakeid@yahoo.com - sends a message to someolduserwhoquit@wmptl.com - tries to bounce message back, in-turn getting message bounced back to our postmaster saying 'no valid user here for somefakeid@yahoo.com' So, to the question part... how can I setup an alias to either ignore the bounce-back it gets, (ie to blindly send the bounce itself), or is it possible to specify a different from address on our server's end so when/if the other receiving server doesn't have a valid from address it just drops the reply on our end, like so: - our server gets mail faked from 'joeblow@hotmail.com' to someuserwhoquit@wmptl.com - our server bounces said message back to joeblow@hotmail.com with notification that 'someuserwhoquit@wmptl.com' points to an old/invalid address, our server sends from 'noreply@wmptl.com' - their server (this case hotmail), bounces back saying 'hey - don't have a joeblow@ here' to noreply@wmptl.com - noreply@wmptl.com just drops any incoming message (/dev/null kinda deal) Is this possible? Or should I perhaps be seeking a better way to do this all together? I'm getting some 30+ Postmaster reply errors a day and it's getting really annoying, however I do need to send some sort of error/notification to valid (real) emails sent to the wrong address. In some cases an employee has moved, transferred, quit, or retired and a different person has taken their place - as such I need like a grace period and a better way to do this. Any ideas/thoughts/suggestions welcomed. -- Nathan Vidican nvidican@wmptl.com Windsor Match Plate & Tool Ltd. http://www.wmptl.com/