Sendmail Delivery Help

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 [at] example.com I want his mail to be sent directly to
server2.

Can anyone help me with this?

Thanks in advance
Dan
Dan_track [ Mi, 23 Januar 2008 16:00 ] [ ID #1915010 ]

Re: Sendmail Delivery Help

> 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 [at] 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$+ < [at] $+ > $* <<TAB>> $: < $(access REROUTE:$1 [at] $2 $: $) > <$1> <$2> <
$3> Check if to reroute address to different host; default to <>
R<$+> <$+> <$+> <$*> <<TAB>> $#esmtp $ [at] $1 $: $2< [at] $3>$4 Reroute
to different host
R<> <$+> <$+> <$*> <<TAB>> $1 < [at] $2> $3 Restore old
line for system rules

In /etc/mail/access

REROUTE:user [at] example.com server2
ska [ Do, 24 Januar 2008 09:40 ] [ ID #1915870 ]
Miscellaneous » comp.mail.sendmail » Sendmail Delivery Help

Vorheriges Thema: How can I block outbound to a specific domain with exceptions
Nächstes Thema: sendmail error