Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Confused - qmail does not send (it seems) 1

Status
Not open for further replies.

BIS

Technical User
Jun 1, 2001
1,893
NL
Hallo All,
I have set up a mail server as per instructions in the now famous I set it up on the LAN, with an IP of 10.2.0.100, subnet 255.255.0.0.
Testing it on the LAN seemed to work.
I then moved it to production, gave it a real ip, real broadcast and gateway etc as was the old mailserver.
I can now receive mails from the outside, but I seem to be unable to send...
/var/qmail/bin/qmail-qstat gives a whole bunch of mails in queue (0 in the 'not yet preprocessed' part) and they just seem to sit there.
Any ideas on where to start checking?
Is it true that as I am using vpopmail, my locals file in /var/qmail/control should be empty?
Do I need a 'defaultdelivery' in /var/qmail/control?

Any help or pointers much appreciated...
 
Yes, 'locals' should be empty.
Yes, you need a 'defaultdelivery' file
You should NOT have an 'smtproutes' file unless you know you need one.
You MUST be able to resolve the MX/IP records for the external hosts you are trying to mail to. Try using "dig" to see if your /etc/resolv.conf is setup correctly to resolve the external hosts.

you can issue 'svc -a qmail-send' to immediately attempt to resend your entire queue of outbound mail once you fix these things.

Surfinbox.com Business Internet Services - National Dialup, DSL, T-1 and more.
 
thedaver,
Many thanks - I really appreciate your help (again...)
DNS is fine, dig is no problem.
I am tryimg to find out why I need a defaultdelivery file. My domains are all virtual, and I though that defaultdelivery only applied to locals? Anyway, I will try this out. What is the syntax for the defaultdelivery file?
I do not have an 'smtproutes' file by the way.
 
From DJB:

If .qmail is completely empty (0 bytes long), or does not exist, qmail-local follows the defaultdelivery instructions
set by your system administrator; normally defaultdelivery
is ./Mailbox, so qmail-local appends the mail message to
Mailbox in mbox format.

You need to set "defaultdelivery" file to contain

./Mailbox


This isn't affecting your outbound, but is an important setting for vpopmail.


Please send a test message somewhere off-site and send an excerpt of your /var/qmail/logs/qmail-smtpd/current log from that time.

Surfinbox.com Business Internet Services - National Dialup, DSL, T-1 and more.
 
Thanks. But I am using Maildir in vpopmail, so should my 'defaultdelivery' then not be something like
./Maildir

?If I put it to ./Maildir, then how will qmail know that it has to put the mail in /home/vpopmail/domains/mydomain/$user/Maildir folder?

Sorry, I am just trying to get to grips with this whole setup.

 
Sorry, not enough caffeine in the AM here.
YEs, defaultdelivery should say

./Maildir

for vpopmail.
My bad.

Surfinbox.com Business Internet Services - National Dialup, DSL, T-1 and more.
 
I would definately buy you all the coffee you could ask for - but I have a feeling you may be on the other side of the pond and I am here in old Europe.

Many thanks for your help yet again, much appreciated.
 
Hmmm,

After a svc -a qmail-send I get this:

svc: warning: Unable to chdir to qmail-send: file does not exist

Any idea what this means?
 
this says that /service/qmail-send does not exist.

you need to symlink in the folder with the 'run' file into the /service folder in order for 'svc' to do its job.

Also, this may reflect that you have incorrect perms on the folder even though the symlink is available.

Remember, qmail is paranoid/careful/deliberate about file/folder permissions used to run the various processes.

 
Thanks,
Yes I thought something like that. Here is the output of ll /service

total 0
lrwxrwxrwx 1 root root 32 Mar 15 15:20 qmail-pop3d -> /var/qmail/supervise/qmail-pop3d
lrwxrwxrwx 1 root root 31 Mar 15 15:20 qmail-send -> /var/qmail/supervise/qmail-send
lrwxrwxrwx 1 root root 32 Mar 15 15:20 qmail-smtpd -> /var/qmail/supervise/qmail-smtpd

Does that look OK?
 
Ooops,, posted too soon. Owner and group here are root is that OK?

Also, it seems to take forever for qmail-send to empty the queue (as seen "in qmailctl stat"), however if I from the command line do a "echo to: me@mydomain.com | /var/qmail/bin/qmail-inject" the mail flys of immediately. What could cause this?

I am digging around in newsgroups and what have you, but any pointers would be much appreciated.
 
STOP !

Actually everyting is working - the slowness turned out to be a DNS issue (with the help of the dear people in charge of the firewall). Qmail rocks now. Thanks for all the help.

I still cannot svc -a qmail-send as described above though, the symlinks look ok to me...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top