RE: suddenly cannot receive email
Just to get the syntax right in my mind (and my notes), as I understand from the information I have received, 'echo newdomain.com:alias-newdomain /var/qmail/control/virtualdomains' will overwrite virtualdomains, while 'echo newdomain.com:alias-newdomain \ /var/qmail/control/virtualdomains' will simply add to virtuals. And I don't need to put the 'www.' in front of the 'newdomain,' is this correct?
RE: suddenly cannot receive email
OK, I am learning, slowly but surely. Now I need to know how to send a SIGHUP. I don't think it is good for my system to keep rebooting every time I make a change in qmail. In /var/qmail/bin I have qmail-start, but have not been able to locate a qmail-restart or a qmail-stop anywhere. If I could locate these or learn how to send qmail-send a SIGHUP, I feel I would be making real progress. It sounds like you didn't send qmail-send a SIGHUP. You need to do that to get it to reread virtualdomains. Chris
Re: suddenly cannot receive email
That's right. You don't need the www. and you also can type that second line without the \ ie: echo newdomain.com:alias-newdomain var/qmail/control/virtualdomains Virginia Chism wrote: Just to get the syntax right in my mind (and my notes), as I understand from the information I have received, 'echo newdomain.com:alias-newdomain /var/qmail/control/virtualdomains' will overwrite virtualdomains, while 'echo newdomain.com:alias-newdomain \ /var/qmail/control/virtualdomains' will simply add to virtuals. And I don't need to put the 'www.' in front of the 'newdomain,' is this correct?
Re: suddenly cannot receive email
Virginia Chism [EMAIL PROTECTED] wrote: Just to get the syntax right in my mind (and my notes), as I understand from the information I have received, 'echo newdomain.com:alias-newdomain /var/qmail/control/virtualdomains' will overwrite virtualdomains, while 'echo newdomain.com:alias-newdomain \ /var/qmail/control/virtualdomains' will simply add to virtuals. Yes. And I don't need to put the 'www.' in front of the 'newdomain,' is this correct? Depends on what you want. If the mail is addressed to [EMAIL PROTECTED], then you don't need it. If the mail is addressed to [EMAIL PROTECTED], you do need 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: suddenly cannot receive email
To send qmail a SIGHUP: type: killall -SIGHUP qmail this will send a SIGHUP to all processes running that are named qmail. or, type: ps -e and find qmail on the list. then: kill -SIGHUP the pid of qmail you saw in the output of ps === Justin M. Shomo, CEO TransWan Corporation [EMAIL PROTECTED] http://www.transwan.com 303-466-9626 910 15th St. Ste. 751 Denver, CO 80202 --- TransWan Corporation IP and ATM Based Communication protocols, software, and services. === On Fri, 8 Jun 2001, Virginia Chism wrote: OK, I am learning, slowly but surely. Now I need to know how to send a SIGHUP. I don't think it is good for my system to keep rebooting every time I make a change in qmail. In /var/qmail/bin I have qmail-start, but have not been able to locate a qmail-restart or a qmail-stop anywhere. If I could locate these or learn how to send qmail-send a SIGHUP, I feel I would be making real progress. It sounds like you didn't send qmail-send a SIGHUP. You need to do that to get it to reread virtualdomains. Chris
Re: suddenly cannot receive email
Yes, but doing SIGHUP's is not qmail related. It's a general unix issue, so you may read the Config-HOWTO, to find it you can use www.google.com Tom OK, I am learning, slowly but surely. Now I need to know how to send a SIGHUP. I don't think it is good for my system to keep rebooting every time I make a change in qmail. In /var/qmail/bin I have qmail-start, but have not been able to locate a qmail-restart or a qmail-stop anywhere. If I could locate these or learn how to send qmail-send a SIGHUP, I feel I would be making real progress. It sounds like you didn't send qmail-send a SIGHUP. You need to do that to get it to reread virtualdomains. Chris
Re: suddenly cannot receive email
Hi, killall -SIGHUP qmail though it's off-topic, but so that nobody who later reads this thread in the archive will accidently bringdown it's system, this note: Depending on the Unix-Flavour you use killall will not kill only the processes named qmail but all processes. There exists implementations of killall which do not read any arguments except the signal name and send it really to *ALL* processes on your box. claudio -- Claudio Nieder, Kanalweg 1, CH-8610 Uster, Tel +41 79 357 6743 yahoo messenger: claudionieder aim: claudionieder icq:42315212 mailto:[EMAIL PROTECTED]http://www.claudio.ch
Re: suddenly cannot receive email
* TransWan [EMAIL PROTECTED] [010608 17:57]: To send qmail a SIGHUP: type: killall -SIGHUP qmail Be careful, this doesn't mean what you think it means on some operating systems. (On some systems, `killall` means to shutdown, IIRC.) Besides, there isn't even a ``qmail'' process to send a SIGHUP... /pg -- Peter Green : Architekton Internet Services, LLC : [EMAIL PROTECTED] --- Instead of a trap door, what about a trap window? The guy looks out it, and if he leans too far, he falls out. Wait. I guess that's like a regular window. (Jack Handey)
Re: suddenly cannot receive email
On Thu, Jun 07, 2001 at 11:00:35AM -0500, Virginia Chism wrote: Until I get this mess fixed, please cc responses to [EMAIL PROTECTED] Sorry, but it is the only way I can receive email right now. I seem to have done something to break my qmail. Yesterday afternoon, I added a virtual user in /var/qmail/control/virtualdomains and put his forwarding address in alias/.qmail-garnette-monte and added his domain to rcpthosts then restarted. I did not notice at the time (because I left work right after that), but I have not received ANY email since I did that. We have a UNIX box running BSDi 4.0, QMail, Apache and FP. This morning I did a 'tail -f /var/log/maillog' and found tons of bounce messages going out and the following messages about incoming mail: Jun 7 09:57:54 midnightsun qmail: 991925874.483380 starting delivery 434: msg 2 77962 to remote [EMAIL PROTECTED] Jun 7 09:57:54 midnightsun qmail: 991925874.490779 status: local 0/10 remote 1/ 20 Jun 7 09:57:54 midnightsun qmail: 991925874.510962 delivery 434: failure: Sorry ._Although_I'm_listed_as_a_best-preference_MX_or_A_for_that_host,/it_isn't_i n_my _control/locals_file,_so_I_don't_treat_it_as_local._(#5.4.6)/ From this information, and the information you've provided below, it looks to me that you probably did something like this: echo example.com:example.com /var/qmail/control/virtualdomains I doubt that this is what you wanted... see below. I cehecked control/locals and found my main server, 'midnightsun.chismtrail.com' so I added just plain 'chismtrail.com' in case that might be the problem, even though it has been working like that just fine in the past. It did not help. Now I am getting the following messages: SNIP logs... There is a [EMAIL PROTECTED], in /usr/var/vpopmail/users SNIP listing. From this alone, it appears that chismtrail.com was a virtual domain, and should never have been in 'locals'. Add it back to virtualdomains, and put 'locals' back the way it was. Please let us know if I nailed it first try...;) -- Greg White Those who make peaceful revolution impossible will make violent revolution inevitable. -- John F. Kennedy
RE: suddenly cannot receive email
Make sure you check in /var/qmail/users/assign and make sure that is pointing to the correct place for your virtual domains and check that the uid/gid is correct. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 07, 2001 12:44 PM To: [EMAIL PROTECTED] Subject: suddenly cannot receive email Until I get this mess fixed, please cc responses to [EMAIL PROTECTED] Sorry, but it is the only way I can receive email right now. I seem to have done something to break my qmail. Yesterday afternoon, I added a virtual user in /var/qmail/control/virtualdomains and put his forwarding address in alias/.qmail-garnette-monte and added his domain to rcpthosts then restarted. I did not notice at the time (because I left work right after that), but I have not received ANY email since I did that. We have a UNIX box running BSDi 4.0, QMail, Apache and FP. This morning I did a 'tail -f /var/log/maillog' and found tons of bounce messages going out and the following messages about incoming mail: Jun 7 09:57:54 midnightsun qmail: 991925874.483380 starting delivery 434: msg 2 77962 to remote [EMAIL PROTECTED] Jun 7 09:57:54 midnightsun qmail: 991925874.490779 status: local 0/10 remote 1/ 20 Jun 7 09:57:54 midnightsun qmail: 991925874.510962 delivery 434: failure: Sorry _Although_I'm_listed_as_a_best-preference_MX_or_A_for_that_host,/it_isn't_in _my _control/locals_file,_so_I_don't_treat_it_as_local._(#5.4.6)/ I cehecked control/locals and found my main server, 'midnightsun.chismtrail.com' so I added just plain 'chismtrail.com' in case that might be the problem, even though it has been working like that just fine in the past. It did not help. Now I am getting the following messages: Jun 7 10:14:54 midnightsun qmail: 991926894.296843 starting delivery 35: msg 27 7963 to local [EMAIL PROTECTED] Jun 7 10:14:54 midnightsun qmail: 991926894.306096 status: local 1/10 remote 0/ 20 Jun 7 10:14:54 midnightsun qmail: 991926894.338870 delivery 35: deferral: Unabl e_to_chdir_to_maildir._(#4.2.1)/ and Jun 7 10:16:35 midnightsun qmail: 991926995.777267 delivery 38: failure: This_m essage_is_looping:_it_already_has_my_Delivered-To_line._(#5.4.6)/ and Jun 7 10:35:46 midnightsun qmail: 991928146.945873 starting delivery 70: msg 27 7962 to local [EMAIL PROTECTED] Jun 7 10:35:46 midnightsun qmail: 991928146.955071 status: local 1/10 remote 0/ 20 Jun 7 10:35:46 midnightsun qmail: 991928146.987598 delivery 70: failure: Sorry, _no_mailbox_here_by_that_name._(#5.1.1)/ There is a [EMAIL PROTECTED], in /usr/var/vpopmail/users qmail-default .qmail-igy .qmail-walter .qmail-wvchism9 postmaster qmail-gin .qmail-root .qmail-wdchism abc walt qmail-iggy .qmail-swap .qmail-wlat guest webmaster Where else can I look to find the problem?
Re: suddenly cannot receive email
In a message dated 6/7/01 12:55:37 PM Central Daylight Time, [EMAIL PROTECTED] writes: From this information, and the information you've provided below, it looks to me that you probably did something like this: echo example.com:example.com /var/qmail/control/virtualdomains What I actually did was: echo www.garnette.com:alias-garnette /var/qmail/control/virtualdomains echo [EMAIL PROTECTED] ~alias/.qmail-garnette-monte echo garnette.com /var/qmail/control/rcpthosts it appears that chismtrail.com was a virtual domain, and should never have been in 'locals'. Add it back to virtualdomains, and put 'locals' back the way it was. midnightsun.chismtrail.com is our server. chismtrail.com was in rcpthosts. I have taken it back out of locals and left it in rcpthosts. I did another test. It is no longer giving the 'looping message, but is still not getting through. Here is the error message: [EMAIL PROTECTED]: Sorry. Although I'm listed as a best-preference MX or A for that host, it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)
Re: suddenly cannot receive email
In a message dated 6/7/01 1:30:31 PM Central Daylight Time, [EMAIL PROTECTED] writes: Make sure you check in /var/qmail/users/assign and make sure that is pointing to the correct place for your virtual domains and check that the uid/gid is correct. This is in /var/qmail/users/assign (and I am such a newbie that I have no idea if that is right!): +cmarc.com-:cmarc.com:142:142:/var/vpopmail/domains/cmarc.com:-:: +chismtrail.com-:chismtrail.com:142:142:/var/vpopmail/users:-::
Re: suddenly cannot receive email
In a message dated 6/7/01 3:27:10 PM Central Daylight Time, [EMAIL PROTECTED] writes: Thought so -- you overwrote virtualdomains, and chismtrail.com was in there. ;) Got a copy of the original (backups, etc.)? That was it! Thank you so much. I don't have a copy, but think I can rebuild now that I know what I did!
RE: suddenly cannot receive email
And now, just to add fat to the fire, my boss cannot access his email. I'll deal with that tomorrow. -- Scarlett O'Hara
RE: suddenly cannot receive email
None of my alias addresses work. I guess I need to put all the domains back in virtual. I know I can do it through the 'echo eachdomain.com:domain.com \ /var/qmail/control/virtualdomains' route. Would it be equally effective just to go into virtualdomains and edit the file? Doesn't chismtrail.com need to go back in virtualdomains? echo chismtrail.com:chismtrail.com \ /var/qmail/control/virtualdomains I'll try that. I guess I need to restart qmail after the change? ISTR that a restart is required for virtualdomains, yes. I would have done it anyway, unless it's one that I know is read every time, like badmailfrom, etc. -- Greg White
Re: suddenly cannot receive email
On Thu, Jun 07, 2001 at 02:40:31PM -0400, [EMAIL PROTECTED] wrote: In a message dated 6/7/01 12:55:37 PM Central Daylight Time, [EMAIL PROTECTED] writes: From this information, and the information you've provided below, it looks to me that you probably did something like this: echo example.com:example.com /var/qmail/control/virtualdomains What I actually did was: echo www.garnette.com:alias-garnette /var/qmail/control/virtualdomains echo [EMAIL PROTECTED] ~alias/.qmail-garnette-monte echo garnette.com /var/qmail/control/rcpthosts It sounds like you didn't send qmail-send a SIGHUP. You need to do that to get it to reread virtualdomains. Chris
Re: suddenly cannot receive email
Should I chown the top four to alias? Three of them have worked in the past, but garnette has not worked at all. And, should I do anything about the -rw-r--r--? -rw-r--r-- 1 root qmail 11 Apr 20 14:01 .qmail-evergreenequikits-info -rw-r--r-- 1 root qmail 19 May 22 13:49 .qmail-fiskrri-info -rw-r--r-- 1 root qmail 18 Jun 6 16:21 .qmail-garnette-monte -rw-r--r-- 1 root qmail 26 Apr 24 11:16 .qmail-lechapeauonline-info -rw--- 1 alias qmail 11 May 25 1999 .qmail-mailer-daemon -rw--- 1 alias qmail 11 May 25 1999 .qmail-postmaster -rw--- 1 alias qmail 11 May 25 1999 .qmail-root -rw--- 1 alias qmail 26 Sep 29 2000 .qmail-webmaster drwx-- 5 alias qmail 512 May 25 1999 Maildir This is how they are listed in /var/vpopmail/users -rw--- 1 vpopmail vpopmail 71 May 26 1999 .qmail-default -rw--- 1 vpopmail vpopmail 26 Jun 30 1999 .qmail-gin -rw--- 1 vpopmail vpopmail 26 Jun 30 1999 .qmail-iggy -rw--- 1 vpopmail vpopmail 26 Jun 30 1999 .qmail-igy -rw--- 1 vpopmail vpopmail 26 Sep 29 2000 .qmail-root -rw--- 1 vpopmail vpopmail 26 May 26 1999 .qmail-swap -rw-r--r-- 1 root vpopmail 21 May 9 09:31 .qmail-walter -rw-r--r-- 1 root vpopmail 21 May 9 09:32 .qmail-wdchism -rw-r--r-- 1 root vpopmail 21 May 9 09:30 .qmail-wlat -rw--- 1 vpopmail vpopmail 21 May 26 1999 .qmail-wvchism9 drwx-- 3 vpopmail vpopmail 512 May 26 1999 abc drwx-- 3 vpopmail vpopmail 512 Aug 26 1999 guest drwx-- 3 vpopmail vpopmail 512 May 26 1999 postmaster drwx-- 3 vpopmail vpopmail 512 May 26 1999 walt drwx-- 3 vpopmail vpopmail 512 May 26 1999 webmaster
Re: suddenly cannot receive email
On Thu, Jun 07, 2001 at 04:28:38PM -0400, [EMAIL PROTECTED] wrote: In a message dated 6/7/01 3:18:07 PM Central Daylight Time, [EMAIL PROTECTED] writes: Doesn't chismtrail.com need to go back in virtualdomains? echo chismtrail.com:chismtrail.com \ /var/qmail/control/virtualdomains I'll try that. I guess I need to restart qmail after the change? ISTR that a restart is required for virtualdomains, yes. I would have done it anyway, unless it's one that I know is read every time, like badmailfrom, etc. -- Greg White
Re: suddenly cannot receive email
On Thu, Jun 07, 2001 at 02:41:11PM -0400, [EMAIL PROTECTED] wrote: In a message dated 6/7/01 1:30:31 PM Central Daylight Time, [EMAIL PROTECTED] writes: Make sure you check in /var/qmail/users/assign and make sure that is pointing to the correct place for your virtual domains and check that the uid/gid is correct. This is in /var/qmail/users/assign (and I am such a newbie that I have no idea if that is right!): +cmarc.com-:cmarc.com:142:142:/var/vpopmail/domains/cmarc.com:-:: +chismtrail.com-:chismtrail.com:142:142:/var/vpopmail/users:-:: Doesn't chismtrail.com need to go back in virtualdomains? echo chismtrail.com:chismtrail.com \ /var/qmail/control/virtualdomains -- Greg White Those who make peaceful revolution impossible will make violent revolution inevitable. -- John F. Kennedy
Re: suddenly cannot receive email
In a message dated 6/7/01 3:18:07 PM Central Daylight Time, [EMAIL PROTECTED] writes: Doesn't chismtrail.com need to go back in virtualdomains? echo chismtrail.com:chismtrail.com \ /var/qmail/control/virtualdomains I'll try that. I guess I need to restart qmail after the change?
Re: suddenly cannot receive email
On Thu, Jun 07, 2001 at 04:52:41PM -0400, Chris Johnson wrote: On Thu, Jun 07, 2001 at 02:40:31PM -0400, [EMAIL PROTECTED] wrote: In a message dated 6/7/01 12:55:37 PM Central Daylight Time, [EMAIL PROTECTED] writes: From this information, and the information you've provided below, it looks to me that you probably did something like this: echo example.com:example.com /var/qmail/control/virtualdomains What I actually did was: echo www.garnette.com:alias-garnette /var/qmail/control/virtualdomains echo [EMAIL PROTECTED] ~alias/.qmail-garnette-monte echo garnette.com /var/qmail/control/rcpthosts It sounds like you didn't send qmail-send a SIGHUP. You need to do that to get it to reread virtualdomains. Just to be clear, for the sake of the archives, problem was that the 'main' domain for the box, chismtrail.com, was _already in virtualdomains_ when then above single redirection was issued. IMHO everyone should get in the habit of triple-checking single redirects, or change their mental default to append, a double redirect. You only need to get burned by this type of thing once to be paranoid for life. Speaking as a man with some very old scars of this variety, -- Greg White