| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Hello; I have a server running "Sendmail version 8.13.8, config V10/Berkeley" as a domain relay. It forwards all email to our internal Exchange server. I'd like to be able to specify a specific account that gets processed by Procmail instead of automatically relayed. Is this possible? My tests show that, currently, the mail messages are relayed without any Procmail filtering at all and no attempt to match the messages to a user account on the external server is attempted. Does anyone know the best way to accomplish this? How do I get all mail relayed except those messages addressed to one particular recipient (I'd like those messages stored in a file, instead)? Thanks! -- Stephen A. Jarjoura |
|
#2
| |||
| |||
| Stephen A. Jarjoura wrote: > as a domain relay. It forwards all email to our internal Exchange > server. I'd like to be able to specify a specific account that gets > processed by Procmail instead of automatically relayed. Is this > possible? I would say, you need to enable virtual users and add the specific account there to map to local account, then setup that account to filter the mails and remail them to final mail drop. It might be possible to skip the local account and map the mail address directly to a prog, e.g. "| /etc/mail/smrsh/procmail arguments", but then it is running with the default uid/gid of sendmail. There had been posts regarding a "procmail" mailer, by introducing a fake mail domain by Andrzej (Andrew) A. Filip, unless I'm mistaken. Maybe, this works, too. There had been some suggestions to "reroute" addresses from access DB: 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 (Tabs in front of $: and $# and the comments) access REROUTE:from@example.com to@example2.com Maybe this works for $#*prog* mailer, too, or in combination with Andrew's procmail mailer. ska |
|
#3
| |||
| |||
| Stephen A. Jarjoura schrieb: > I have a server running "Sendmail version 8.13.8, config V10/Berkeley" > as a domain relay. It forwards all email to our internal Exchange > server. I'd like to be able to specify a specific account that gets > processed by Procmail instead of automatically relayed. Is this > possible? Sounds like an application for the "LDAP routing without LDAP" recipe which has been discussed here in the past. Ie. use the ldap_routing FEATURE with a hash map instead of an LDAP map, like so: FEATURE(`ldap_routing', `hash /etc/mail/mailhosts', `hash /etc/mail/mailrouting', `bounce') That way you can configure forwarding individually per address. See http://www.sendmail.org/m4/ldap_routing.html for details. HTH T. -- Please excuse my bad English/German/French/Greek/Cantonese/Klingon/... |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.