From owner-freebsd-questions@FreeBSD.ORG Wed Jul 30 20:16:16 2008 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 2DB14106564A for ; Wed, 30 Jul 2008 20:16:16 +0000 (UTC) (envelope-from tt-list@simplenet.com) Received: from mx2.securemailscan.com (ob2.scaledsystems.com [209.132.1.196]) by mx1.freebsd.org (Postfix) with ESMTP id E54FA8FC0C for ; Wed, 30 Jul 2008 20:16:15 +0000 (UTC) (envelope-from tt-list@simplenet.com) X-Warning: RFC compliance checks disabled due to whitelist X-Warning: Maximum message size check skipped due to whitelist X-Warning: System filters skipped due to whitelist X-Warning: Domain filters skipped due to whitelist X-Warning: User filters skipped due to whitelist X-Warning: Anti-Spam check skipped due to whitelist X-Whitelist: 2147483549 X-Envelope-From: tt-list@simplenet.com X-Envelope-To: freebsd-questions@freebsd.org Received: From mta1.scaledsystems.com (209.132.1.201) by mx2.securemailscan.com (MAILFOUNDRY) id 4hTpNl5qEd2pHgAw for freebsd-questions@freebsd.org; Wed, 30 Jul 2008 19:08:24 -0000 (GMT) Received: (qmail 81937 invoked from network); 30 Jul 2008 19:08:24 -0000 Received: from unknown (HELO ?192.168.1.100?) (tt@simplenet.com@75.80.130.243) by mail.ssl.simplenet.com with ESMTPA; 30 Jul 2008 19:08:24 -0000 Message-ID: <4890BC1B.8040700@simplenet.com> Date: Wed, 30 Jul 2008 12:08:11 -0700 From: Tim Traver User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: bsd Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: sendmail base configuration 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, 30 Jul 2008 20:16:16 -0000 Hi all, I know this isn't exactly the right place for a sendmail question, but it has to do with the system configuration, and I'm trying to find some help to create a relatively simple solution (I think)... ok, here is what I want to do, which I have done in the past, but now it doesn't seem to be working... I simply want any submitted email using sendmail to be relayed to another mta for distribution. I want this to happen both from submitted mail from the command line, and from any queues, if the mail is submitted to the running daemon. I use FreeBSD 7.0, and all of the configuration is in /etc/mail/. From what I understand, if I simply set the DS variable to a hostname, it is supposed to use that as the smart relay host, but it is not working. For some reason, it is ignoring that hostname, and attempting to contact the MX record host for the domain name of the machine, which is really weird. So, I tried setting the DS and the MTAHost variables to the IP of the machine I want it to go to, and that seems to work, but oddly enough, sendmail replaces the Rcpt To: variable with my current logged in username@machine host instead of the address that I gave on the command line to send the mail to... So, for instance, I would do a command like this : /usr/sbin/sendmail -v tt@domain.com Subject:test from command line test . tt... Connecting to [209.132.x.xx] via relay... 220 relayhost.scaledsystems.com ESMTP >>> EHLO script5.scaledsystems.com 250-scriptmail.scaledsystems.com 250-PIPELINING 250 8BITMIME >>> MAIL From:<> 250 ok >>> RCPT To: >>> DATA 250 ok 354 go ahead >>> . 250 ok 1217444220 qp 69963 tt... Sent (ok 1217444220 qp 69963) Closing connection to [209.132.x.xx] >>> QUIT 221 relayhost.scaledsystems.com I've checked DNS, etc...but I find it strange that it replaces the RCPT To to be my local user... Is this a bounce or something??? Is it bouncing the message based on some sort of new relaying rules or something? Cause I haven't seen this on older FreeBSD hosts... the version of sendmail is 8.14.2 Thanks, Tim.