September 15th, 2012, 04:06 PM
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 firstname.lastname@example.org email@example.com < testfile
I get CNAME error.
The control files are the following:
locals and me: [220.127.116.11]
locals and me: [18.104.22.168]
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 10:49 AM.
Reason: More Info.
September 19th, 2012, 08:46 AM
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.