39 messages in net.sourceforge.lists.courier-maildrop[maildropl] Re: Maildrop EX_TEMPFAIL
FromSent OnAttachments
ha...@newmail.tvnet.huJul 5, 2002 11:37 pm 
Derrick 'dman' HudsonJul 6, 2002 9:05 am 
ha...@newmail.tvnet.huJul 8, 2002 12:56 am 
ha...@newmail.tvnet.huJul 8, 2002 6:40 am 
Derrick 'dman' HudsonJul 8, 2002 7:07 am 
Ben RosengartJul 8, 2002 7:09 am 
Matthias AndreeJul 8, 2002 8:24 am 
Matthias AndreeJul 8, 2002 8:25 am 
Ben RosengartJul 8, 2002 8:35 am 
Matthias AndreeJul 8, 2002 8:51 am 
Sam VarshavchikJul 8, 2002 3:03 pm 
Ben RosengartJul 8, 2002 3:32 pm 
Sam VarshavchikJul 8, 2002 4:15 pm 
Matthias AndreeJul 8, 2002 5:10 pm 
Sam VarshavchikJul 8, 2002 6:09 pm 
Ben RosengartJul 8, 2002 6:20 pm 
Sam VarshavchikJul 8, 2002 6:28 pm 
Ben RosengartJul 8, 2002 6:44 pm 
Sam VarshavchikJul 8, 2002 6:51 pm 
ha...@newmail.tvnet.huJul 9, 2002 3:56 am 
Matthias AndreeJul 10, 2002 2:47 am 
Matthias AndreeJul 10, 2002 2:49 am 
Matthias AndreeJul 10, 2002 3:05 am 
Derrick 'dman' HudsonJul 10, 2002 7:40 am 
Matthias AndreeJul 11, 2002 2:51 am 
Derrick 'dman' HudsonJul 13, 2002 9:00 am 
Matthias AndreeJul 14, 2002 7:47 am 
Derrick 'dman' HudsonJul 15, 2002 8:19 pm 
Sam VarshavchikJul 15, 2002 9:19 pm 
Ben RosengartJul 16, 2002 6:52 am 
Sam VarshavchikJul 16, 2002 7:22 am 
Ben RosengartJul 16, 2002 8:09 am 
Ben RosengartJul 16, 2002 11:24 am 
Sam VarshavchikJul 17, 2002 9:59 am 
Ben RosengartJul 17, 2002 12:29 pm 
Matthias AndreeJul 17, 2002 3:27 pm 
Matthias AndreeJul 17, 2002 3:33 pm 
Matthias AndreeJul 17, 2002 3:34 pm 
Matthias AndreeJul 18, 2002 12:21 pm 
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:[maildropl] Re: Maildrop EX_TEMPFAILActions...
From:Sam Varshavchik (mrs@courier-mta.com)
Date:Jul 15, 2002 9:19:40 pm
List:net.sourceforge.lists.courier-maildrop

Derrick 'dman' Hudson writes:

| You don't have multiple home directories for the same UNIX user.

Does maildrop reset $HOME according to the result of getpwnam()? I

The standalone maildrop build does.

certainly hope not. If it does, then you're right that my "trick" won't work. The basis of my trick is using the MTA to set the environment (including $HOME) from the "virtual" data, and then maildrop simply reads the data and behaves properly without even knowing the word "virtual" exists.

That's generally how the version of maildrop that's bundled with Courier works; namely because the mail delivery environment is a known item (and there are also a couple of other environment variables which are read for various purposes).

maildrop-standalone cannot really make these kinds of assumptions; it acts as a default, generic mail delivery agent (with getpwnam) and such. If getpwnam fails, the assumption is that the NIS server is down, or something of that sort.

maildrop-standalone does have some hooks for a virtual mail account database, of some sort. There's a primitive module available that reads an LDAP directory; there's also a module that reads a simple GDBM/DB based list of accounts.

A supplied script builds the GDBM/DB database from a plain file, with records arranged in a straightforward format. It is trivial to take whatever virtual mail account provisioning database is used by the mail server, dump it to some convenient format, and reformat it to the format that will be compiled into the GDBM/DB database list.

None of the above relieves the mail server from the responsibility of determining the validity of the recipient address, and to reject mail to nonexistent recipients. That's _STILL_ mail server's job, and nobody else's. The mail delivery agent's job is to deliver mail to a local mail account. Nothing more, nothing less. If the mail delivery agent cannot determine what the local mail account is, the logical conclusion is that it's due to a local system misconfiguration of some sort; hopefully a temporary one. Perhaps the GDBM/DB database hasn't yet been refreshed. It can take a while to refresh a GDBM/DB account database with thousands of records; it would be impractical to do so after every change to the account database in a large ASP environment. Therefore, a reasonable setup is to have regularly-scheduled GDBM/DB database refreshes. If mail arrives to a new account and the GDBM/DB account database wasn't refreshed yet, EX_TEMPFAIL will quietly defer the mail in the mail server's queue until the database is refreshed, and the mail server attempts to redeliver it later.

This should not even be an issue with the LDAP lookup hook. Presumable the LDAP hook will point to the real mail server account database, so everyone will always be in sync with each other.