Mail toaster config

It is Wednesday 18 September 2019 - 14:48:18.
Your IP address is 18.206.16.123

news personal professional computing outdoors reference travel humor

Home

Favorites

Web Mail Calendar Mail Toaster Photo Galleries TNPI NicTool The Art Farm

My

My Yahoo PayPal UserFriendly Dilbert

Weather

Atlanta UG
Cadillac UG
Seattle UG
Garland UG

News

Mac News Computer News Dealmac Apple Google News

Forums

TNPI Support URON.net Simerson Renaissance Mac POS

FreeBSD Mail Toaster Configuration (v2.5)
Author: Matt Simerson.

[ Install | Configure | Filter | FAQ | ChangeLog | Mailing List | List Archives ]

Free support is only available on the mailing list. Support is provided by the author on a fee basis. Contact for rates.

Contributions: Express ideas on the mailing list. If you are anxious to express your gratitude, feel free to purchase something from my wish list.


Step 1: Configure DNS

Mail routing is very dependent on DNS. If you don't have dns configured properly, mail will not work as expected. You will need to get DNS configured for each domain you want to collect mail for. For some helpful DNS links have a look at my dns links.

Step 2: Configure MySQL

mysql -u root -p
CREATE DATABASE vpopmail;
GRANT ALL PRIVILEGES ON vpopmail.* TO vpopmail@"mail.example.com" IDENTIFIED BY 'secret';
use vpopmail;
CREATE TABLE relay ( ip_addr char(18) NOT NULL default '',
timestamp char(12) default NULL,
name char(64) default NULL,
PRIMARY KEY (ip_addr)
) TYPE=ISAM PACK_KEYS=1;
quit;
mysql -u vpopmail -h db.example.com -p (get this working before you continue)

Adding Mail Domains

~vpopmail/bin/vadddomain example.com [password]

Supervise/Svscan Startup

/usr/local/src/toaster_setup.pl -s supervise

Set up logging dirs.

/usr/local/src/toaster_setup.pl -s maillogs

Fire up qmail

rehash
services start

What you should see in the process list:
# ps au

USER PID TT STAT STARTED TIME COMMAND
root 33322 p1 S 11:14PM 0:00.02 svscan
root 33323 p1 I 11:14PM 0:00.01 supervise send
root 33324 p1 I 11:14PM 0:00.01 supervise log
root 33325 p1 I 11:14PM 0:00.01 supervise smtp
root 33326 p1 I 11:14PM 0:00.01 supervise log

OK, now you're ready to have some real fun. Point a web browser at http://mail.example.com/cgi-bin/qmailadmin. Log in with postmaster, example.com, and the test password. Add a user named "user". Time to send some email:

# mail user@example.com
Subject: test
test
.
# ls ~vpopmail/domains/example.com/user/Maildir/*

You should see a file in the new directory. If not, tail /var/log/maillog and figure out why.

Now we want to get our POP3-SSL and IMAP servers working. We can either reboot or start the servers manually:

imap start
pop3 start
imapssl start
pop3ssl start

Domain administrators can add/edit/delete users, mailing lists, autoresponders, mail forwarding, and aliases by logging into the qmailadmin interface:

http://mail.example.com/cgi-bin/qmailadmin
https://mail.example.com/cgi-bin/qmailadmin

SYSTEM ADMIN stuff.

maildomain perl script - Front end to nearly everything you can do with the vpopmail programs.

Convert Multilog date stamps to human readable date stamps

# tai64nlocal < logfile > qmaillog.tmp

Statistics about your mail queue:

Feed your qmail-send output through matchup and pipe it through a stats processor:
# /usr/local/qmailanalog/bin/matchup < /var/log/mail/send/current | /usr/local/qmailanalog/bin/z*
where z* is one of the following
# zddist, zdeferrals, zfailures, zoverall, zrecipients, zrhosts, zrxdelay, zsenders, zsuccesses, zsuids

Modify the HTML interface:

Sqwebmail: html temples live in /usr/local/share/sqwebmail/html/en-us/
qmailadmin: html templates live in /usr/local/share/qmailadmin/html/

Other Tweaks:

Sqwebmail Calendar: echo "local" > /usr/local/share/sqwebmail/calendarmode


© Matt Simerson 1999-2004 - Email suggestions or updates.