Page 2 of 8 FirstFirst 1234 ... LastLast
Results 11 to 20 of 74

Thread: Qmail compliation & Installation

  1. #11
    Join Date
    Aug 2002
    Posts
    3,959
    Rep Power
    25

    Default Re:Qmail compliation & Installation

    BTW,

    Do you have DNS running? Qmail won't work properly unless DNS is running.

    Did the "./config" command put the name of your domain in the /var/qmail/control/locals and /var/qmail/control/rcpthosts files?

    If this info. is not in these files, it is likely that DNS is not working properly.

  2. #12
    Join Date
    Jul 2003
    Posts
    424
    Rep Power
    0

    Default Re:Qmail compliation & Installation

    [quote author=jamrock link=board=8;threadid=1526;start=0#msg17750 date=1063560850]
    BTW,

    Do you have DNS running? Qmail won't work properly unless DNS is running.

    Did the "./config" command put the name of your domain in the /var/qmail/control/locals and /var/qmail/control/rcpthosts files?

    If this info. is not in these files, it is likely that DNS is not working properly.
    [/quote]

    I used ./config-fast which allows qmail to run without a DNS. I placed all the entries mentioned above.

  3. #13
    Join Date
    Jul 2003
    Posts
    424
    Rep Power
    0

    Default Re:Qmail compliation & Installation

    Sorry for the trouble. It was a typo in the the ..qmail-smtpd/run. I have it up and now, port 25 is listening.

    I have created two qmail users. (section 3.6) I can send mail but I cannot receive them.

    How do I check the queue to see what is there?

    Section 2.8.2.3 speaks about SMTP Access control only the local host is entered in the cdb, should the network address be added as well?

    The /var/log/qmail/smtpd/current file is empty. What file(s) can I check to see what is happening to the mails?

  4. #14
    Join Date
    Aug 2002
    Posts
    3,959
    Rep Power
    25

    Default Re:Qmail compliation & Installation

    I used ./config-fast which allows qmail to run without a DNS.
    I have always read that qmail won't work without DNS. From what I understand, the .config-fast command is not a replacement for DNS.

    Sorry for the trouble. It was a typo in the the ..qmail-smtpd/run
    That is the most common reason for that error message. ;D

    I have created two qmail users. (section 3.6) I can send mail but I cannot receive them.

    How do I check the queue to see what is there?
    That will depend on the mailbox format. I would recommend using the maildir format. See section 4.1.3. Mail is sent to the cur directory. It is a good idea to use the skel logic so the directories are automaitcally created when a new user is added to the system.

    The /var/log/qmail/smtpd/current file is empty. What file(s) can I check to see what is happening to the mails?
    If there is no info. in your log files, I would start suspecting DNS. Perhaps it is something else. However, I would need to eliminate DNS as a factor before proceeding.

    It may be a good idea to set up DNS on the test machine and see if qmail works.

  5. #15
    Join Date
    Jul 2003
    Posts
    424
    Rep Power
    0

    Default Re:Qmail compliation & Installation

    I now have the DNS up and running. It wasn't working based on our last configuration, however I check the BIND HOWTO and went through it. I also want to explore the Dynamic DNS aspect, I haven't seen much documentation on it. I tend to see stuff about Micro$oft though.

    I will attack the Qmail later today.

    Godspeed

  6. #16
    Join Date
    Aug 2002
    Posts
    3,959
    Rep Power
    25

    Default Re:Qmail compliation & Installation

    What changes did you make?

    I would be very careful about using dyanamic update with Linux. Microsoft's dynamic update verifies the client before it allows the update. I do not remember the mechanism used, just now. Bind does not verify anything. Anyone can put a rogue ma chine on your network and update your DNS records.

    A very dangerous position to be in.

  7. #17
    Join Date
    Jul 2003
    Posts
    424
    Rep Power
    0

    Default Re:Qmail compliation & Installation

    I changed the format of the entries to match the format shown at http://www.tldp.org/HOWTO/DNS-HOWTO-5.html.

    See attachment

  8. #18
    Join Date
    Jul 2003
    Posts
    424
    Rep Power
    0

    Default Re:Qmail compliation & Installation

    I am now able to run ./config, this configures

    [root@quota qmail-1.03]# ./config
    Your hostname is quota.testcompany.com.
    Your host's fully qualified name in DNS is quota.testcompany.com.
    Putting quota.testcompany.com into control/me...
    Putting testcompany.com into control/defaultdomain...
    Putting testcompany.com into control/plusdomain...

    Checking local IP addresses:
    127.0.0.1: Adding localhost to control/locals...
    192.168.17.15: Adding quota.testcompany.com to control/locals...

    If there are any other domain names that point to you,
    you will have to add them to /var/qmail/control/locals.
    You don't have to worry about aliases, i.e., domains with CNAME records.

    Copying /var/qmail/control/locals to /var/qmail/control/rcpthosts...
    Now qmail will refuse to accept SMTP messages except to those hosts.
    Make sure to change rcpthosts if you add hosts to locals or virtualdomains![/b]

    However, ahving done this /service/qmail-smtpd is still show 0, this fluctuates between 1 and 0 seconds.

    [b][root@quota root]# qmailctl stat[b/]
    /service/qmail-send: up (pid 828) 618 seconds
    /service/qmail-send/log: up (pid 5976) 1 seconds
    /service/qmail-smtpd: up (pid 5977) 0 seconds
    /service/qmail-smtpd/log: up (pid 830) 618 seconds
    messages in queue: 2
    messages in queue but not yet preprocessed: 1
    /service/qmail-pop3d: up (pid 5997) 0 seconds
    /service/qmail-pop3d/log: up (pid 5978) 0 seconds
    [root@quota root]#

    I will ask a third and perhaps a fourth party to look at the /service/qmail-smtpd files, just to see if there are nay errors.

    Help ???

  9. #19
    Join Date
    Aug 2002
    Posts
    3,959
    Rep Power
    25

    Default Re:Qmail compliation & Installation

    Your hostname is quota.testcompany.com.
    Your host's fully qualified name in DNS is quota.testcompany.com.
    Putting quota.testcompany.com into control/me...
    Putting testcompany.com into control/defaultdomain...
    Putting testcompany.com into control/plusdomain...
    Okay...

    So DNS is working properly now. Examine the contents of the /var/qmail/control/locals and /var/qmail/control/rcpthosts files. They should now contain the name of your domain and/or the fully qualified name of the mail server. This data would have been taken from the DNS zone files.

    /service/qmail-send/log: up (pid 5976) 1 seconds
    /service/qmail-smtpd: up (pid 5977) 0 seconds

    Both of these services should be up for more than one second. Run the qmailctl stat command a few times. You should notice that the pid numbers change each time.

    These indicates that the service keeps on re-starting with a different session number.

    Check the /var/qmail/supervise/smtpd/run file and the /var/qmail/supervise/qmail-send/log/run file for typing errors. It is best to use a Linux machine to copy and paste the files from the tutorial. Don't use a Windows machine. The Windows file format is different from the Linux file format.

    Check the log files for errors. The logs should be in /var/log/qmail. I am not near a machine running qmail just now, but they should be somewhere there.

    messages in queue: 2
    messages in queue but not yet preprocessed: 1
    Check to see if any of the mail has been delivered. Check the /home/username/Maildir/new folder to see if some files have been added. Don't delete or open the files. Just verify that they are there. These should be the mail messages.




  10. #20
    Join Date
    Jul 2003
    Posts
    424
    Rep Power
    0

    Default Re:Qmail compliation & Installation

    As the documentation warned - The problem was as a result of a typo - a missing ".

    I now have the qmail-smtpd running for more that 1 second.
    [root@quota root]# qmailctl stat
    /service/qmail-send: up (pid 2304) 95690 seconds
    /service/qmail-send/log: up (pid 24655) 0 seconds
    /service/qmail-smtpd: up (pid 830) 95973 seconds
    /service/qmail-smtpd/log: up (pid 831) 95973 seconds
    messages in queue: 9
    messages in queue but not yet preprocessed: 10
    /service/qmail-pop3d: up (pid 24656) 0 seconds
    /service/qmail-pop3d/log: up (pid 24654) 0 seconds
    [root@quota root]#
    How do I get rid of the messages in queue?

    What should the email address of the user be?
    syntax
    =address:user:uid:gid:directory:dash:extension

    Is it tom@machinename.domain or is it
    [b]tom@domain[b/]?

    I can now telnet to both ports 25 and 110, POP3 and SMTP.

    When I send mail from Outlook it is send but not delivered. I guess it is stuck in the queue, either because of the configuration or user unknown. I expected a message to be returned, if the user cannot be found on the server.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •