6 messages in net.sourceforge.lists.courier-usersRe: [courier-users] reformatting of c...
FromSent OnAttachments
Uwe FrickeMar 30, 2006 4:17 am 
Jay LeeMar 30, 2006 5:33 am 
Jay LeeMar 30, 2006 8:08 am 
Uwe FrickeMar 30, 2006 8:26 am 
Sam VarshavchikMar 30, 2006 3:15 pm 
Uwe FrickeMar 31, 2006 12:27 am 
Actions with this message:
Paste this link in email or IM:
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:Jay Lee (jl@pbu.edu)
Date:Mar 30, 2006 5:33:44 am
List:net.sourceforge.lists.courier-users

Uwe Fricke wrote:

coming from qmail, I got a problem with a tiny administration task on an already running courier mta, perhaps someone can point me in the right direction. I have no documentation regarding the server architecture and setup, but here's what i figured out:

Nothing more fun than trying to figure out what the heck that last sysadmin did... :-)

The mailserver (let's call him Courier) manages roughly 15.000 mail accounts. A very small percentage of mails arriving at Courier is forwarded to an internal server (let's call him Notes, because a Lotus Notes application sits there), and handled there. All other emails are handled locally, and stored in /home/vmail.

OK, so Courier knows about these accounts somehow even if they don't have a mailbox on the server. Thus, these users are either aliased in Courier or they're real users whose mail just gets forwarded on to another server. Do these users have home directories in /home/vmail?

The problem is, a new email adress has been set up on Notes. Now, this person can't retrieve mails from the outside, because courier doesn't know about the new person and doesn't forward his incoming mails to Notes. As Notes already manages about 20 email accounts, I was hoping to find the names of these persons in some courier configuration files, but no luck so far.

If Courier is using ldap or mysql, these users wouldn't be in a config file, they'd be in the remote authentication database... Any idea where the 15k accounts are stored?

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.

I do something similar myself, I have an LDAP backend. We have another internal email server that we call Mercury. I use maildrop, Courier's local delivery agent, to do virus and spam filtering, maildrop also does an ldap lookup of the user, if they're a member of group Mercury, then the email gets delivered to us@merc.domain.com instead of us@domain.com which would be the courier server. My approach is dynamic, but this could also be handled by putting .forward or .courier or .mailfilter files in the user's home directory. Or just using aliases.

I would appreciate any hints on where this configuration is done (in /usr/lib/courier, a 'grep -ri <validemailaccount> *' returned nothing. in /etc/, there aren't any courier config files.).

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.

Jay