I agree, David. :) (Just ribbing you, Quinn). Honestly though, I didn't reply simply because I didn't know. I've never had 'local' users.
This would definitely be a nice piece for the wiki. I'd like to see it under Tips'N'Tricks, with possibly a link from the FAQs. I hate to as Quinn to do it since he found the solution, but I suppose that is what makes him most qualified to write it. ;) [EMAIL PROTECTED] wrote: >> Well you guys never answered my question, so I had to learn something on >> my own again (dang) ;-) I found a solution! > > Well, the rest of the list tend to do something appart from reading your > emails Quinn :-P :-P :-P > > Maybe, you should swap priorities between "send-email-to-list" and > "learn-on-my-own-again" in /var/qmail/control/troubleshooting/actions to > make the lattest being the first. > > Just kidding :-P > >> Mail to local users STILL is delivered to local users! (Whaaa?) >> >> Yeah, mail to [EMAIL PROTECTED] or `echo 'hello' | mail j` >> actually sends mail to a local user. The user would still be able to check >> this mail using their /etc/passwd file and old username if vpopmail was >> compiled to allow it, but currently it wont: >> system passwords = OFF --disable-passwd (default) >> >> So mail is delivered into ~/Maildir for each user. But they cannot check >> this mail. So, we must do a forward. >> >> To forward a real local user to a remote address, you give the user a >> ~/.qmail file. This is the qmail-version of the .forward file. >> >> So, for example... >> >> [EMAIL PROTECTED]/0 control]$cat /home/j/.qmail >> &[EMAIL PROTECTED] >> >> It *does not work* to put the qmail file in: /var/qmail/alias/.qmail-j >> because this place only works for users that don't exist (local or >> virtual). >> >> So now I will make a script to go through all local user home directories, >> and create the necessary Maildir and .qmail file and direct to their main >> email address (e.g. /home/j/.qmail -> &[EMAIL PROTECTED]). >> >> Quinn > > Nice research :-) > >> On Fri, 10 Nov 2006 13:50:44 -0800, Quinn Comendant wrote: >>> I'm still trying to troubleshoot this... On a qmail system, what is >>> the difference between these two? >>> >>> echo "hello" | mail -s 'testing1' root; >>> >>> echo "hello" | formail -A 'Subject: testing2' | sendmail root; >>> >>> Q >>> >>> >>> On Fri, 10 Nov 2006 10:00:53 -0800, Quinn Comendant wrote: >>>> Return-Path: >>>> <[EMAIL PROTECTED]> >>>> Delivered-To: [EMAIL PROTECTED] >>>> From >>>> [EMAIL PROTECTED] >>>> Fri Nov 10 18:02:24 2006 >>>> Return-Path: >>>> <[EMAIL PROTECTED]> >>>> Delivered-To: [EMAIL PROTECTED] >>>> Received: (qmail 23776 invoked by uid 89); 10 Nov 2006 18:02:24 -0000 >>>> Delivered-To: [EMAIL PROTECTED] >>>> Received: (qmail 23769 invoked by uid 89); 10 Nov 2006 18:02:24 -0000 >>>> DomainKey-Status: no signature >>>> Received: by simscan 1.2.0 ppid: 23659, pid: 23665, t: 5.6275s >>>> scanners: attach: 1.2.0 clamav: 0.88.5/m:41/d:2183 spam: 3.1.7 >>>> X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on >>>> mailserver.strangecode.com >>>> X-Spam-Level: >>>> X-Spam-Status: No, score=-2.6 required=3.2 >>>> tests=BAYES_00,DK_POLICY_SIGNSOME >>>> autolearn=ham version=3.1.7 >>>> Received: from unknown (HELO ns1.qmailtoaster.com) (38.99.66.144) >>>> by mailserver.strangecode.com with (DHE-RSA-AES256-SHA encrypted) >>>> SMTP; 10 Nov 2006 18:02:18 -0000 >>>> Received-SPF: pass (mailserver.strangecode.com: SPF record at >>>> qmailtoaster.com designates 38.99.66.144 as permitted sender) >>>> Received: (qmail 811 invoked by uid 89); 10 Nov 2006 18:02:05 -0000 >>>> Mailing-List: contact [EMAIL PROTECTED]; run by >>>> ezmlm >>>> Precedence: bulk >>>> List-Post: <mailto:[email protected]> >>>> List-Help: <mailto:[EMAIL PROTECTED]> >>>> List-Unsubscribe: >>>> <mailto:[EMAIL PROTECTED]> >>>> List-Subscribe: <mailto:[EMAIL PROTECTED]> >>>> Reply-To: [email protected] >>>> Delivered-To: mailing list [email protected] >>>> Received: (qmail 805 invoked by uid 89); 10 Nov 2006 18:02:05 -0000 >>>> Received-SPF: none (ns1.qmailtoaster.com: domain at strangecode.com >>>> does not designate permitted sender hosts) >>>> Date: Fri, 10 Nov 2006 10:00:53 -0800 >>>> From: Quinn Comendant <[EMAIL PROTECTED]> >>>> To: [email protected] >>>> Message-ID: <[EMAIL PROTECTED]> >>>> In-Reply-To: <[EMAIL PROTECTED]> >>>> References: <[EMAIL PROTECTED]> >>>> Mime-Version: 1.0 (GMessage framework 1.3.9) >>>> Content-Type: text/plain; charset=us-ascii >>>> Content-Transfer-Encoding: 7bit >>>> X-Mailer: GyazMail version 1.3.9b5 >>>> Subject: Re: [qmailtoaster] forwarding mail for real users to their >>>> virtual >>>> counterpart >>>> >>>> A related error with messages intended for [EMAIL PROTECTED] >>>> >>>> --- >>>> >>>> Hi. This is the qmail-send program at two.strangecode.com. >>>> I'm afraid I wasn't able to deliver your message to the following >>>> addresses. >>>> This is a permanent error; I've given up. Sorry it didn't work out. >>>> >>>> <[EMAIL PROTECTED]>: >>>> Sorry, I couldn't find any host named >>>> localhost.mailserver.strangecode.com. (#5.1.2) >>>> >>>> --- Below this line is a copy of the message. >>>> [...] >>>> >>>> >>>> >>>> On Fri, 10 Nov 2006 09:57:26 -0800, Quinn Comendant wrote: >>>>> With sendmail I would have just added a /home/mmartin/.forward file. >>>>> I tried adding /var/qmail/alias/.qmail-mmartin -- but didn't work. >>>>> >>>>> Ideas? -- -Eric 'shubes' --------------------------------------------------------------------- QmailToaster hosted by: VR Hosted <http://www.vr.org> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
