|
|
|
|
||||||
| comp.mail.sendmail Configuring and using the BSD sendmail agent. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi, Fellow Gurus,
Could you guys please give me some advice on how to do the following: in my company we have two groups of users - one group on an Exchange mail server, and the other group on sendmail/imap Linux box. What I want to do is to set up a smtp gateway that automatically relay users to the correct mailhub, and at the same time relay outgoing emailsfrom users in the internal network. What I would like to know is what I do need to setup on the gateway sendmail to look up which mailhub each user belongs to? I suppose the brute force way would be to generate a mailertable - which needs to contain a routing rule for every single username and aliases in the company domain. Generating this mailertable would probably involve writing a LDAP script to query the AD, as well as some sed's and awks' with the /etc/passwd and /etc/aliases on the Linux mailhub. Before I dive into this, I just throught that you guys might have an more elegant solution. Any advice would be appreciated! Thank you very much in advance for any advice! Cheers, ls |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
losheng wrote:
> What I would like to know is what I do need to setup on the gateway > sendmail to look up which mailhub each user belongs to? See the ldap_routing feature in Sendmail. -- David. |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
"David F. Skoll" <dfs@roaringpenguin.com> writes:
> losheng wrote: > >> What I would like to know is what I do need to setup on the gateway >> sendmail to look up which mailhub each user belongs to? > > See the ldap_routing feature in Sendmail. Feature ldap_routing *can* be used with hash/btree/dbm maps instead of LDAP lookups [some postmasters dislike using LDAP in simple cases]. URL(s): http://www.sendmail.org/m4/ldap_routing.html -- [pl2en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
Andrzej Adam Filip wrote:
> "David F. Skoll" <dfs@roaringpenguin.com> writes: > > > > See the ldap_routing feature in Sendmail. > > Feature ldap_routing *can* be used with hash/btree/dbm maps instead of > LDAP lookups [some postmasters dislike using LDAP in simple cases]. > > URL(s): > http://www.sendmail.org/m4/ldap_routing.html > Hi, David and Andrzej, Thank you. That looks like the solution I'm looking for. Now I've got to dive into LDAP. Otherwise, for 100-120 mailboxes, I guess hash maps might suffice, but at a quick glance, the information on sendmail.org didn't seem to talk much about that option. I will have do more digging around then. Thanks again! Greatly appreciated! ls |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
"losheng" <losheng@gmail.com> writes:
> [...] > Thank you. That looks like the solution I'm looking for. Now I've got > to dive into LDAP. Otherwise, for 100-120 mailboxes, I guess hash maps > might suffice, but at a quick glance, the information on sendmail.org > didn't seem to talk much about that option. I will have do more digging > around then. To get keywords for extented searches for "LDAPless ldap_routing" take a look at the posts below: http://groups.google.com/groups?q=au...ting+null+hash -- [pl2en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl |
|
![]() |
| Outils de la discussion | |
|
|