Re: [SLUG] forward sendmail to another internal mail server.

From: Matt Miller (matt.s.miller@gmail.com)
Date: Wed Feb 02 2005 - 11:21:17 EST


On Fri, 28 Jan 2005 16:00:41 -0500, patrick grantham
<pwgrant@cssi-fl.com> wrote:
> Her my senario. Advice/suggestions would be appreciated.
> Server1 current email server1 192.168.1.1 for incomming and outgoing email (outgoing email is relayed via the isp smtp server.
>
> server2 to become email server, 192.168.1.2
>
> on a user by user basis configure server1 to forward email to server2. Both are behind firewall/router.
>
> Can sendmail be configured so that user A email is forwarded to server2 without using smtp relay without affecting user B?
>
> The trouble I run into is that when sendmail forwards, it contacts the smtp server of the isp. I would like it to forward email on the same subnet directly to new server
>
> suggestions?

Patrick,
Unless I am not understanding the question, can you not just forward
e-mail using aliases?

Let's say 192.168.1.1 is hosta.domain.com and 192.168.1.2 is
hostb.domain.com. hosta.domain.com receives the mail and forwards
according to the alias rule. An entry in your aliases file
(/etc/aliases or /etc/mail/aliases) would look like this:

johnsmith: johnsmith@hostb.domain.com

Running newaliases will dynamically update the aliases database.
Matt
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:22:29 EDT