mail forwarding: alias
I have following mail forwarding set up in /var/qmail/alias/: (1) postmaster - mail listmaster - mail - admin1, admin2, ... list-admin - mail (2) webmaster - web www-admin - web - admin1, admin2, ... www - web All the forwarding indicated by "-" is made in /var/qmail/alias/ (individual .qmail-*** files of course); "mail" and "web" are two regular user accounts, were setup almost identically. Now the problem is, while mails through "mail" could be distributed to "admin1, admin2, ...", mails through "web" were all deposited into its incoming mail box, as if "web - admin1, admin2,..." alias didn't exist. I have checked/compared everything I could think of without getting a clue what is happening. Could you give some suggestions? Zhiliang
Re: mail forwarding: alias
Ok, here they are: File Content -- --- /var/qmail/alias/.qmail-postmaster mail /var/qmail/alias/.qmail-listmaster mail /var/qmail/alias/.qmail-list-admin mail /var/qmail/alias/.qmail-webmaster web /var/qmail/alias/.qmail-www-admin web /var/qmail/alias/.qmail-www web /var/qmail/alias/.qmail-mailuser1 /var/qmail/alias/.qmail-web user1 -- --- Date: Thu, 8 Jun 2000 13:31:30 -0400 From: Chris Johnson [EMAIL PROTECTED] To: Zhiliang Hu [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: mail forwarding: alias On Thu, Jun 08, 2000 at 12:20:49PM -0500, Zhiliang Hu wrote: I have following mail forwarding set up in /var/qmail/alias/: (1) postmaster - mail listmaster - mail - admin1, admin2, ... list-admin - mail (2) webmaster - web www-admin - web - admin1, admin2, ... www - web All the forwarding indicated by "-" is made in /var/qmail/alias/ (individual .qmail-*** files of course); "mail" and "web" are two regular user accounts, were setup almost identically. Now the problem is, while mails through "mail" could be distributed to "admin1, admin2, ...", mails through "web" were all deposited into its incoming mail box, as if "web - admin1, admin2,..." alias didn't exist. Could you just post the actual contents of the various .qmail-* files? I, for one, don't know what " www-admin - web - admin1, admin2, ..." means. Chris
Re: mail forwarding: alias
You said that "mail" and "web" are regular user accounts. If that's the case, then ~alias/.qmail-mail and ~alias/.qmail-web will never be consulted. You mean in qmail the user account precedes system alias? (in sendmail it is opposite). But why one alias, ~alias/.qmail-mail, works fine? That was where I got confused and started to ask ... ;-) For your further information, none of the two accounts were setup for mails. i.e. no ~/.qmail whatsoever, no ~/Mail, no ~/Mailbox ..) Zhiliang
Re: mail forwarding: alias
Thank Chris! There is one more instance: system alias for root works, ignoring the account ~root ... is there an exception? Zhiliang You mean in qmail the user account precedes system alias? (in sendmail it is opposite). Yep. See /var/qmail/doc/PIC.local2alias. alias will get control of mail only if a user account doesn't exist.
Re: time error on qmail
Thanks for the replies from Martin Gignac and Timothy Mayo -- I see how now. But for mails sent for local it does not make sense to use GMT time stamp. Any way to let it use local time? BTW, I noted mailx and qmail's sendmail use GMT time while mails sent by pine uses local time. Is that all outgoing mails triger qmail-inject? (I checked pine man page but didn't get a clue) Zhiliang On Thu, 18 May 2000, Timothy L. Mayo wrote: Date: Thu, 18 May 2000 13:57:22 -0400 (EDT) From: Timothy L. Mayo [EMAIL PROTECTED] To: Zhiliang Hu [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: time error on qmail qmail ALWAYS uses UTC when recording dates in the mail headers it generates. That is what the '-' means. The difference between UTC and CDT is '-0500'. The time stamps are correct you are just misreading them. :)
time error on qmail
qmail has been working on my site for a while. Everything has been fine except - when a mail is trigerred by a CGI program, which is using the "sendmail" replacement provided by qmail, the time stamp on the qmail delivery lines are 5 hours ahead of actual time, ALTHOUGH the time generated by the CGI program itself is correct. (see below for an actual example; Note: time stamps on other mail deliveries are correct). Any hints? Zhiliang -- E x a m p l e --- s t a r t --- Return-Path: [EMAIL PROTECTED] Delivered-To: [EMAIL PROTECTED] Received: (qmail 8 invoked by uid 207); 18 May 2000 13:14:53 - Delivered-To: [EMAIL PROTECTED] Received: (qmail 3643 invoked by uid 201); 18 May 2000 13:14:53 - Date: 18 May 2000 13:14:53 - Message-ID: [EMAIL PROTECTED] From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: New Ideas! ... o m i t t e d s o m e t e x t ... This is a web form originated mail. The submittion was made from kh420129-ans.ansci.iastate.edu (ip=129.186.213.166) on Thu May 18 08:14:53 CDT 2000 -- E x a m p l e e n d ---
Re: system start script
dd - Thank you! I assume it is inetd. However I moved qmail to be after inetd it didn't get qmail started either upon reboot. BTW, I have following lines in the /etc/inetd.conf: smtp stream tcp nowait qmaild /var/qmail/bin/tcp-env tcp-env /var/qmail/bin/qmail -smtpd (all in one line) Does it help diagnoze? Zhiliang On Thu, 27 Apr 2000, dd wrote: I installed qmail 1.03 and it works fine on my Digital unix4.0D. However when I tested my system script starting the qmail at boot: [...] qmail was not started at boot, although the script works when tried at the command line. (the script was in /.../rc3.d) I had the same problem in linux then I found out that Iwas running one of the services qmail needed _after_ starting qmail (right now I can't remember wich one though :/). Making sure that qmail was called at the end of the script (check the daemons called in other scripts also) and modifying the script accordingly solved the problem. if You're using tcpserver make sure that it's called after qmail is started. hope this helps a little bit... yours, dd
Re: system start script
BTW, I have following lines in the /etc/inetd.conf: smtp stream tcp nowait qmaild /var/qmail/bin/tcp-env tcp-env /var/qmail/bin/qmail -smtpd You don't have a space between qmail and -smtpd, do you? No space. Sorry, when I copied and pasted it into mail I left a space there. Zhiliang
system start script
I installed qmail 1.03 and it works fine on my Digital unix4.0D. However when I tested my system script starting the qmail at boot: #!/sbin/sh if [ -f /var/qmail/rc ]; then /var/qmail/rc echo "Starting qmail server" echo "Please wait .." /sbin/sleep 5 else echo "qmail server could not be started." fi qmail was not started at boot, although the script works when tried at the command line. (the script was in /.../rc3.d) Any hint? BTW, I am new so I am not on your list yet. Please reply to me directly -- Thanks!! Zhiliang