QMail-ToasterMain Page | About | Help | FAQ | Special pages | Log in

Printable version | Disclaimers | Privacy policy

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 ~]#

The following webpage describes how to further test SMTP AUTH connections. http://qmail.jms1.net/test-auth.shtml

This webpage also describes how to further test SMTP AUTH connections. http://www.webpan.com/customers/Email/SMTP_Authentication_Telnet_Test.htm

[edit] No Menus etc

If you are missing menus when browsing to http://webhost/admin-toaster/ then you have PHP globals turned off and PHP short open tags off (both are good security measures)

these probably should be submitted as bugs

apply these patches to the shown files

/usr/share/toaster/htdocs/admin/index.php

 1c1
 < <?
 ---
 > <?php
 55c55
 <   <form action="<? print $PHP_SELF; ?>" method="POST" onSubmit="return CheckFormChangePassword(this)">
 ---
 >   <form action="<?php print $_SERVER[PHP_SELF]; ?>" method="POST" onSubmit="return CheckFormChangePassword(this)">
 71c71
 <       <td colspan="2"><? print_date(); ?></td>
 ---
 >       <td colspan="2"><?php print_date(); ?></td>
 81c81
 <       <? print_change_passwd($_POST['oldpasswd'], $_POST['newpasswd'], $_POST['newpasswd2']); ?>
 ---
 >       <?php print_change_passwd($_POST['oldpasswd'], $_POST['newpasswd'], $_POST['newpasswd2']); ?>
 87c87
 <     <tr>
 ---
 >     <tr> 
 89c89
 <       <? print_quick_go(); ?>      
 ---
 >       <?php print_quick_go(); ?>      
 117c117
 <         <? print_updates(); ?>
 ---
 >         <?php print_updates(); ?>

/usr/share/toaster/include/admin.inc.php

 1c1
 < <?
 ---
 > <?php

[edit] Duplicate Email from Mailing List

# cat /etc/cron.daily/sa-bayes-expire
#!/bin/sh
# written 11/17/06 by Eric 'shubes' <ejs@shubes.net>
# force journal sync and expiration of spamassassin bayes database
#
sa-learn -u vpopmail --force-expire
chown vpopmail:vchkpw /home/vpopmail/.spamassassin/bayes_toks
#

Retrieved from "http://wiki.qmailtoaster.com/index.php/Troubleshooting"

This page has been accessed 8,159 times. This page was last modified 06:40, 26 November 2009. Content is available under GNU Free Documentation License 1.2.


Find

Browse
Main Page
Community portal
Current events
Recent changes
Random page
Help
Donations
Edit
Edit this page
Editing help
This page
Discuss this page
Post a comment
Printable version
Context
Page history
What links here
Related changes
My pages
Log in / create account
Special pages
New pages
File list
Statistics
Bug reports
More...