Bowie Bailey wrote:
Jay Lee wrote:
Matt Miller wrote:
On Jul 28, 2008, at 2:06 PM, Bowie Bailey wrote:

Create an alias from the original address to the new server.

In /etc/courier/aliases:

[EMAIL PROTECTED]: [EMAIL PROTECTED]

And then make sure courier knows how to deliver mail to
newserver.domain.com.
I'm trying to make a truly split domain, where each server
believes that it is responsible for example.com.  I did it that
way for testing, but now I'm trying to run the two side-by-side
if possible.
As far as I know, this is not possible.  If the server believes it
is responsible for example.com, it will attempt to deliver all
example.com mail locally unless there is an alias directing it
elsewhere.
Configure the other server to accept mail for example.com as well as
other.example.com.  Then add the following into your
etc/courier/maildroprc:

`test -f to-other.txt`
if ($RETURNCODE==0)
{
  to "[EMAIL PROTECTED]"
}

do a:

touch /path/to/users/home/to-other.txt

for each and every user who should have mail sent to the other server.

Is this functionally any different from an alias?  (besides using
maildrop for forwarding)

Technically yes since Courier accepts the message and starts delivery instructions instead of just re-queueing it to the alias. So for instance, if he runs spam filtering via a maildrop call to spamc, he could just put this code underneath the spamc call and his user's spam filters would stay in place. But most importantly, it saves him the trouble of creating and maintaining a lot of aliases, he just has to touch a single file in each user's existing home directory.

But the aliases would work just as well and would actually be more efficient since maildrop wouldn't need to be fired up for each message. It all depends on his setup and needs.

Jay

--
Jay Lee
Network/Systems Administrator
Information Technology Department
Philadelphia Biblical University

begin:vcard
fn:Jay Lee
n:Lee;Jay
org:Philadelphia Biblical University;Information Technology Department
adr;dom:;;;Langhorne, PA
email;internet:[EMAIL PROTECTED]
title:Network/Systems Administrator
x-mozilla-html:TRUE
url:http://www.pbu.edu
version:2.1
end:vcard

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to