root@[moj /root] # echo "`uname` `uname -r`"
FreeBSD 4.2-RELEASE
I have installed:
qmail-1.03
qmail-contrib-0.1 (fast/dot-forward)
checkpassword-0.90
ucspi-tcp-0.88
daemontools-0.70
------------------------
My hostname is "moj.localhost" (its vmware machine). I am running
local DNS Server and domain is resolveable:
root@[moj /etc/namedb] # nslookup -q=mx moj.localhost
Server: localhost
Address: 127.0.0.1
moj.localhost preference = 10, mail exchanger = localhost
localhost nameserver = localhost
localhost internet address = 192.168.1.111
------------------------
Computer has assigned IP 192.168.1.111:
root@[moj /etc/namedb] # ifconfig lnc0 | grep inet
inet 192.168.1.111 netmask 0xffffff00 broadcast 192.168.1.255
------------------------
I'm running all qmail services via daemontools. In startup sequence:
root@[moj /etc/namedb] # cat /etc/rc.local
PATH=/usr/local/bin:/usr/sbin:/usr/bin:/bin csh -cf 'svscan /service &'
/var/qmail/rc
root@[SCREEN0.moj /var/qmail] # more rc
#!/bin/sh
# Using splogger to send the log through syslog.
# Using dot-forward to support sendmail-style ~/.forward files.
# Using qmail-local to deliver messages to ~/Mailbox by default.
exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start '|dot-forward .forward
./Maildir' splogger qmail&
------------------------
After boot are all services up and responding on their ports but! From
syslog:
Jan 28 01:36:07 moj qmail: 980645767.876530 alert: cannot start: qmail-send is already
running
Jan 28 01:36:08 moj qmail: 980645768.080208 alert: cannot start: qmail-send is already
running
Jan 28 01:36:08 moj qmail: 980645768.255287 alert: cannot start: qmail-send is already
running
Jan 28 01:36:08 moj qmail: 980645768.270074 alert: cannot start: qmail-send is already
running
Jan 28 01:36:08 moj qmail: 980645768.397515 alert: cannot start: qmail-send is already
running
Jan 28 01:36:08 moj qmail: 980645768.640280 alert: cannot start: qmail-send is already
running
Jan 28 01:36:08 moj qmail: 980645768.651857 alert: cannot start: qmail-send is already
running
Jan 28 01:36:08 moj qmail: 980645768.773373 alert: cannot start: qmail-send is already
running
Jan 28 01:36:08 moj qmail: 980645768.944330 alert: cannot start: qmail-send is already
running
Jan 28 01:36:09 moj qmail: 980645769.131186 alert: cannot start: qmail-send is already
running
Jan 28 01:36:09 moj qmail: 980645769.147822 alert: cannot start: qmail-send is already
running
I must:
svc -d /service/qmail/ :(
I don't see qmail-send in processes...
root@[moj /root] # pstree
init-+-cron
|-inetd-+-telnetd---tcsh---pstree
| `-telnetd---tcsh
|-named
|-perl
|-qmail-lspawn
|-2*[qmail-rspawn]
|-qmail-send-+-qmail-clean
| |-qmail-lspawn
| |-qmail-rspawn
| `-splogger
|-10*[qmail-start]
|-rwhod
|-sh---mysqld
|-svscan-+-4*[supervise---multilog]
| |-4*[supervise---tcpserver]
| `-supervise---supervise
+-syslogd
Output is same when I do: svc -u /service/qmail
or: svc -d /service/qmial
------------------------
Second problem is problem with local delivery. When I tried:
root@[moj /root] # echo to: root | /var/qmail/bin/qmail-inject
In syslog were:
Jan 28 01:42:33 moj qmail: 980646153.091524 new msg 9725
Jan 28 01:42:33 moj qmail: 980646153.102897 info msg 9725: bytes 203 from
<[EMAIL PROTECTED]> qp 4793 uid 0
Jan 28 01:42:33 moj qmail: 980646153.115406 starting delivery 1: msg 9725 to local
[EMAIL PROTECTED]
Jan 28 01:42:33 moj qmail: 980646153.121666 status: local 1/10 remote 0/20
Jan 28 01:42:33 moj qmail: 980646153.330201 delivery 1: success: did_1+0+1/
Jan 28 01:42:33 moj qmail: 980646153.338030 status: local 0/10 remote 0/20
Jan 28 01:42:33 moj qmail: 980646153.338217 end msg 9725
But via pop3d:
root@[moj /root] # t 0 110
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
+OK <[EMAIL PROTECTED]>
user root
+OK
pass x
+OK
stat
+OK 0 0
Directory structure via ls:
root@[moj /root] # ls -l Maildir
total 3
drwx------ 2 root wheel 512 Jan 27 13:47 cur
drwx------ 2 root wheel 512 Jan 27 13:47 new
drwx------ 2 root wheel 512 Jan 27 13:47 tmp
root@[moj /root] # more .qmail
./Maildir/
root@[moj /root] # ls -l Maildir/new Maildir/cur Maildir/tmp
Maildir/cur:
Maildir/new:
Maildir/tmp:
Hmm, where was that message delivered? :)
------------------------
Two questions:
1) How can I fix qmail-send problem?
2) What is wrong with root' Maildir?
--
TPS
more? http://tps.sk