Re: Control files
On Mon, Mar 19, 2001 at 01:22:30PM -0800, Brad Dameron wrote: Is there a better description of what each file does in the /var/qmail/control directory? man qmail-control, perhaps? Greetz, Peter.
Re: Control files
On Mon, Mar 19, 2001 at 01:22:30PM -0800, Brad Dameron wrote: Is there a better description of what each file does in the /var/qmail/control directory? Better than what exactly? Better than "man qmail-control" which identifies all control files and the relevant program in turn each have an individual manpage which precisely descibes the use of each control file? Regards.
Re: Control files
On Mon, Mar 19, 2001 at 01:22:30PM -0800, Brad Dameron wrote: Is there a better description of what each file does in the /var/qmail/control directory? Better than what? Try man qmail-control. Chris PGP signature
Re: Control files
Is there a better description of what each file does in the /var/qmail/control directory? Better than what? Try "man qmail-control". That will give you an overview of what each file does, what it's default is, and what other man pages to read for more detail. ---Kris Kelley
Re: Control files
Brad Dameron [EMAIL PROTECTED] wrote: Is there a better description of what each file does in the /var/qmail/control directory? `man qmail-control` 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: Control files
Brad: I am new to qmail, but I will try to answer your question. Control files are Qmail's way of storing configuration data. Qmail uses lots of individualized control files, each of which defines one piece of the qmail puzzle. For example, /var/qmail/control/me is the most important control file and is used to specify the host name of the local mail server. For example; my mail server is "mail.mydomain.com" and that's what is contained in "me" control file. Another important control file is /var/qmail/control/rcpthosts. This control file contains the names of the hosts and domain for which qmail-smtpd will accept messages. For example; my host domain are ns1.mydomain.com mydomain.com and thus both of these names are specified in the "rcpthosts" control file. /var/qmail/control/locals is another important control file. It is used to specify mail addresses that qmail should consider to be local addresses to the mail server. Therefore, if you read about any control file, you can figure out its function within qmail package. Also remember, some control files are a "must" for running of qmail but others are optional. For example "me" control file is a "MUST". Without it qmail will not run, whereas, "bouncehost" control file is optional. If it is present, fine, but if is not present, qmail will use the "me" control file, which is the default for "bouncehost" control file. Each control file is used by one or more qmail program. For example; qmail-smtpd uses "rcpthosts", "smtpgreeting", databytes", etc., control files. Similarly, other qmail programs use other control files. Hope it helps. Kirti -Original Message- From: Brad Dameron [mailto:[EMAIL PROTECTED]] Sent: Monday, March 19, 2001 4:23 PM To: Qmail List (E-mail) Subject: Control files Is there a better description of what each file does in the /var/qmail/control directory? --- Brad Dameron[EMAIL PROTECTED] Network Account Executive 877-663-4349 TSCNet Online Services www.tscnet.com --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.237 / Virus Database: 115 - Release Date: 3/7/2001
Re: control files on an NFS share?
On Thu, Nov 16, 2000 at 06:04:31PM -0600, Ben Beuchler wrote: I am primarily concerned about files like 'rcpthosts'. They are read on every invocation of qmail-smtpd. Am I going to be looking at significant overhead from reading a file like that over NFS? Not if you turn the NFS caching options up high enough... I tried to set up /var/qmail/control on an NFS partition at some point, and it was failing. Or was that /etc/tcpcontrol for the CDBs? I forget now... It was very unhappy though, wouldn't run at all. Sean -- Do you think reading about cowboys is sufficient to ride a horse? Like horses, real programs tend to throw you. -- John Shipman, 1997 Sean Reifschneider, Inimitably Superfluous [EMAIL PROTECTED] tummy.com - Linux Consulting since 1995. Qmail, KRUD, Firewalls, Python
Re: control files on an NFS share?
On Tue, Nov 21, 2000 at 05:10:06PM -0700, Sean Reifschneider wrote: On Thu, Nov 16, 2000 at 06:04:31PM -0600, Ben Beuchler wrote: I am primarily concerned about files like 'rcpthosts'. They are read on every invocation of qmail-smtpd. Am I going to be looking at significant overhead from reading a file like that over NFS? Not if you turn the NFS caching options up high enough... I tried to set up /var/qmail/control on an NFS partition at some point, and it was failing. Or was that /etc/tcpcontrol for the CDBs? I forget now... It was very unhappy though, wouldn't run at all. Sean I think I'll leave 'em on local disks and just rsync 'em up... Sounds like the smart way to go. Ben -- Ben Beuchler [EMAIL PROTECTED] MAILER-DAEMON (612) 321-9290 x101 Bitstream Underground www.bitstream.net
Re: control files on an NFS share?
On Thu, Nov 16, 2000 at 05:40:27PM -0600, Ben Beuchler wrote: Our one qmail/vpopmail server is about to become a node in a load balanced pool of mail servers. I plan to mount the queue via NFS (I am now, in fact) but am wondering about the control files. It seems that Ouch. You will, at some stage, lose mail this way. Is it actually working? at least SOME of them should be safe to share over NFS. Any thoughts or recommendations? Anything but queue is probably ok. Regards.
Re: control files on an NFS share?
On Thu, Nov 16, 2000 at 02:49:24PM -0800, [EMAIL PROTECTED] wrote: On Thu, Nov 16, 2000 at 05:40:27PM -0600, Ben Beuchler wrote: Our one qmail/vpopmail server is about to become a node in a load balanced pool of mail servers. I plan to mount the queue via NFS (I am now, in fact) but am wondering about the control files. It seems that Ouch. You will, at some stage, lose mail this way. Is it actually working? I mis-spoke. The queue is, of course, local. The spool is on the NFS share. I slipped into "boss speak" there for a second. My boss for some reason persists in referring to the spool as the queue... at least SOME of them should be safe to share over NFS. Any thoughts or recommendations? Anything but queue is probably ok. I am primarily concerned about files like 'rcpthosts'. They are read on every invocation of qmail-smtpd. Am I going to be looking at significant overhead from reading a file like that over NFS? Ben -- Ben Beuchler [EMAIL PROTECTED] MAILER-DAEMON (612) 321-9290 x101 Bitstream Underground www.bitstream.net
Re: control files on an NFS share?
Ben Beuchler [EMAIL PROTECTED] writes: Our one qmail/vpopmail server is about to become a node in a load balanced pool of mail servers. I plan to mount the queue via NFS (I am now, in fact) but am wondering about the control files. It seems that at least SOME of them should be safe to share over NFS. Any thoughts or recommendations? We have stored all configuration files (save 'me') on NFS for about 8 months now, with no problem. It does put quite a bit of additional strain on the NFS server, though; I'm looking at moving control to a RAMdisk, and just copying from the NFS server when qmail is restarted. We also store spool on NFS with no problems. We've stored queue on NFS in the past, and while we didn't see any lost mail, we did see huge performance problems, and had to move it to local storage. --ScottG.
Re: Control files
Umm...putting IPs in MX records is a big no-no. I have a little DNS experience, so here's what I'd change it to: @IN A 209.85.33.100 @IN MX 10 mail www IN CNAME ntmasters.net. IN MX 10 mail mail IN CNAME ntmasters.net. IN MX 10 mail#is this line necessary? And PTR record... It does not seem to exist at this point. Mate
Re: Control files
At 09:10 PM 1/7/99 , Mate Wierdl wrote: Umm...putting IPs in MX records is a big no-no. I have a little DNS experience, so here's what I'd change it to: @ IN A 209.85.33.100 @ IN MX 10 mail www IN CNAME ntmasters.net. IN MX 10 mail mailIN CNAME ntmasters.net. IN MX 10 mail#is this line necessary? And PTR record... It does not seem to exist at this point. The PTR record goes into a totally different file, unless you change the domain midway through the file (which I tried once, didn't work for me, and never bothered with again). --Ludwig Pummer ( [EMAIL PROTECTED] ) ICQ UIN: 692441 ( [EMAIL PROTECTED] )
Re: Control files
And PTR record... It does not seem to exist at this point. The PTR record goes into a totally different file, unless you change the domain midway through the file (which I tried once, didn't work for me, and never bothered with again). No, I did not mean in this file. Just simply I could not find PTR records for 209.85.33.100. Mate
Re: Control files
On 990107, Seek3r wrote: I send an email to [EMAIL PROTECTED] and it was getting bouced, and saying that it could not deliver to [EMAIL PROTECTED] I dont know where the www came from. Any ideas about this? Bizarre. myvirtualdomain.com doesn't even seem to be assigned! -- ICQ UIN: 124151944
Re: Control files
Seek3r wrote: OK, I have a couple of questions. I want @anything.myvirtualdomain.com to get recieved, my virtualdomains file is like this myvirtualdomain.com:seek3r I read somewhere that I could put a . in front of it like this: .myvirtualdomain.com:seek3r and that would do what I want, but that doesnt not seem to be the case. Does anyone know how I do this? I also have a weird issue, that may be dns related, but Im not sure. I send an email to [EMAIL PROTECTED] and it was getting bouced, and saying that it could not deliver to [EMAIL PROTECTED] I dont know where the www came from. Any ideas about this? Thanks for the help! No one here can test for DNS problems without your real domain.
Re: Control files
ok fine, you want real details ;p I send an email to [EMAIL PROTECTED] and it was getting bouced, and saying that it could not deliver to [EMAIL PROTECTED] I dont know where the www came from. Any ideas about this? I didnt want to us the real address, because I made a fix my making my virtualdomains file read as follows: ntmasters.net:seek3rntmasters mail.ntmasters.net:seek3rntmasters www.ntmasters.net:seek3rntmasters I undid the fix in case you want to test it. -Original Message- From: Todd Larason [EMAIL PROTECTED] To: Seek3r [EMAIL PROTECTED]; Qmail List [EMAIL PROTECTED] Date: Thursday, January 07, 1999 5:39 PM Subject: Re: Control files On 990107, Seek3r wrote: I send an email to [EMAIL PROTECTED] and it was getting bouced, and saying that it could not deliver to [EMAIL PROTECTED] I dont know where the www came from. Any ideas about this? Bizarre. myvirtualdomain.com doesn't even seem to be assigned! -- ICQ UIN: 124151944
Re: Control files
On Thu, Jan 07, 1999 at 05:50:20PM -0800, Seek3r wrote: ok fine, you want real details ;p I send an email to [EMAIL PROTECTED] and it was getting bouced, and saying that it could not deliver to [EMAIL PROTECTED] I dont know where the www came from. Any ideas about this? I didnt want to us the real address, because I made a fix my making my virtualdomains file read as follows: ntmasters.net:seek3rntmasters mail.ntmasters.net:seek3rntmasters www.ntmasters.net:seek3rntmasters I undid the fix in case you want to test it. The problem is that ntmasters.net has a CNAME record pointing to www.ntmasters.net, and when you send mail to ntmasters.net the domain is getting canonicalized. The solution is to get rid of the CNAME record and replace it with an A record or an MX record. Chris
Re: Control files
@IN CNAME www.ntmasters.net. @IN MX 10 mail wwwIN A 209.85.33.100 IN MX 209.85.33.100 mail IN A 209.85.33.100 IN MX 10 mail OK, so your saying that the first line here needs to go I have this here in case someone goes to http://ntmasters.net it will properly take them to http://www,ntmasters.net Im not sure this is critical, but I guess I have to remove it to make the email work properly. What about the other question I had, it would also solve this I want @anything.myvirtualdomain.com to get recieved, my virtualdomains file is like this myvirtualdomain.com:seek3r I read somewhere that I could put a dot in front of it like this: .myvirtualdomain.com:seek3r Any ideas about this? -Original Message- From: Chris Johnson [EMAIL PROTECTED] To: Seek3r [EMAIL PROTECTED]; Qmail List [EMAIL PROTECTED] Date: Thursday, January 07, 1999 5:58 PM Subject: Re: Control files On Thu, Jan 07, 1999 at 05:50:20PM -0800, Seek3r wrote: ok fine, you want real details ;p I send an email to [EMAIL PROTECTED] and it was getting bouced, and saying that it could not deliver to [EMAIL PROTECTED] I dont know where the www came from. Any ideas about this? I didnt want to us the real address, because I made a fix my making my virtualdomains file read as follows: ntmasters.net:seek3rntmasters mail.ntmasters.net:seek3rntmasters www.ntmasters.net:seek3rntmasters I undid the fix in case you want to test it. The problem is that ntmasters.net has a CNAME record pointing to www.ntmasters.net, and when you send mail to ntmasters.net the domain is getting canonicalized. The solution is to get rid of the CNAME record and replace it with an A record or an MX record. Chris
Re: Control files
From: "Seek3r" [EMAIL PROTECTED] Date: Thu, 7 Jan 1999 18:05:22 -0800 @IN CNAME www.ntmasters.net. @IN MX 10 mail wwwIN A 209.85.33.100 IN MX 209.85.33.100 mail IN A 209.85.33.100 IN MX 10 mail OK, so your saying that the first line here needs to go I have this here in case someone goes to http://ntmasters.net it will properly take them to http://www,ntmasters.net Im not sure this is critical , but I guess I have to remove it to make the email work properly. and A record is the only real way to do that... What about the other question I had, it would also solve this I want @anything.myvirtualdomain.com to get recieved, my virtualdomains fil e is like this myvirtualdomain.com:seek3r I read somewhere that I could put a dot in front of it like this: .myvirtualdomain.com:seek3r Include both the line with the dot and the one without. Chris -- Chris Garrigues Deep Eddy Internet Consulting +1 512 432 4046 609 Deep Eddy AvenueO- http://www.DeepEddy.Com/~cwg/ Austin, TX 78703-4513 My email address is an experiment in SPAM elimination. For an explanation of what we're doing, see http://www.DeepEddy.Com/tms.html Nobody ever got fired for buying Microsoft, but they could get fired for relying on Microsoft. PGP signature
Re: Control files
I want @anything.myvirtualdomain.com to get recieved, my virtualdomains fil e is like this myvirtualdomain.com:seek3r I read somewhere that I could put a dot in front of it like this: .myvirtualdomain.com:seek3r Include both the line with the dot and the one without. OH I got it Thanks!
Re: Control files
Umm...putting IPs in MX records is a big no-no. I have a little DNS experience, so here's what I'd change it to: @ IN A 209.85.33.100 @ IN MX 10 mail www IN CNAME ntmasters.net. IN MX 10 mail mailIN CNAME ntmasters.net. IN MX 10 mail#is this line necessary? --Ludwig Pummer ( [EMAIL PROTECTED] ) ICQ UIN: 692441 ( [EMAIL PROTECTED] )
Re: Control files
On Thu, Jan 07, 1999 at 06:05:22PM -0800, Seek3r wrote: @IN CNAME www.ntmasters.net. @IN MX 10 mail wwwIN A 209.85.33.100 IN MX 209.85.33.100 mail IN A 209.85.33.100 IN MX 10 mail OK, so your saying that the first line here needs to go I have this here in case someone goes to http://ntmasters.net it will properly take them to http://www,ntmasters.net Im not sure this is critical, but I guess I have to remove it to make the email work properly. It mustn't be a CNAME. Just change it to an A record: @ IN A 209.85.33.100 Then http://ntmasters.net will still work, and your MX record won't be hidden by the CNAME. Also, the MX record for www shouldn't be pointing to an IP address--it has to point to a host name (but that's a separate issue). What about the other question I had, it would also solve this I want @anything.myvirtualdomain.com to get recieved, my virtualdomains file is like this myvirtualdomain.com:seek3r I read somewhere that I could put a dot in front of it like this: .myvirtualdomain.com:seek3r Any ideas about this? I don't have any virtual domains like this, but according to the qmail-send man page it should work that way. Have you tried it? If so and it doesn't seem to work, can you provide any details? Chris
Re: Control files
Thanks for all the help everyone!!! I got everything working great now. Seek3r -Original Message- From: Chris Johnson [EMAIL PROTECTED] To: Seek3r [EMAIL PROTECTED]; Qmail List [EMAIL PROTECTED] Date: Thursday, January 07, 1999 6:31 PM Subject: Re: Control files On Thu, Jan 07, 1999 at 06:05:22PM -0800, Seek3r wrote: @IN CNAME www.ntmasters.net. @IN MX 10 mail wwwIN A 209.85.33.100 IN MX 209.85.33.100 mail IN A 209.85.33.100 IN MX 10 mail OK, so your saying that the first line here needs to go I have this here in case someone goes to http://ntmasters.net it will properly take them to http://www,ntmasters.net Im not sure this is critical, but I guess I have to remove it to make the email work properly. It mustn't be a CNAME. Just change it to an A record: @ IN A 209.85.33.100 Then http://ntmasters.net will still work, and your MX record won't be hidden by the CNAME. Also, the MX record for www shouldn't be pointing to an IP address--it has to point to a host name (but that's a separate issue). What about the other question I had, it would also solve this I want @anything.myvirtualdomain.com to get recieved, my virtualdomains file is like this myvirtualdomain.com:seek3r I read somewhere that I could put a dot in front of it like this: .myvirtualdomain.com:seek3r Any ideas about this? I don't have any virtual domains like this, but according to the qmail-send man page it should work that way. Have you tried it? If so and it doesn't seem to work, can you provide any details? Chris
Re: Control files
virtualdomains file read as follows: ntmasters.net:seek3rntmasters mail.ntmasters.net:seek3rntmasters www.ntmasters.net:seek3rntmasters Do the MX records for these domains point at your machine? (Is your machine mail.ntmasters.net? If it is, then why is it a virtualdomain; if it is not then the MX does not point at your machine: nslookup -query=mx mail.ntmasters.net Server: dns1.memphis.edu Address: 141.225.253.21 Non-authoritative answer: mail.ntmasters.net preference = 10, mail exchanger = mail.ntmasters.net Authoritative answers can be found from: mail.ntmasters.net internet address = 209.85.33.100 But the DNS records are weird: besides mail.ntmasters.net, www.ntmasters.net is also an A record with IP 209.85.33.100 Finally, there is no PTR record for 209.85.33.100: nslookup 209.85.33.100 Server: dns1.memphis.edu Address: 141.225.253.21 Authoritative answers can be found from: mail.ntmasters.net internet address = 209.85.33.100 *** dns1.memphis.edu can't find 209.85.33.100: Non-existent host/domain Mate --- Mate Wierdl | Dept. of Math. Sciences | University of Memphis