smarttab questions and usage #13539

smarttab questions and usage #13539

am 04.01.2008 18:29:09 von idl3mind

I'm a sysadmin at a law firm. There is a federal court severing about
4000+ plaintiffs from a case we are handling. The court sends one
email per plaintiff being severed from the case. Well, instead of
there being a service address setup on our end for this stuff, we have
about 10 individuals subscribed to getting these 4000+ emails. The
attorneys here are pretty upset about it b/c they don't want all those
messages.

Ok, now my task. I want to intercept (using sendmail) all the messages
coming in from that address and deliver them to a mail-enabled public
folder on our exchange server, then the attys won't get the emails,
just the public folder. My front end is sendmail 8.13.1 (RPM compiled
from source) on Red Hat 9 doing mimedefang/spamassassin/clamd scanning
before it's delivered to exchange.

what I've done so far:
1) downloaded open-sendmail-2007-09-25.tar.gz from sourceforge
2) copied smarttable.m4 to my cf/feature directory
3) added FEATURE(`smarttable') to my sendmail.mc file.
4) patched cf/m4/proto.m4 with local-domain-routing.patch and local-
user-routing.patch
5) ran m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
6) HUP'd sendmail
7) added 'ecf_paed@paed.uscourts.gov local:ecfpaed' to /etc/mail/
smarttab
8) added 'ecfpaed: ecfpaed@fpwk.com' to /etc/mail/aliases. the
public folder address on the exchange server is ecfpaed@fpwk.com.
9) I already had 'fpwk.com smtp:[10.1.5.4]' in /etc/mail/
mailertable to make sendmail deliver to the exchange server, no change
needed in mailertable
10) ran newaliases and make from /etc/mail to build aliases.db and
smarttable.db

Messages from ecf_paed@paed.uscourts.gov are not being deliverd to the
public folder. what am I missing? I've seen another post from anfi
about using LOCAL_RULE_0 instead of LOCAL_NET_CONFIG, but I'm a little
confused by that part. I didn't see LOCAL_RULE_0 in smarttable.m4;
only LOCAL_CONFIG, LOCAL_NET_CONFIG and LOCAL_RULESETS.

I know i'm probably just missing one little piece of the puzzle here.
any help would be most appreciated.

Re: smarttab questions and usage #13539

am 04.01.2008 20:51:49 von Andrzej Filip

idl3mind writes:

> I'm a sysadmin at a law firm. There is a federal court severing about
> 4000+ plaintiffs from a case we are handling. The court sends one
> email per plaintiff being severed from the case. Well, instead of
> there being a service address setup on our end for this stuff, we have
> about 10 individuals subscribed to getting these 4000+ emails. The
> attorneys here are pretty upset about it b/c they don't want all those
> messages.
>
> Ok, now my task. I want to intercept (using sendmail) all the messages
> coming in from that address and deliver them to a mail-enabled public
> folder on our exchange server, then the attys won't get the emails,
> just the public folder. My front end is sendmail 8.13.1 (RPM compiled
> from source) on Red Hat 9 doing mimedefang/spamassassin/clamd scanning
> before it's delivered to exchange.

Have you/they tried to use incoming email sorting/redirecting features
provided by MS Exchange? [I have assumed that the original recipients'
mailboxes are located at MS Exchange]
IMHO it would create/keep server environment simpler and easier to
debug [at least from perspective of sendmail postmaster :-) ]

> what I've done so far:
> 1) downloaded open-sendmail-2007-09-25.tar.gz from sourceforge
> 2) copied smarttable.m4 to my cf/feature directory
> 3) added FEATURE(`smarttable') to my sendmail.mc file.
> 4) patched cf/m4/proto.m4 with local-domain-routing.patch and local-
> user-routing.patch

local-domain-routing.patch *is not* necessary for smarttable.
[ it is used by *other* features ]

> 5) ran m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
> 6) HUP'd sendmail
> 7) added 'ecf_paed@paed.uscourts.gov local:ecfpaed' to /etc/mail/
> smarttab
> 8) added 'ecfpaed: ecfpaed@fpwk.com' to /etc/mail/aliases. the
> public folder address on the exchange server is ecfpaed@fpwk.com.
> 9) I already had 'fpwk.com smtp:[10.1.5.4]' in /etc/mail/
> mailertable to make sendmail deliver to the exchange server, no change
> needed in mailertable
> 10) ran newaliases and make from /etc/mail to build aliases.db and
> smarttable.db
>
> Messages from ecf_paed@paed.uscourts.gov are not being deliverd to the
> public folder. what am I missing? I've seen another post from anfi
> about using LOCAL_RULE_0 instead of LOCAL_NET_CONFIG, but I'm a little
> confused by that part. I didn't see LOCAL_RULE_0 in smarttable.m4;
> only LOCAL_CONFIG, LOCAL_NET_CONFIG and LOCAL_RULESETS.
>
> I know i'm probably just missing one little piece of the puzzle here.
> any help would be most appreciated.

0) check if the messages have the same envelope sender as header sender
smartable uses envelope sender address, it may be different than
address given in "From:" header
1) Use the following *pre* install test procedure
1a) generate sendmail-test.cf from sendmail-test.mc containing
FEATURE(`smarttable')
1b) use the test script below

sendmail-test.cf
sendmail -C sendmail-test.cf -d21.12 -d60.5 -bt < 3,0 recipient@test.com
..Dfsender@sender.domain
3,0 recipient@example.com
END

-d60.5 turns on tracking map lookups (including smarttable lookups)
-d12.12 turns on tracking processing of R lines in sendmail.cf

In case of further problems send me output produced by the above test
command with real data.

------------------------------------------------------------ ----------
*GENERAL TECHNICALITIES*

I do suggest using the feature as FEATURE(`anfi/smarttable')
[to put it in cf/feature/anfi instead of cf/feature ]
to make it more obvious that the feature *IS NOT* supported/provided by
pristine sendmail.org distribution [it is only a matter of naming style]

sendmail.org *MAY* (is allowed to) choose to include the feature in
sendmail.org distribution under current sendmail licence.

--
[pl>en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
Open-Sendmail: http://open-sendmail.sourceforge.net/
The anger of a woman is the greatest evil with which you can threaten
your enemies.
-- Bonnard
----
http://groups.google.com/groups?selm=87d4sh8j3d@james.fsf.ho bby-site.com