Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Qmail "user" and "group" info ?

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
syn_ack
n00b
n00b
User avatar
Posts: 31
Joined: Mon Jan 26, 2004 6:55 am

Qmail "user" and "group" info ?

  • Quote

Post by syn_ack » Wed Mar 10, 2004 6:36 am

Greetings,

I'm following the "Life with qmail" doc and I notice that they have in "/etc/group":

Code: Select all

qmail:*:2107:
nofiles:*:2108:

I show:
nofiles:x:200:
qmail:x:201:
For users in "/etc/passwd" (LWQ) shows:

Code: Select all

alias:*:7790:2108::/var/qmail/alias:/bin/true
qmaild:*:7791:2108::/var/qmail:/bin/true
qmaill:*:7792:2108::/var/qmail:/bin/true
qmailp:*:7793:2108::/var/qmail:/bin/true
qmailq:*:7794:2107::/var/qmail:/bin/true
qmailr:*:7795:2107::/var/qmail:/bin/true
qmails:*:7796:2107::/var/qmail:/bin/true

I show:
alias:x:200:200::/var/qmail/alias:/bin/false
qmaild:x:201:200::/var/qmail:/bin/false
qmaill:x:202:200::/var/qmail:/bin/false
qmailp:x:203:200::/var/qmail:/bin/false
qmailq:x:204:201::/var/qmail:/bin/false
qmailr:x:205:201::/var/qmail:/bin/false
qmails:x:206:201::/var/qmail:/bin/false
The UID's and GID's are different from what I have but that shouldn't matter should it? As long as the UID's are unique and the "user" belongs to the correct group right? No? If no, please let me know how that has an effect?

The other differences I see here are LWQ doc has "*" (astrixs) and I have "x"'s. What is the significance between the two?

LWQ doc shows thier "users" with "/bin"reading "/true" and all of mine are "/false". Do I need to change this to "true" and what exactly is the diff between "true" and "false"?

Is the following needed?

Code: Select all


####
Section 2.8.2.2

  (LWQ) states:
  Then set up the log directories:

    mkdir -p /var/log/qmail/smtpd
    chown qmaill /var/log/qmail /var/log/qmail/smtpd
####
    
 When I look in /var/log/qmail I don't see "smtpd" there.......... I see:
 
#### 
root@fusion qmail # ls -la
total 8
drwxr-xr-x    7 qmaill   root          208 Mar  8 16:50 .
drwxr-xr-x    6 root     root         4216 Mar  9 03:00 ..
drwxr-xr-x    2 qmaill   root           72 Mar  8 22:33 qmail-pop3d
drwxr-xr-x    2 qmaill   root           72 Mar  8 22:33 qmail-qmqpd
drwxr-xr-x    2 qmaill   root           72 Mar  8 22:33 qmail-qmtpd
drwxr-xr-x    2 qmaill   root           72 Mar  8 22:33 qmail-send
drwxr-xr-x    2 qmaill   root           72 Mar  8 22:33 qmail-smtpd 
####
I've looked at "man useradd" and "man groupadd" and can't really gleem any info related to my questions there. "Googling" in the mean time.

Thanks,
Top
kashani
Advocate
Advocate
User avatar
Posts: 2030
Joined: Mon Sep 02, 2002 6:38 am
Location: San Francisco
Contact:
Contact kashani
Website

  • Quote

Post by kashani » Wed Mar 10, 2004 6:41 pm

Gentoo's excellent qmail ebuild does just about all the setup for you. This was actually one of the reasons I originally started using Gentoo. In any case, you can skip to the end of LWQ and not miss anything. The big things to configure in Gentoo are:

1. rcpthosts and the like in /var/qmail/control/
2. Doing the ln -sf into /service like the ebuild tells you to do.
3. Making any changes to /etc/tcp.smtp.cb or whatever it's called.
4. start qmail /etc/init.d/svscan start
5. You don't get a qmailcrtl, but most of it can be done using the binaries in /var/qmail/bin/

