From owner-freebsd-questions@FreeBSD.ORG Fri Dec 10 12:38:24 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C30F6106564A for ; Fri, 10 Dec 2010 12:38:24 +0000 (UTC) (envelope-from nr1c0re@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 81AF18FC12 for ; Fri, 10 Dec 2010 12:38:24 +0000 (UTC) Received: by qwj9 with SMTP id 9so3774383qwj.13 for ; Fri, 10 Dec 2010 04:38:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=XfMwxwDvcRb3YgEAaZivSFBNPRKSCN4UxHT+TDWTAFk=; b=dy1+LPeynbLuBP2qXpFwEJ3Nj1BWkrRIK3dxEosY5PzQy+aLvmVhj578JeKTpYD8sc obr1HErpCHZ8TprIRAOElsrOatYR3v+igOT1ozYD4LwFR9+Y9bSB0XB2E0enlzEOR5D3 sjdEPMnqTz+g4AzY0ziJ2+9Jb75xFmBakHxRE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=WdOUR+l9jLN0Hp75X0tM3Z3/UbkKCkJO2QjeupJz0wFzHX9vssFeVi01ppuM8xQTER kTvpGEVz49tDpAI+/GJud9F042dy37er/F+efHN9JlFzSYd1IkOn6JcXZpZcIeOxtZ1v kly4p8yjRS1svch62sCaVPkepoGIJweahwTG0= MIME-Version: 1.0 Received: by 10.229.86.13 with SMTP id q13mr632362qcl.175.1291984703585; Fri, 10 Dec 2010 04:38:23 -0800 (PST) Received: by 10.229.7.9 with HTTP; Fri, 10 Dec 2010 04:38:23 -0800 (PST) Date: Fri, 10 Dec 2010 15:38:23 +0300 Message-ID: From: c0re To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Want sendmail applying aliases to 'cc:' field too 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: Fri, 10 Dec 2010 12:38:24 -0000 Hey all! I've got /etc/mail/aliases file like user: user@site1.domain.com user2: user2@site1.domain.com user3: user3@site2.domain.com When someone from Internet send email to user@domain.com with cc: to user3@domain.com sendmail send mail to user and user3 normaly, they recieve their mail. But I need some additional behavior: user receive that mail with to: user@site1.domain.com cc: user3@domain.com I want that cc would be user3@site2.domain.com, like in aliases file. Because I got problems replying to all (with user3@domain.com included, but it must be user3@site2.domain.com). How this can be achieved? In other words I need some kind of cc: field rewriting regarding to aliases file contents. I have not found such feature in sendmail. So I think this can be done with some milter may be... Anyone has ideas? Any tips, thinks, tricks and etc highly needed! I'm out of ideas at that moment. Thanks!