From owner-freebsd-questions@FreeBSD.ORG Mon Sep 1 14:29:11 2003 Return-Path: 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 4FCE116A4BF for ; Mon, 1 Sep 2003 14:29:11 -0700 (PDT) Received: from smtp.web.de (smtp02.web.de [217.72.192.151]) by mx1.FreeBSD.org (Postfix) with ESMTP id 391A543FF3 for ; Mon, 1 Sep 2003 14:29:10 -0700 (PDT) (envelope-from nakal@web.de) Received: from [80.135.112.195] (helo=[192.168.0.1]) by smtp.web.de with esmtp (TLSv1:DES-CBC3-SHA:168) (WEB.DE 4.99 #448) id 19twEW-00010T-00 for freebsd-questions@freebsd.org; Mon, 01 Sep 2003 23:29:08 +0200 From: Martin To: FreeBSD Questions Mailing List Content-Type: text/plain Message-Id: <1062451746.564.29.camel@klotz.local> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Mon, 01 Sep 2003 23:29:07 +0200 Content-Transfer-Encoding: 7bit Sender: nakal@web.de Subject: Need help with sendmail, smart host and genericstable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Sep 2003 21:29:11 -0000 Hi, I have been playing a few hours with sendmail settings, but I failed to configure it correctly. I want to explain what I want to do. Perhaps sendmail is the wrong tool for this. I want to send mail from /usr/bin/mail, emacs, vi etc and forward it to my provider. That means, the local "From:" address and other headers need to be mapped to my external mail address. It is not enough to just rewrite the host name. The user name is also different. I have read several documents now. The FreeBSD handbook (contains errors with dialup configurations btw), the freebsddiary, an explanation directly from sendmail.org and few from some universities. I have been searching on google, but the combination of smart host and genericstable seems very unusual. Nothing works so far. I can see that SMART_HOST setting works, because sendmail is always giving me MAILER-DAEMON-mails containing chat-logs with the external SMTP server. But the From-Line was not translated according to my settings in /etc/mail/genericstable (yes, it contains tabs and not spaces). GENERICS_DOMAIN_FILE is correct, too, in my opinion. When I remove the SMART_HOST setting. The From-lines are translated correctly, but the mail will get bounced of course, because I'm dialup. The FreeBSD handbook does not mention genericstable and how it works and if it works. I cannot see what is wrong and sendmail -bt shows that it does not translate addresses. Martin