I'd also install qmhandle and supervise-scripts.

kashani
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Top
syn_ack
n00b
n00b
User avatar
Posts: 31
Joined: Mon Jan 26, 2004 6:55 am

  • Quote

Post by syn_ack » Wed Mar 10, 2004 7:05 pm

Thanks for the reply kashani.

I'm going to start over again. I didn't know if I should run:

Code: Select all

ebuild /var/db/pkg/net-mail/qmail-1.03-r13/qmail-1.03-r13.ebuild config
.... because I'm not running a public MX server. This is on a home lan. Hoping to have fetchmail pass mail to qmail. And qmail-pop3d to serve up the mail to the internal Windows and linux machines.
When clients need to send mail they point to qmail and qmail forwards thier mail to the various email accounts at the ISP which forwards it on to the final destination.

But since skipping the step/config option above seems to be so much trouble, I'm redoing the install again.

I'm still confused on why my "/etc/passwd" file has "the various qmail users, all with "/bin/false"? I'n all the other doc's I see this as "/bin/true"?

What effect does this have if any?

kashani wrote: I'd also install qmhandle and supervise-scripts.
Why?
Top
kashani
Advocate
Advocate
User avatar
Posts: 2030
Joined: Mon Sep 02, 2002 6:38 am
Location: San Francisco
Contact:
Contact kashani
Website

  • Quote

Post by kashani » Wed Mar 10, 2004 7:30 pm

qmhandle is nice script for deleting files manually from the queue. For a home lan you probably won't need it, but it's real handy for a large ISP style server.

supervise scripts installs some little scripts to help you manage daemontools. I can never remember the svc -a whatever syntax. With supervise-scripts you get the follow and don't actually have to learn daemontools.

/usr/bin/svc-add
/usr/bin/svc-isdown
/usr/bin/svc-isup
/usr/bin/svc-remove
/usr/bin/svc-start
/usr/bin/svc-status
/usr/bin/svc-stop
/usr/bin/svc-restart
/usr/bin/svc-waitdown
/usr/bin/svc-waitup
/usr/bin/svscan-add-to-inittab
/usr/bin/svscan-start
/usr/bin/svscan-stopall

as to /bin/true and /bin/false their isn't much difference between the two other than exit code. Most people prefer to use /bin/false for daemons that will never login and /bin/true for users who don't get shell access, but might want to allow them ftp access or something like that in the future.

I'd run the config file. You will need to allow people on the local network to send via qmail and their IP's should be in the tcp.smtp thing. Or you can enable smtp-auth, but that's extra work.

kashani
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Top
syn_ack
n00b
n00b
User avatar
Posts: 31
Joined: Mon Jan 26, 2004 6:55 am

  • Quote

Post by syn_ack » Wed Mar 10, 2004 8:01 pm

Sweet.

Thanks kashani. :D

For the "supervise-scripts" pkg to work correctly. Do I need to add svscanboot to "inittab" or "rc-update add svscan default" ?

[edit] Nevemind. Its "inittab".

Thanks again.
Top
kashani
Advocate
Advocate
User avatar
Posts: 2030
Joined: Mon Sep 02, 2002 6:38 am
Location: San Francisco
Contact:
Contact kashani
Website

  • Quote

Post by kashani » Wed Mar 10, 2004 8:34 pm

I use supervise scripts to start and stop particular services not so much as a bootup option. In my case I did rc-update add svscan default which has daemontools start on boot. Then I use svc-* tools to start and stop individual services, add services, etc. Generally you shouldn't have to do much on your system.

My problelm is that I run a server that can send 1-2 million mails a day to customers. I run 5 instances of qmail each with its own disk for the queue. So I've got 10 qmail services in svc and they occasionally crash or hang due to sheer volume. I found it easier to do

Code: Select all

svc-restart qmail3-send qmail4-smtpd
svc-stop qmail1-send
then to use the svc -flags syntax I never got around to learning.

kashani
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Top
Post Reply

6 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic