установлено
FreeBSD 8.1-RELEASE
MySQL 5.1.51
DBMail version 2.2.16-------------------------------------------
/usr/local/etc/dbmail.conf
---------------------------
[DBMAIL]
driver = mysql
authdriver = sql
host = localhost
sqlport = 3306
sqlsocket = /tmp/mysql.sock
user = dbmail
pass = 123456
db = dbmail
table_prefix = dbmail_
encoding = utf8
default_msg_encoding = utf8
postmaster = buka10@bk.ru
sendmail = /usr/sbin/sendmail
TRACE_SYSLOG = 3
TRACE_STDERR = 1
EFFECTIVE_USER = nobody
EFFECTIVE_GROUP = nogroup
BINDIP = *
NCHILDREN = 2
MAXCHILDREN = 10
MINSPARECHILDREN = 2
MAXSPARECHILDREN = 4
MAXCONNECTS = 10000
MAX_ERRORS = 500
TIMEOUT = 300
login_timeout = 60
RESOLVE_IP = no
logfile = /var/log/dbmail.log
errorlog = /var/log/dbmail.err
pid_directory = /var/run
state_directory = /var/run
#library_directory = /usr/lib/dbmail
query_time_info = 10
query_time_message = 20
query_time_warning = 30
[SMTP]
[LMTP]
PORT = 24
[POP]
PORT = 110
POP_BEFORE_SMTP = no
[IMAP]
PORT = 143
TIMEOUT = 4000
IMAP_BEFORE_SMTP = no
# idle_timeout = 30
# capability = IMAP4 IMAP4rev1 AUTH=LOGIN ACL NAMESPACE CHILDREN SORT QUOTA THREAD=ORDEREDSUBJECT UNSELECT IDLE
---------------------------------------------------
/etc/rc.conf
------------
keymap="ru.koi8-r"
sshd_enable="YES"
ifconfig_em0="inet 192.168.1.5 netmask 255.255.255.0"
defaultrouter="192.168.1.1"
mysql_enable="YES"
dbmail_imapd_enable="YES"
dbmail_pop3d_enable="YES"
dbmail_lmtpd_enable="YES"
-------------------------------------------------
GRANT ALL ON dbmail.* TO 'dbmail'@'localhost' IDENTIFIED BY '123456';
-------------------------------------------------
mysql> use dbmail;
mysql> show tables;
+---------------------------+
| Tables_in_dbmail |
+---------------------------+
| dbmail_acl |
| dbmail_aliases |
| dbmail_auto_notifications |
| dbmail_auto_replies |
| dbmail_ccfield |
| dbmail_datefield |
| dbmail_envelope |
| dbmail_fromfield |
| dbmail_headername |
| dbmail_headervalue |
| dbmail_mailboxes |
| dbmail_messageblks |
| dbmail_messages |
| dbmail_pbsp |
| dbmail_physmessage |
| dbmail_referencesfield |
| dbmail_replycache |
| dbmail_replytofield |
| dbmail_sievescripts |
| dbmail_subjectfield |
| dbmail_subscription |
| dbmail_tofield |
| dbmail_usermap |
| dbmail_users |
+---------------------------+
24 rows in set (0.00 sec)
---------------------------------------------------
# sockstat
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
tarpedo sshd 1015 3 tcp4 192.168.1.5:22 192.168.1.2:62181
tarpedo sshd 1015 4 stream -> ??
root sshd 1012 3 tcp4 192.168.1.5:22 192.168.1.2:62181
root sshd 1012 5 stream -> ??
root login 989 3 dgram -> /var/run/logpriv
smmsp sendmail 918 3 dgram -> /var/run/log
root sendmail 914 3 tcp4 127.0.0.1:25 *:*
root sendmail 914 4 dgram -> /var/run/logpriv
root sshd 906 3 tcp6 *:22 *:*
root sshd 906 4 tcp4 *:22 *:*
mysql mysqld 851 10 tcp4 *:3306 *:*
mysql mysqld 851 12 stream /tmp/mysql.sock
root syslogd 545 4 dgram /var/run/log
root syslogd 545 5 dgram /var/run/logpriv
root syslogd 545 6 udp6 *:514 *:*
root syslogd 545 7 udp4 *:514 *:*
root devd 423 5 stream /var/run/devd.pipe