Date: Tue, 19 Aug 2008 12:01:50 -0700 From: "Derrick Ryalls" <ryallsd@gmail.com> To: "Chuck Swiger" <cswiger@mac.com> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: sendmail secondary server routing to alternate port Message-ID: <d5eb95fc0808191201g52b7d305u61e844250a2dfd0@mail.gmail.com> In-Reply-To: <B198CBBC-2ABE-4A59-AFB7-0A5ED86E2F4C@mac.com> References: <d5eb95fc0808191016v4c596fd4ne88c0409b1711e93@mail.gmail.com> <B198CBBC-2ABE-4A59-AFB7-0A5ED86E2F4C@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Aug 19, 2008 at 10:56 AM, Chuck Swiger <cswiger@mac.com> 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?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d5eb95fc0808191201g52b7d305u61e844250a2dfd0>