On Sat, May 15, 2010 at 2:44 AM, Pierre "LiLo" Gaxatte <[email protected]> wrote: > You're right, I would have already done it if I had use qmailadmin, but > it's a bit boring and it won't help me get to know qmail better. > > Besides, I'm trying to respect a unix/linux golden rule: "if you have to > do it twice, script it!" :-) > > What I will is to do that from qmailadmin for one domain, check out > what .qmail file was generated and adapt this to the other domains. I > know this is something basic and understandind the .qmail file > functioning will allow me to do more complicated things like > automatically sorting spam into the Junk folder without the need to > configure my email client. This would be great for users checking their > mails with POP3 and using the webmail when away from work. > > I'll post back as soon as I find the solution! > > >
Sorry, I forgot about the number of domains involved. Scripting it would obviously be preferred. I have a bash script that creates vpopmail user accounts and configures them to forward to accounts on my Exchange server. I configure forwarding using lines like these: echo \&[email protected] | sudo -u vpopmail -H tee /home/vpopmail/domains/example.com/exampleuser/.qmail chmod 600 /home/vpopmail/domains/example.com/example/.qmail This script usually runs in the context of some user other than vpopmail, so I use sudo tee to get the text from the echo command into the .qmail file. These lines produce a .qmail file with the following content: &[email protected] This is the only content in the .qmail file. There is no CR or LF at the end of the line. hth Brent Gardner --------------------------------------------------------------------------------- Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today! --------------------------------------------------------------------------------- Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
