From owner-freebsd-questions@FreeBSD.ORG Tue Aug 19 19:01:51 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 D9DC91065679 for ; Tue, 19 Aug 2008 19:01:51 +0000 (UTC) (envelope-from ryallsd@gmail.com) Received: from rn-out-0910.google.com (rn-out-0910.google.com [64.233.170.188]) by mx1.freebsd.org (Postfix) with ESMTP id 932308FC0A for ; Tue, 19 Aug 2008 19:01:51 +0000 (UTC) (envelope-from ryallsd@gmail.com) Received: by rn-out-0910.google.com with SMTP id j71so93042rne.12 for ; Tue, 19 Aug 2008 12:01:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=54XLh2YGP8ujWMBOOc93+85690nMm3rDvHDbqlvzFvM=; b=nGWz1NNxQXe/0aNfnw8kKhM4UqVlwkzwhvUUf8T4/b31ll7DXcZEAusdejIEN0lhxY kFozazvVsIIDm08TKPT50BVgx1d38vEp0xGfFzhJWCqFPmXsWxiPbZjxmQpSAzpSdpgP IXcCQ1YRsE0foFUd+p/Kohy8/u0LouXxz1PcI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=gNM96yStjgex4PIJmD/gRYHy2FJAJcQlyhFKh6guC0tc5p5Gt+DmVf/Z8PsIb5cky8 SAfeYxiGrOUmkz50A8GxPPrOqc98GIQ42WU/fdVM6OGPLvlTQ0uoff0R5tG6hX0ilgbN VLlJHh4oQKch8WYRRLwG7p+NQyl6XFBrqR98I= Received: by 10.114.170.2 with SMTP id s2mr7072902wae.170.1219172510178; Tue, 19 Aug 2008 12:01:50 -0700 (PDT) Received: by 10.114.160.14 with HTTP; Tue, 19 Aug 2008 12:01:50 -0700 (PDT) Message-ID: Date: Tue, 19 Aug 2008 12:01:50 -0700 From: "Derrick Ryalls" To: "Chuck Swiger" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: 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 19:01:51 -0000 On Tue, Aug 19, 2008 at 10:56 AM, Chuck Swiger wrote: > 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 > Thanks for the tip. I have added this to .mc: dnl alternate relay port MAILER_DEFINITIONS relay_port_587, P=[IPC], F=mDFMuXa, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r \n, L=990, T=DNS/RFC822/SMTP, A=TCP $h 587 Created a mailer table: example.com relay_port_587:example.com And when I send to this domain, I get this in the maillog: NOQUEUE: SYSERR(root): /etc/mail/sendmail.cf: line 1718: unknown configuration line "relay_port_587, P=[IPC], F=mDFMuXa, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\\r" Aug 19 11:56:50 rncserver sm-mta[70987]: NOQUEUE: SYSERR(root): /etc/mail/sendmail.cf: line 1721: unknown configuration line "\\n, L=990,\n T=DNS/RFC822/SMTP,\n A=TCP \001h 587" Guess I have messed something up here, see anything obvious?