Thread: Help with qmail

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    2
    Rep Power
    0

    Help with qmail


    I am trying to implement a simple qmail server, but since it is odd in many ways, it isn't working properly. I'm sure it is something stupid, but I can't seem to get it. qmail is installed using xinetd......not using ucpsi-tcp or tcpservers. I see the 4 qmail processes and smtp is listening on port 25. In addition, I do not have DNS. The servers running qmail are linux.

    The basics of the design:
    - a mail server sends a message to server1
    - server1 receives the message and puts it in a file/directory
    - a script on server1 will take the message, parse off any smtp header info and send (via netcat) to server2
    - server2 will ensure the message is "ok" and pass on to server3
    - server3 will have a script that is listening for messages and drop it into a file/directory
    - server3 running qmail that will send out that message to 2 known servers.

    Right now, I have a test box that is simulating the mail server. It has qmail installed. I am trying to send a message from test box to server1 via:
    qmail-inject -f root@1.2.3.4 tech@5.6.7.8 < testfile

    I get CNAME error.

    The control files are the following:
    test box:
    locals and me: [1.2.3.4]
    smtproutes: [5.6.7.8]

    On server1:
    locals and me: [5.6.7.8]
    rcpthosts: [1.2.3.4]
    [5.6.7.8]

    I figure if I can get this part working to server1, I will be able to figure out how to get server3 to send out the message....hopefully!

    This is not a full blown e-mail processing/server implementation. This is going to process messages/e-mail 1 at a time, and not very often......it isn't going to be bombarded by 100s.

    The actual error in the log is:
    delivery #: deferral: CNAME_lookup_failed_temporarily
    This obviously has to do with DNS, but I'm not using DNS. Can you use qmail w/out DNS? I have the IP addresses in the control files. Do I need name and IP Address? Is there a way to tell qmail NOT to rely on DNS?

    Thanks for any advice!
    Last edited by mscdubb; September 16th, 2012 at 09:49 AM. Reason: More Info.
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    2
    Rep Power
    0

    More?


    Can you use server:ip address in the control files?

    If and when I get this working, how do I send ALL incoming mail to one directory? The incoming mail might be going to various names, but I want to send it all to the same directory.

    Thanks!

IMN logo majestic logo threadwatch logo seochat tools logo