

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
6 messages in net.sourceforge.lists.courier-usersRe: [courier-users] reformatting of c...| From | Sent On | Attachments |
|---|---|---|
| Uwe Fricke | Mar 30, 2006 4:17 am | |
| Jay Lee | Mar 30, 2006 5:33 am | |
| Jay Lee | Mar 30, 2006 8:08 am | |
| Uwe Fricke | Mar 30, 2006 8:26 am | |
| Sam Varshavchik | Mar 30, 2006 3:15 pm | |
| Uwe Fricke | Mar 31, 2006 12:27 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: [courier-users] reformatting of certain email adresses - how is it done? | Actions... |
|---|---|---|
| From: | Uwe Fricke (u.fr...@unitb.de) | |
| Date: | Mar 30, 2006 8:26:41 am | |
| List: | net.sourceforge.lists.courier-users | |
Yes, in the ldap directory. Here's a typical log for one of the 15k users - a mail with the real username comes in, and via ldap the mailfile number is looked up. The mail for the user regarding the log below would be stored in /home/vmail/0057358/Maildir/
mail courierd: newmsg,id=01CAA52C.442A9A96.00001B7F: dns; mx1.company.com (mx.comp.de [::ffff:<externalIP>]) mail authdaemond: received userid lookup request: <titel.surname.name>@company.com mail authdaemond: authldap: trying this module mail authdaemond: using search filter: (uid=<titel.surname.name>@company.com) mail authdaemond: one entry returned, DN: CN=<surname name>,O=<company initials> mail authdaemond: raw ldap entry returned: mail authdaemond: | mailfile: 0057358
OK, looks like the user's home directory is determined based on the mailfile attribute. So learn what the mailfile attribute is for one of the working Notes users and explore their home directory...
Based on the configuration I found in /usr/local/etc/authlib/authldaprc, I connected to the ldap server and browsed the directory. I found the notes users, and their mailfile maps to mail/ufricke (replaced realname with my name here). Strange thing is, on the courier server, 'locate ufricke' returns nothing (did an updatedb before that). Even stranger is, on the specified ldap directory, I can't find the 15k users... And on both servers, there aren't home directories for the users, just a virtual home on the courier for everyone (/home/vmail, and there's no /home/vmail/mail/ufricke).
Below I pasted the relevant log, showing a successful and an unsuccessful delivery. The logs below show that, right after courieresmtpd receives a new message, it somehow formats acco...@company.com to acco...@internal.company.com, after virus-checking courierd takes over, and the email get's delivered to Notes. This formatting isn't done with the newly created email account, and right after courieresmtpd receives this message, a lookup with ldap is done - this isn't necessary. From below it looks like Courier is basing it's configuration on /usr/lib/courier/etc files... /usr/lib/courier/etc/maildroprc then would be the global maildrop filter that runs for all accounts. That is of course, assuming that maildrop is configured as the local delivery agent. What does DEFAULTYDELIVERY= look like in etc/courierd? What does your authldaprc file look like?
there's no /usr/lib/courier/etc/maildroprc, just a /usr/lib/courier/etc/maildrop. this file contains the single line '/usr/lib/courier/bin/maildrop'. 'locate maildroprc' finds nothing.
found in my etc/courierd: DEFAULTDELIVERY=./Maildir
Do you want to know anything specific from my authldaprc? I just connected to the ldap server, using the configuration I found in the authldaprc...
(in /usr/lib/courier, a 'grep -ri <validemailaccount> *' returned nothing. in /etc/, there aren't any courier config files.).
I would appreciate any hints on where this configuration is done try searching for your domain name or the name/ip address of the Notes server instead. Also check if the working Lotus accounts have home directories on the Courier server. Feel free to report back what you find.
a grep resulted in the following:
/usr/lib/courier/etc/esmtproutes: internal.company.com preference=20, mail exchanger =internal.company.com /usr/lib/courier/etc/ldapaddressbook: <company initials> <internal IP of ldap server> 389 /usr/lib/courier/etc/ldapaliasrc: LDAP_SERVER <internal IP of ldap server>
This last one is significant it means your email aliases are configured in LDAP. You need to find out where in the LDAP tree Courier is looking for aliases and see if there are aliases for the Notes users. I don't think we're dealing with aliases though, my guess is the forwarding is happening in maildrop.
As there seems to be no maildrop config, perhaps the ldap server really does all the aliasing. However, as already mentioned above, I browsed the ldap directory, and it's way to small to contain aliases for the 15k users.... I don't know if it's possible for ldap to retrieve the aliases from a file, I'm going to check that..
Regards, Uwe







