установлено
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
проблема:# ./dbmail-imapd start
Starting dbmail_imapd.
# ./dbmail-imapd status
dbmail_imapd is not running.тоже самое и с pop3 и с lmtp демонами
> проблема:
> # ./dbmail-imapd start
> Starting dbmail_imapd.
> # ./dbmail-imapd status
> dbmail_imapd is not running.
> тоже самое и с pop3 и с lmtp демонамиsh -x для скриптов или внутрь скрипта set -x
и смотрите код возврата, ну или руками запускайте демон и смотрите код возврата,
затем truss или gdb
# cd /usr/local/sbin
# ./dbmail-imapd -h
*** dbmail-imapd ***
This daemon provides Internet Message Access Protocol 4.1 services.
See the man page for more info.Common options for all DBMail daemons:
-f file specify an alternative config file
-p file specify an alternative runtime pidfile
-s file specify an alternative runtime statefile
-n do not daemonize (no children are forked)
-D do not daemonize, do not detach from console
-v verbose logging to syslog and stderr
-V show the version
-h show this help message# ./dbmail-imapd
# ./dbmail-imapd -f /usr/local/etc/dbmail.conf -p /var/run/dbmail-imapd.pid -v
Oct 01 15:15:06 dbmail-imapd[1087]: Debug:[serverparent] serverparent.c,LoadServerConfig(+267): server will create [2] children
Oct 01 15:15:06 dbmail-imapd[1087]: Debug:[serverparent] serverparent.c,LoadServerConfig(+280): children will make max. [10000] connections
Oct 01 15:15:06 dbmail-imapd[1087]: Debug:[serverparent] serverparent.c,LoadServerConfig(+293): timeout [4000] seconds
Oct 01 15:15:06 dbmail-imapd[1087]: Debug:[serverparent] serverparent.c,LoadServerConfig(+305): login_timeout [60] seconds
Oct 01 15:15:06 dbmail-imapd[1087]: Debug:[serverparent] serverparent.c,LoadServerConfig(+310): no value for SOCKET in config file
Oct 01 15:15:06 dbmail-imapd[1087]: Debug:[serverparent] serverparent.c,LoadServerConfig(+313): socket []
Oct 01 15:15:06 dbmail-imapd[1087]: Debug:[serverparent] serverparent.c,LoadServerConfig(+325): binding to PORT [143]
Oct 01 15:15:06 dbmail-imapd[1087]: Debug:[serverparent] serverparent.c,LoadServerConfig(+346): binding to IP [*]
Oct 01 15:15:06 dbmail-imapd[1087]: Debug:[serverparent] serverparent.c,LoadServerConfig(+353): no value for BACKLOG in config file. Using default value [16]
Oct 01 15:15:06 dbmail-imapd[1087]: Debug:[serverparent] serverparent.c,LoadServerConfig(+367): not resolving client IP
Oct 01 15:15:06 dbmail-imapd[1087]: Debug:[serverparent] serverparent.c,LoadServerConfig(+381): Disabling IMAP-before-SMTP
Oct 01 15:15:06 dbmail-imapd[1087]: Debug:[serverparent] serverparent.c,LoadServerConfig(+393): effective user shall be [nobody]
Oct 01 15:15:06 dbmail-imapd[1087]: Debug:[serverparent] serverparent.c,LoadServerConfig(+405): effective group shall be [nogroup]
Oct 01 15:15:06 dbmail-imapd[1087]: Debug:[serverparent] serverparent.c,LoadServerConfig(+417): will maintain minimum of [2] spare children in reserve
Oct 01 15:15:06 dbmail-imapd[1087]: Debug:[serverparent] serverparent.c,LoadServerConfig(+429): will maintain maximum of [4] spare children in reserve
Oct 01 15:15:06 dbmail-imapd[1087]: Debug:[serverparent] serverparent.c,LoadServerConfig(+441): will allow maximum of [10] children# sockstat
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
tarpedo sshd 1006 3 tcp4 192.168.1.5:22 192.168.1.2:64345
tarpedo sshd 1006 4 stream -> ??
root sshd 1001 3 tcp4 192.168.1.5:22 192.168.1.2:64345
root sshd 1001 5 stream -> ??
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
>[оверквотинг удален]
> root syslogd 545
> 6 udp6 *:514
>
> *:*
> root syslogd 545
> 7 udp4 *:514
>
> *:*
> root devd
> 423 5 stream /var/run/devd.pipeи что?
вродебы как бы и работает все, никаких ошибок, но при этом не запускается...кстати BACKLOG и SOCKET нет и в дефолтном конфиге...
> вродебы как бы и работает все, никаких ошибок, но при этом не
> запускается...
> кстати BACKLOG и SOCKET нет и в дефолтном конфиге...http://www.opennet.me/openforum/vsluhforumID1/89810.html
>> вродебы как бы и работает все, никаких ошибок, но при этом не
>> запускается...
>> кстати BACKLOG и SOCKET нет и в дефолтном конфиге...
> http://www.opennet.me/openforum/vsluhforumID1/89810.htmlзабиндилось что б ему. огромное спасибо)
буду крутить его в екзиму)
>>> вродебы как бы и работает все, никаких ошибок, но при этом не
>>> запускается...
>>> кстати BACKLOG и SOCKET нет и в дефолтном конфиге...
>> http://www.opennet.me/openforum/vsluhforumID1/89810.html
> забиндилось что б ему. огромное спасибо)
> буду крутить его в екзиму)удачи