Re: I gotta be stupid or something....
Matt Simpson <[email protected]> Tue, 21 Aug 2007 23:43:56 -0400
| Newsgroups | gmane.mail.ezmlm |
|---|---|
| Message-ID | <[email protected]> |
At 6:11 PM 8/21/07, Hikaru Katayamma wrote: >Even though the make test passes before install, and all the setup's >appear to work fine when creating the list, I'm getting unknown >recipient errors out of qmail when sending to the list. The only >thing I can figure is that since I'm running multiple virtual >domains on the machine, this could some how be confusing the ezmlm >software? Well, technically, if you're getting "unknown recipient" errors, you're not confusing the ezmlm software, because it's never getting invoked. You're confusing the qmail software. Using ezmlm with virtual domains really isn't any more difficult than any other use of virtual domains. You just have to make sure that your virtualdomains definitions and your user definitions fit together properly, and your .qmail files are in the right place. If you have a virtual domain example.com, and you set up a list with an address [email protected], ezmlm-make created a directory with files like bouncer, editor, manager, etc. And it created symbolic links to those files with names like .qmail-list, .qmail-list-default, etc. Qmail needs to see those .qmail files when it gets mail to [email protected], and apparently it isn't seeing them. Presumably, in your /var/qmail/control/virtualdomains file, you have a line like: example.com:ex That tells qmail that all mail to addresses @example.com gets prepended with "ex", so mail to [email protected] gets treated as if the local part of the address was ex-list. If you have an actual local user on your system named ex, then qmail will look in the home directory for ex. So the .qmail symlinks created by ezmlm need to be in that directory. At this point, qmail is going to strip off the prefix, and look for .qmail-list in ex's home directory. This is the same principle as if you were not using virtual domains, and you sent mail to [email protected]. Qmail would go to joe's home directory, strip off the joe from the address, and look for .qmail-foo (or .qmail-default if it couldn't find .qmail-foo). More likely, you don't really have a local user called ex (or whatever username your virtualdomain name maps to). You're more likely to have an entry in /var/qmail/users/assign telling qmail how to handle mail for the imaginary user ex. Part of that entry is a directory that gets treated as the home directory for that user, i.e. that's where qmail will look for .qmail files for that user. So that's where your .qmail files created by ezmlm need to go. If you are already handling mail for other addresses in the same virtual domain where you set up the list, then this should be easy. The .qmail files for the list need to go in the same directory as the .qmail files for all other "users" in that virtual domain. If this is a new virtual domain, then you need to make sure that /var/qmail/control/virtualdomains and /var/qmail/users/assign steer qmail to the right place.