Troubleshooting
From QMail-Toaster
Contents |
[edit] DNS
Typical /etc/hosts: 127.0.0.1 server.yourdomain.com localhost.localdomain localhost
Typical /etc/resolv.conf without dns caching: search yourdomain.com nameserver ip-address-of-first-nameserver nameserver ip-address-of-second-nameserver
Typical /etc/resolv.conf with dns caching: search yourdomain.com nameserver 127.0.0.1
[edit] Firewall
Note: this mail server will have all the tools necessary for a hacker to compile whatever tool they need to do their 'business', so it is very important to secure this server using iptables and/or some other form of firewall in front of it. Don't put this server 'naked' on the internet without some kind of firewall/hardening/strong passwords. This is a direct result of DJB's licensing that prohibits distributing his software in binary form...that is to say you have to compile it for the software to work, typically on the machine itself. Most public-facing servers have only the software necessary to function as intended...definitely no compilation tools included...as a 'best practice'.
Common services allowed by port:
tcp: 22 #ssh-you might want to listen on a different port for ssh
25 #smtp
53 #dns
80 #http(squirrelmail)
110 #pop3
143 #imap
443 #https(squirrelmail)
465 #smtp-ssl
587 #ssl-submit(may be req'd for OE clients for ssl connections)
993 #imap-ssl
995 #pop3-ssl
udp: 53 #dns
123 #ntp
[edit] Log Files
QmailToaster logs are at: /var/logs/qmail/*
Freshclam log: /var/logs/clamav
Qmail log files have human-unfriendly timestamps. Go here for an explanation [1], or GO HERE [2] to get a helper script, it's highly recommended!
[edit] Qmailadmin
[edit] No Menu in qmailadmin, even with postmaster
I have found that by default when you create a new domain, the following are populated with a zero by default.
- Accounts (0 disables this feature)
- Forwards (0 disables this feature)
- Aliases (0 disables this feature)
- Autoresponders (0 disables this feature)
- Mailing Lists (0 disables this feature)
- Quota in bytes (NOQUOTA for unlimited)
If you go back to the domain and just remove the zero's from the line and leave them blank and save it as that, it should bring the menu back. Also Note - for the Quota, you either need to put NOQUOTA or enter an actual number other than zero otherwise you won't be able to receive any e-mail :) --Ryan 10/26/06
[edit] SMTP-AUTH
Test with telnet: [root@server ~]# telnet localhost 25 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. 220 server.yourdomain.com - Welcome to Qmail Toaster Ver. 1.2 smtp Server ESMTP
After connect enter: ehlo localhost ehlo localhost 250-server.yourdomain.com - Welcome to Qmail Toaster Ver. 1.2 smtp Server 250-STARTTLS 250-PIPELINING 250-8BITMIME 250-SIZE 20971520 250 AUTH LOGIN PLAIN CRAM-MD5
Verify the above return data, then enter: quit [root@server ~]# quit [root@server ~]#