From owner-freebsd-questions@FreeBSD.ORG Tue Aug 19 17:56:27 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 659B4106567A for ; Tue, 19 Aug 2008 17:56:27 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout012.mac.com (asmtpout012.mac.com [17.148.16.87]) by mx1.freebsd.org (Postfix) with ESMTP id 587218FC15 for ; Tue, 19 Aug 2008 17:56:27 +0000 (UTC) (envelope-from cswiger@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from cswiger1.apple.com ([17.227.140.124]) by asmtp012.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug 7 2008; 32bit)) with ESMTPSA id <0K5V00IF20HHDS20@asmtp012.mac.com> for freebsd-questions@freebsd.org; Tue, 19 Aug 2008 10:56:06 -0700 (PDT) Message-id: From: Chuck Swiger To: Derrick Ryalls In-reply-to: Date: Tue, 19 Aug 2008 10:56:05 -0700 References: X-Mailer: Apple Mail (2.928.1) Cc: FreeBSD Questions Subject: Re: sendmail secondary server routing to alternate port 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: Tue, 19 Aug 2008 17:56:27 -0000 On Aug 19, 2008, at 10:16 AM, Derrick Ryalls wrote: > For example, if I was relaying for example.org on port 2345, I would > specify > example.org:2345 and that is the port it would use to talk to > example.org. > > Now that I have switched to sendmail, I don't see a way to set the > destination port on a per domain basis, only on an all or nothing > basis. Am I missing some piece of the documentation or is this an > actual limitation of sendmail? You can do this with /etc/mail/mailertable: example.org relay:example.org ...and change to the relay mailer flags with this in your sendmail.mc define(`RELAY_MAILER_ARGS', `TCP $h 2345') Note that you might want to define a new mailer called "relay2345" instead of changing the default relay mailer. Regards, -- -Chuck