Re: Aliases & chdir problems
Alex Le Fevre <[EMAIL PROTECTED]> wrote: > > I just have one question: is there any good way to control the user's > reply-to and from addresses via Qmail? It's showing up as [EMAIL PROTECTED] > instead of [EMAIL PROTECTED] That's just minor cosmetics, though. There are various half-baked solutions, but the ideal way is to set it at the user's end -- either by specifically setting their MUA to create the right From: header and envelope sender address in the first place, or by setting the QMAILUSER/QMAILHOST (or MAILUSER/MAILHOST) environment variables before they run anything leading to qmail-inject. Ideally, just set them in their shell profile/login and be done with it. Charles -- --- Charles Cazabon<[EMAIL PROTECTED]> GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/ Any opinions expressed are just that -- my opinions. ---
Re: Aliases & chdir problems
> Not quite; that will try to deliver to an mbox file named "Maildir" in > username's homedir, but as user alias. > > Chances are that you want that .qmail file to contain "&username" instead, > which will forward the mail from the long name to the short username. > Then, that user's .qmail file (or the system default delivery specification) > will control the final delivery. That works nicely. I just have one question: is there any good way to control the user's reply-to and from addresses via Qmail? It's showing up as [EMAIL PROTECTED] instead of [EMAIL PROTECTED] That's just minor cosmetics, though. Alex
Re: Aliases & chdir problems
* Alex Le Fevre <[EMAIL PROTECTED]> [010402 17:24]: > Since OBSD doesn't seem to want to let me have user > names over 8 characters, I'd like to set up an alias > to a user account to solve the problem. My impression > was that I could just do the following: > > 1) create /home/alias/.qmail-thealiasname, containing > /home/username/Maildir > 2) chown that file to alias:qmail > 3) create the user's Maildir, making sure it's owned > by the user > 4) Go! > > I don't have the domain in virtualdomains, as it's in > locals (in fact, it's the primary domain for the > machine). I didn't figure this to be a problem, as > .qmail-postmaster, .qmail-root, etc., work with that > domain just fine. > > What happens, though, is that qmail tries to make the > delivery, and gives me that nasty "unable to chdir to > Maildir (4.2.1)" error. I assume it's trying to access > the user Maildir as the user specified by > .qmail-thealiasname, which obviously isn't right. > > How can I tell it to go in as the user? Alternately, > is there another way to implement this? All I really > care about is getting a 9+ character e-mail address > set up, I'm not finnicky on how I do it. As the file ~alias/.qmail-theuser is owned by alias (and should be) it should contain &usr@me ie the "short" username and one of the local domains so that qmail forwards and doesn't attempt to deliver as the alias user. -Johan -- Johan Almqvist http://www.almqvist.net/johan/qmail/ PGP signature
Re: Aliases & chdir problems
Alex Le Fevre <[EMAIL PROTECTED]> wrote: > Since OBSD doesn't seem to want to let me have user names over 8 characters, > I'd like to set up an alias to a user account to solve the problem. My > impression was that I could just do the following: > > 1) create /home/alias/.qmail-thealiasname, containing > /home/username/Maildir Not quite; that will try to deliver to an mbox file named "Maildir" in username's homedir, but as user alias. Chances are that you want that .qmail file to contain "&username" instead, which will forward the mail from the long name to the short username. Then, that user's .qmail file (or the system default delivery specification) will control the final delivery. Charles -- --- Charles Cazabon<[EMAIL PROTECTED]> GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/ Any opinions expressed are just that -- my opinions. ---
Aliases & chdir problems
Since OBSD doesn't seem to want to let me have user names over 8 characters, I'd like to set up an alias to a user account to solve the problem. My impression was that I could just do the following: 1) create /home/alias/.qmail-thealiasname, containing /home/username/Maildir 2) chown that file to alias:qmail 3) create the user's Maildir, making sure it's owned by the user 4) Go! I don't have the domain in virtualdomains, as it's in locals (in fact, it's the primary domain for the machine). I didn't figure this to be a problem, as .qmail-postmaster, .qmail-root, etc., work with that domain just fine. What happens, though, is that qmail tries to make the delivery, and gives me that nasty "unable to chdir to Maildir (4.2.1)" error. I assume it's trying to access the user Maildir as the user specified by .qmail-thealiasname, which obviously isn't right. How can I tell it to go in as the user? Alternately, is there another way to implement this? All I really care about is getting a 9+ character e-mail address set up, I'm not finnicky on how I do it. Thanks, Alex Le Fevre __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/?.refer=text