Apologies as I am a complete newbie at the toaster setup.
I have installed the latest toaster on FreeBSD 6.2 and everything eventually installed fine.
Now when I get to the testing part of the installation and try to send a mail from the shell to my new mail domain which I have created it doesn't get anywhere.
The messages get into the qmail queue (/var/qmail/queue/mess/) and just sits there. If I connect to the server with my pop client to collect the mail nothing is in the inbox at all.
When i run the toaster_setup.pl -s test is tests mostly ok except for a few logfiles which are missing.
Can someone point me in the right direction to sort this out.
many thanks,
Simon
Here is the output of the test script..
[root@orion Mail-Toaster-5.06]# bin/toaster_setup.pl -s test
testing...
does qmail's home directory exist?
/var/qmail.........................................................ok
checking qmail directory contents
/var/qmail/alias...................................................ok
/var/qmail/boot....................................................ok
/var/qmail/control.................................................ok
/var/qmail/man.....................................................ok
/var/qmail/users...................................................ok
/var/qmail/bin.....................................................ok
/var/qmail/doc.....................................................ok
/var/qmail/queue...................................................ok
/var/qmail/configure...............................................ok
is the qmail rc file executable?
/var/qmail/rc......................................................ok
do the qmail users exist?
alias..............................................................ok
qmaild.............................................................ok
qmailp.............................................................ok
qmailq.............................................................ok
qmailr.............................................................ok
qmails.............................................................ok
do the qmail groups exist?
qmail..............................................................ok
qnofiles...........................................................ok
do the qmail alias files have contents?
/var/qmail/alias/.qmail-postmaster.................................ok
/var/qmail/alias/.qmail-root.......................................ok
/var/qmail/alias/.qmail-mailer-daemon..............................ok
checking daemontools binaries...
multilog...........................................................ok
softlimit..........................................................ok
setuidgid..........................................................ok
supervise..........................................................ok
svok...............................................................ok
svscan.............................................................ok
tai64nlocal........................................................ok
checking ucspi-tcp binaries...
tcprules...........................................................ok
tcpserver..........................................................ok
rblsmtpd...........................................................ok
tcpclient..........................................................ok
recordio...........................................................ok
tcpserver mysql support............................................ok
does supervise directory exist?
/var/qmail/supervise...............................................ok
/var/qmail/supervise/smtp..........................................ok
/var/qmail/supervise/send..........................................ok
/var/qmail/supervise/pop3..........................................ok
/var/qmail/supervise/submit........................................ok
do service directories exist?
/var/service.......................................................ok
/var/service/smtp..................................................ok
/var/service/send..................................................ok
/var/service/submit................................................ok
are the supervised services running?
find_the_bin: searching for svok
/var/service/smtp..................................................ok
/var/service/send..................................................ok
/var/service/submit................................................ok
do the logging directories exist?
...................................................................ok
pop3...............................................................ok
send...............................................................ok
smtp...............................................................ok
submit.............................................................ok
checking log files?
clean.log..........................................................ok
maildrop.log.......................................................ok
watcher.log........................................................ok
send/current.......................................................FAILED
smtp/current.......................................................FAILED
submit/current.....................................................FAILED
do vpopmail directories exist...
/usr/local/vpopmail................................................ok
/usr/local/vpopmail/bin............................................ok
/usr/local/vpopmail/domains........................................ok
/usr/local/vpopmail/etc/...........................................ok
/usr/local/vpopmail/include........................................ok
/usr/local/vpopmail/lib............................................ok
checking vpopmail binaries...
clearopensmtp......................................................ok
vaddaliasdomain....................................................ok
vadddomain.........................................................ok
valias.............................................................ok
vadduser...........................................................ok
vchkpw.............................................................ok
vchangepw..........................................................ok
vconvert...........................................................ok
vdeldomain.........................................................ok
vdelivermail.......................................................ok
vdeloldusers.......................................................ok
vdeluser...........................................................ok
vdominfo...........................................................ok
vipmap.............................................................ok
vkill..............................................................ok
vmkpasswd..........................................................ok
vmoddomlimits......................................................ok
vmoduser...........................................................ok
vpasswd............................................................ok
vpopbull...........................................................ok
vqmaillocal........................................................FAILED
vsetuserquota......................................................ok
vuserinfo..........................................................ok
do vpopmail libs exist...
/usr/local/vpopmail/lib/libvpopmail.a..............................ok
do vpopmail includes exist...
config.h...........................................................ok
vauth.h............................................................ok
vlimits.h..........................................................ok
vpopmail.h.........................................................ok
vpopmail_config.h..................................................ok
checking vpopmail etc files...
inc_deps...........................................................ok
lib_deps...........................................................ok
tcp.smtp...........................................................ok
tcp.smtp.cdb.......................................................ok
vlimits.default....................................................ok
vpopmail.mysql.....................................................ok
smtplog............................................................FAILED
You have 10 seconds to respond.
skip the network listener tests?(y/n): n
find_the_bin: searching for netstat
checking for listening tcp ports
smtp...............................................................ok
http...............................................................ok
pop3...............................................................ok
imap...............................................................ok
https..............................................................ok
submission.........................................................ok
pop3s..............................................................FAILED
imaps..............................................................FAILED
checking for udp listeners
snmp...............................................................ok
checking cron processes
/usr/local/vpopmail/bin/clearopensmtp..............................ok
smtplog............................................................FAILED
open file: /var/log/mail/send/current No such file or directory
/usr/local/sbin/toaster-watcher.pl.................................ok
/usr/local/share/sqwebmail/cleancache.pl...........................ok
UpdateDiskActivitySNMP: searching for disk da0 ................... FAILED
/usr/local/www/cgi-bin/rrdutil.cgi -a update.......................ok
rrdutil_test: checking snmpd.conf...................................ok
rrdutil_test: checking rrdutil.conf.................................ok
Parsing through the file /var/qmail/users/assign...done.
check_rcpthosts: checking your rcpthost files.
.Congrats, your rcpthosts is correct!
You have 10 seconds to respond.
skip the mail scanner tests?(y/n): timed out!
qmail-scanner disabled, skipping test.
testing simscan...
sending a clean message - should arrive unaltered
qmail-inject: fatal: mail server temporarily rejected message (#4.3.0)
Sending .com test attachment - should fail.
qmail-inject: fatal: mail server temporarily rejected message (#4.3.0)
Sending the EICAR test virus - should fail.
qmail-inject: fatal: mail server temporarily rejected message (#4.3.0)
Sending ClamAV test virus - should fail.
qmail-inject: fatal: mail server temporarily rejected message (#4.3.0)
Sending a sample spam message - should fail
qmail-inject: fatal: mail server temporarily rejected message (#4.3.0)
For more ways to test your Virus scanner, go here:
http://www.testvirus.org/
You have 10 seconds to respond.
skip the authentication tests?(y/n): timed out!
test_auth: testing domain is: l0fty.com.
port_install: p5-Mail-POP3Client....................................ok (p5-Mail-POP3Client-2.17)
port_install: p5-Mail-IMAPClient....................................ok (p5-Mail-IMAPClient-2.2.9)
port_install: p5-Net-SMTP_auth......................................ok (p5-Net-SMTP_auth-0.08)
port_install: p5-IO-Socket-SSL......................................ok (p5-IO-Socket-SSL-1.09)
imap_test_auth: checking Mail::IMAPClient ........................ ok
imap_test_auth: authenticate IMAP user with plain passwords.........ok
testing an authentication that should fail..........................ok
imap_test_auth: checking IO::Socket::SSL ......................... ok
couldn't connect.
pop3_test_auth: checking Mail::POP3Client ........................ ok
pop3_auth: POP3 server with APOP passwords..........................FAILED
pop3_auth: POP3 server with CRAM-MD5 passwords......................FAILED
pop3_auth: POP3 SSL server with CRAM-MD5 passwords..................FAILED
pop3_auth: POP3 SSL server with APOP passwords......................FAILED
pop3_auth: POP3 server with plain text passwords....................ok
Broken pipe: 13
check if your domains actually exist and that mysql is correctly running
also, make sure you setup in the toaster config files your test user correctly.
try running "qmail queue" and see what email it has waiting
I have checked the following..
[root@orion root]# qmail queue
messages in queue: 12
messages in queue but not yet preprocessed: 12
mysql is running properly and I have the following databases.. (any missing?)
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| spamassassin |
| test |
| vpopmail |
+--------------------+
The domain I am testing with is showing up correctly on this machine..
; <<>> DiG 9.3.3 <<>> l0fty.com mx
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44739
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2
;; QUESTION SECTION:
;l0fty.com. IN MX
;; ANSWER SECTION:
l0fty.com. 3600 IN MX 10 mail.l0fty.com.
;; AUTHORITY SECTION:
l0fty.com. 3600 IN NS ns0.l0fty.com.
;; ADDITIONAL SECTION:
mail.l0fty.com. 3600 IN A 192.168.1.8
ns0.l0fty.com. 3600 IN A 192.168.1.8
;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Oct 26 08:47:34 2007
;; MSG SIZE rcvd: 98
Anything else i can check? I have run out of ideas..
does the messages in the queue show the correct person?
it almost acts as if the qmail-deliver isn't running correctly
try running qmail doqueue and see what happens
check your /var/log/mail/smtp and /var/log/mail/send log files and see if there's anything in there.
messages look like they are destined to the correct test user I have designated.
--------------------
[root@orion 21]# pwd
/var/qmail/queue/mess/21
[root@orion 21]# more 2167196
Received: (qmail 14166 invoked by uid 0); 22 Oct 2007 10:44:14 -0000
Date: 22 Oct 2007 10:44:14 -0000
Message-ID: <20071022104414.14165.qmail@mail.link-it.co.za>
From: root@mail.link-it.co.za
To: simon@l0fty.com
Subject: test
testing
--------------------
if I run the qmail doqueue I get
[root@orion var]# qmail doqueue
Sending ALRM signal to qmail-send.
and I have checked the var directory (by touching a test file then using a find /var -newer testfile) for any changes in files and there is nothing at all. (apart from a binary file or two in qmail/supervise)
under /var/log/mail/smtp/ there is a single file called smtplog which looks like a perl script and starts..
#!/usr/local/bin/perl
eval 'exec /usr/local/bin/perl -S $0 ${1+"$@"}'
if 0; # not running under some shell
use strict;
use warnings;
#
# $Id: maillogs matt Exp $
#
under /var/log/mail I have the following..
I have a send directory and a sendlog file in it which appears to be a perl script
I have a sendlog@ which points to /var/log/mail/2007/10/28/sendlog which doesn't exist.
This is puzzling me to say the least. where are my logs?
Thanks for the input
it looks to me like your supervised processes aren't running.
if you do a ps aux | grep supervise you should see a list of them including:
supervise smpt
supervise send
supervise submit
etc..
If you don't (or even if you do) try a services stop then services start. - see if that gives you any messages back
[root@orion simon]# ps aux | grep supervise
root 700 0.0 0.1 1256 652 ?? I Tue08AM 0:00.00 supervise smtp
root 701 0.0 0.1 1256 652 ?? S Tue08AM 0:44.86 supervise log
root 702 0.0 0.1 1256 652 ?? I Tue08AM 0:00.68 supervise send
root 703 0.0 0.1 1256 652 ?? S Tue08AM 0:46.67 supervise log
root 704 0.0 0.1 1256 652 ?? I Tue08AM 0:00.01 supervise submit
root 705 0.0 0.1 1256 652 ?? S Tue08AM 0:48.90 supervise log
root 41885 0.0 0.1 1592 1028 p1 S+ 4:10PM 0:00.00 grep supervise
when I restart nothing new..
[root@orion simon]# services stop
Stopping svscan.
[root@orion simon]# services start
Starting svscan.
[root@orion simon]# ps aux | grep supervise
root 43014 0.0 0.1 1256 616 ?? S 4:17PM 0:00.00 supervise smtp
root 43015 0.0 0.1 1256 652 ?? S 4:17PM 0:00.00 supervise log
root 43016 0.0 0.1 1256 652 ?? S 4:17PM 0:00.00 supervise send
root 43017 0.0 0.1 1256 652 ?? S 4:17PM 0:00.00 supervise log
root 43018 0.0 0.1 1256 616 ?? S 4:17PM 0:00.00 supervise submit
root 43019 0.0 0.1 1256 652 ?? S 4:17PM 0:00.00 supervise log