Sendmail Delivery Help

Sendmail Delivery Help

am 23.01.2008 16:00:11 von Dan_track

Hi

Just wondering if someone can help me with the following, or even just
let me know if its possible and point me to somewhere.

Basically I'd like to configure sendmail in such a way that for a
particular domain e.g example.com it sends all mail to server1 however
for user joe@example.com I want his mail to be sent directly to
server2.

Can anyone help me with this?

Thanks in advance
Dan

Re: Sendmail Delivery Help

am 24.01.2008 09:40:24 von ska

> Basically I'd like to configure sendmail in such a way that for a
> particular domain e.g example.com it sends all mail to server1 however
> for user joe@example.com I want his mail to be sent directly to
> server2.

The stock LDAP routing is able to do so. But I never used it.

I used to configure sendmail the following way:

setup mailertabler to drop example.com to server1

in sendmail.mc:

LOCAL_RULE_0
R$+ < @ $+ > $* <> $: < $(access REROUTE:$1@$2 $: $) > <$1> <$2> <
$3> Check if to reroute address to different host; default to <>
R<$+> <$+> <$+> <$*> <> $#esmtp $@ $1 $: $2<@$3>$4 Reroute
to different host
R<> <$+> <$+> <$*> <> $1 <@$2> $3 Restore old
line for system rules

In /etc/mail/access

REROUTE:user@example.com server2