主题: iredapd没有启动脚本,也不开机自启

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.9.6
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):mysql
- 使用的 Linux/BSD 发行版名称及版本号:centos-release-7-0.1406.el7.centos.2.3.x86_64
- 与您的问题相关的日志信息:
====
如题,新装的0.9.6,init.d里没有相关启动脚本,开机也不启动。

回复: iredapd没有启动脚本,也不开机自启

从0.9.5版本里复制了脚本过来,现在能发邮件,但收件箱为空。

回复: iredapd没有启动脚本,也不开机自启

Apr 25 09:53:20 mail dovecot: imap(12312300000@ctsat.com): Debug: Loading modules from directory: /usr/lib64/dovecot
Apr 25 09:53:20 mail dovecot: imap(12312300000@ctsat.com): Debug: Module loaded: /usr/lib64/dovecot/lib01_acl_plugin.so
Apr 25 09:53:20 mail dovecot: imap(12312300000@ctsat.com): Debug: Module loaded: /usr/lib64/dovecot/lib02_imap_acl_plugin.so
Apr 25 09:53:20 mail dovecot: imap(12312300000@ctsat.com): Debug: Module loaded: /usr/lib64/dovecot/lib10_quota_plugin.so
Apr 25 09:53:20 mail dovecot: imap(12312300000@ctsat.com): Debug: Module loaded: /usr/lib64/dovecot/lib11_imap_quota_plugin.so
Apr 25 09:53:20 mail dovecot: imap(12312300000@ctsat.com): Debug: Module loaded: /usr/lib64/dovecot/lib20_mailbox_alias_plugin.so
Apr 25 09:53:20 mail dovecot: imap(12312300000@ctsat.com): Debug: Added userdb setting: plugin/master_user=12312300000@ctsat.com
Apr 25 09:53:20 mail dovecot: imap(12312300000@ctsat.com): Debug: Added userdb setting: plugin/quota_rule=*:bytes=1073741824
Apr 25 09:53:20 mail dovecot: imap(12312300000@ctsat.com): Debug: Effective uid=2000, gid=2000, home=/var/vmail/vmail1/ctsat.com/1/2/3/12312300000-2017.04.24.20.33.40/
Apr 25 09:53:20 mail dovecot: imap(12312300000@ctsat.com): Debug: Quota root: name=user backend=dict args=:proxy::quotadict
Apr 25 09:53:20 mail dovecot: imap(12312300000@ctsat.com): Debug: Quota rule: root=user mailbox=* bytes=1073741824 messages=0
Apr 25 09:53:20 mail dovecot: imap(12312300000@ctsat.com): Debug: Quota warning: bytes=1073741824 (100%) messages=0 reverse=no command=quota-warning 100 12312300000@ctsat.com
Apr 25 09:53:20 mail dovecot: imap(12312300000@ctsat.com): Debug: Quota warning: bytes=1020054732 (95%) messages=0 reverse=no command=quota-warning 95 12312300000@ctsat.com
Apr 25 09:53:20 mail dovecot: imap(12312300000@ctsat.com): Debug: Quota warning: bytes=966367641 (90%) messages=0 reverse=no command=quota-warning 90 12312300000@ctsat.com
Apr 25 09:53:20 mail dovecot: imap(12312300000@ctsat.com): Debug: Quota warning: bytes=912680550 (85%) messages=0 reverse=no command=quota-warning 85 12312300000@ctsat.com
Apr 25 09:53:20 mail dovecot: imap(12312300000@ctsat.com): Debug: Quota grace: root=user bytes=107374182 (10%)
Apr 25 09:53:20 mail dovecot: imap(12312300000@ctsat.com): Debug: dict quota: user=12312300000@ctsat.com, uri=proxy::quotadict, noenforcing=0
Apr 25 09:53:20 mail dovecot: imap(12312300000@ctsat.com): Debug: Namespace : type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/var/vmail/vmail1/ctsat.com/1/2/3/12312300000-2017.04.24.20.33.40//Maildir/:INDEX=/var/vmail/vmail1/ctsat.com/1/2/3/12312300000-2017.04.24.20.33.40//Maildir/
Apr 25 09:53:20 mail dovecot: imap(12312300000@ctsat.com): Debug: maildir++: root=/var/vmail/vmail1/ctsat.com/1/2/3/12312300000-2017.04.24.20.33.40//Maildir, index=, indexpvt=, control=, inbox=/var/vmail/vmail1/ctsat.com/1/2/3/12312300000-2017.04.24.20.33.40//Maildir, alt=
Apr 25 09:53:20 mail dovecot: imap(12312300000@ctsat.com): Debug: acl: initializing backend with data: vfile
Apr 25 09:53:20 mail dovecot: imap(12312300000@ctsat.com): Debug: acl: acl username = 12312300000@ctsat.com
Apr 25 09:53:20 mail dovecot: imap(12312300000@ctsat.com): Debug: acl: owner = 1
Apr 25 09:53:20 mail dovecot: imap(12312300000@ctsat.com): Debug: acl vfile: Global ACLs disabled
Apr 25 09:53:20 mail dovecot: imap(12312300000@ctsat.com): Debug: Namespace : type=shared, prefix=Shared/%u/, sep=/, inbox=no, hidden=no, list=children, subscriptions=yes location=maildir:%Lh/Maildir/:INDEX=%Lh/Maildir/Shared/%Ld/%Ln
Apr 25 09:53:20 mail dovecot: imap(12312300000@ctsat.com): Debug: shared: root=/var/run/dovecot, index=, indexpvt=, control=, inbox=, alt=
Apr 25 09:53:20 mail dovecot: imap(12312300000@ctsat.com): Debug: acl: initializing backend with data: vfile
Apr 25 09:53:20 mail dovecot: imap(12312300000@ctsat.com): Debug: acl: acl username = 12312300000@ctsat.com
Apr 25 09:53:20 mail dovecot: imap(12312300000@ctsat.com): Debug: acl: owner = 0
Apr 25 09:53:20 mail dovecot: imap(12312300000@ctsat.com): Debug: acl vfile: Global ACLs disabled
Apr 25 09:53:20 mail dovecot: imap(12312300000@ctsat.com): Debug: quota: quota_over_flag check: quota_over_script unset - skipping
Apr 25 09:53:20 mail dovecot: imap(12312300000@ctsat.com): Debug: acl vfile: file /var/vmail/vmail1/ctsat.com/1/2/3/12312300000-2017.04.24.20.33.40//Maildir/.Sent/dovecot-acl not found
Apr 25 09:53:22 mail dovecot: imap(12312300000@ctsat.com): Debug: Loading modules from directory: /usr/lib64/dovecot
Apr 25 09:53:22 mail dovecot: imap(12312300000@ctsat.com): Debug: Module loaded: /usr/lib64/dovecot/lib01_acl_plugin.so
Apr 25 09:53:22 mail dovecot: imap(12312300000@ctsat.com): Debug: Module loaded: /usr/lib64/dovecot/lib02_imap_acl_plugin.so
Apr 25 09:53:22 mail dovecot: imap(12312300000@ctsat.com): Debug: Module loaded: /usr/lib64/dovecot/lib10_quota_plugin.so
Apr 25 09:53:22 mail dovecot: imap(12312300000@ctsat.com): Debug: Module loaded: /usr/lib64/dovecot/lib11_imap_quota_plugin.so
Apr 25 09:53:22 mail dovecot: imap(12312300000@ctsat.com): Debug: Module loaded: /usr/lib64/dovecot/lib20_mailbox_alias_plugin.so
Apr 25 09:53:22 mail dovecot: imap(12312300000@ctsat.com): Debug: Added userdb setting: plugin/master_user=12312300000@ctsat.com
Apr 25 09:53:22 mail dovecot: imap(12312300000@ctsat.com): Debug: Added userdb setting: plugin/quota_rule=*:bytes=1073741824
Apr 25 09:53:22 mail dovecot: imap(12312300000@ctsat.com): Debug: Effective uid=2000, gid=2000, home=/var/vmail/vmail1/ctsat.com/1/2/3/12312300000-2017.04.24.20.33.40/
Apr 25 09:53:22 mail dovecot: imap(12312300000@ctsat.com): Debug: Quota root: name=user backend=dict args=:proxy::quotadict
Apr 25 09:53:22 mail dovecot: imap(12312300000@ctsat.com): Debug: Quota rule: root=user mailbox=* bytes=1073741824 messages=0
Apr 25 09:53:22 mail dovecot: imap(12312300000@ctsat.com): Debug: Quota warning: bytes=1073741824 (100%) messages=0 reverse=no command=quota-warning 100 12312300000@ctsat.com
Apr 25 09:53:22 mail dovecot: imap(12312300000@ctsat.com): Debug: Quota warning: bytes=1020054732 (95%) messages=0 reverse=no command=quota-warning 95 12312300000@ctsat.com
Apr 25 09:53:22 mail dovecot: imap(12312300000@ctsat.com): Debug: Quota warning: bytes=966367641 (90%) messages=0 reverse=no command=quota-warning 90 12312300000@ctsat.com
Apr 25 09:53:22 mail dovecot: imap(12312300000@ctsat.com): Debug: Quota warning: bytes=912680550 (85%) messages=0 reverse=no command=quota-warning 85 12312300000@ctsat.com
Apr 25 09:53:22 mail dovecot: imap(12312300000@ctsat.com): Debug: Quota grace: root=user bytes=107374182 (10%)
Apr 25 09:53:22 mail dovecot: imap(12312300000@ctsat.com): Debug: dict quota: user=12312300000@ctsat.com, uri=proxy::quotadict, noenforcing=0
Apr 25 09:53:22 mail dovecot: imap(12312300000@ctsat.com): Debug: Namespace : type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/var/vmail/vmail1/ctsat.com/1/2/3/12312300000-2017.04.24.20.33.40//Maildir/:INDEX=/var/vmail/vmail1/ctsat.com/1/2/3/12312300000-2017.04.24.20.33.40//Maildir/
Apr 25 09:53:22 mail dovecot: imap(12312300000@ctsat.com): Debug: maildir++: root=/var/vmail/vmail1/ctsat.com/1/2/3/12312300000-2017.04.24.20.33.40//Maildir, index=, indexpvt=, control=, inbox=/var/vmail/vmail1/ctsat.com/1/2/3/12312300000-2017.04.24.20.33.40//Maildir, alt=
Apr 25 09:53:22 mail dovecot: imap(12312300000@ctsat.com): Debug: acl: initializing backend with data: vfile
Apr 25 09:53:22 mail dovecot: imap(12312300000@ctsat.com): Debug: acl: acl username = 12312300000@ctsat.com
Apr 25 09:53:22 mail dovecot: imap(12312300000@ctsat.com): Debug: acl: owner = 1
Apr 25 09:53:22 mail dovecot: imap(12312300000@ctsat.com): Debug: acl vfile: Global ACLs disabled
Apr 25 09:53:22 mail dovecot: imap(12312300000@ctsat.com): Debug: Namespace : type=shared, prefix=Shared/%u/, sep=/, inbox=no, hidden=no, list=children, subscriptions=yes location=maildir:%Lh/Maildir/:INDEX=%Lh/Maildir/Shared/%Ld/%Ln
Apr 25 09:53:22 mail dovecot: imap(12312300000@ctsat.com): Debug: shared: root=/var/run/dovecot, index=, indexpvt=, control=, inbox=, alt=
Apr 25 09:53:22 mail dovecot: imap(12312300000@ctsat.com): Debug: acl: initializing backend with data: vfile
Apr 25 09:53:22 mail dovecot: imap(12312300000@ctsat.com): Debug: acl: acl username = 12312300000@ctsat.com
Apr 25 09:53:22 mail dovecot: imap(12312300000@ctsat.com): Debug: acl: owner = 0
Apr 25 09:53:22 mail dovecot: imap(12312300000@ctsat.com): Debug: acl vfile: Global ACLs disabled
Apr 25 09:53:22 mail dovecot: imap(12312300000@ctsat.com): Debug: quota: quota_over_flag check: quota_over_script unset - skipping
Apr 25 09:53:22 mail dovecot: imap(12312300000@ctsat.com): Debug: acl vfile: file /var/vmail/vmail1/ctsat.com/1/2/3/12312300000-2017.04.24.20.33.40//Maildir/dovecot-acl not found
Apr 25 09:53:22 mail dovecot: imap(12312300000@ctsat.com): Debug: acl vfile: file /var/vmail/vmail1/ctsat.com/1/2/3/12312300000-2017.04.24.20.33.40//Maildir/.Drafts/dovecot-acl not found
Apr 25 09:53:23 mail dovecot: imap(12312300000@ctsat.com): Debug: Loading modules from directory: /usr/lib64/dovecot
Apr 25 09:53:23 mail dovecot: imap(12312300000@ctsat.com): Debug: Module loaded: /usr/lib64/dovecot/lib01_acl_plugin.so
Apr 25 09:53:23 mail dovecot: imap(12312300000@ctsat.com): Debug: Module loaded: /usr/lib64/dovecot/lib02_imap_acl_plugin.so
Apr 25 09:53:23 mail dovecot: imap(12312300000@ctsat.com): Debug: Module loaded: /usr/lib64/dovecot/lib10_quota_plugin.so
Apr 25 09:53:23 mail dovecot: imap(12312300000@ctsat.com): Debug: Module loaded: /usr/lib64/dovecot/lib11_imap_quota_plugin.so
Apr 25 09:53:23 mail dovecot: imap(12312300000@ctsat.com): Debug: Module loaded: /usr/lib64/dovecot/lib20_mailbox_alias_plugin.so
Apr 25 09:53:23 mail dovecot: imap(12312300000@ctsat.com): Debug: Added userdb setting: plugin/master_user=12312300000@ctsat.com
Apr 25 09:53:23 mail dovecot: imap(12312300000@ctsat.com): Debug: Added userdb setting: plugin/quota_rule=*:bytes=1073741824
Apr 25 09:53:23 mail dovecot: imap(12312300000@ctsat.com): Debug: Effective uid=2000, gid=2000, home=/var/vmail/vmail1/ctsat.com/1/2/3/12312300000-2017.04.24.20.33.40/
Apr 25 09:53:23 mail dovecot: imap(12312300000@ctsat.com): Debug: Quota root: name=user backend=dict args=:proxy::quotadict
Apr 25 09:53:23 mail dovecot: imap(12312300000@ctsat.com): Debug: Quota rule: root=user mailbox=* bytes=1073741824 messages=0
Apr 25 09:53:23 mail dovecot: imap(12312300000@ctsat.com): Debug: Quota warning: bytes=1073741824 (100%) messages=0 reverse=no command=quota-warning 100 12312300000@ctsat.com
Apr 25 09:53:23 mail dovecot: imap(12312300000@ctsat.com): Debug: Quota warning: bytes=1020054732 (95%) messages=0 reverse=no command=quota-warning 95 12312300000@ctsat.com
Apr 25 09:53:23 mail dovecot: imap(12312300000@ctsat.com): Debug: Quota warning: bytes=966367641 (90%) messages=0 reverse=no command=quota-warning 90 12312300000@ctsat.com
Apr 25 09:53:23 mail dovecot: imap(12312300000@ctsat.com): Debug: Quota warning: bytes=912680550 (85%) messages=0 reverse=no command=quota-warning 85 12312300000@ctsat.com
Apr 25 09:53:23 mail dovecot: imap(12312300000@ctsat.com): Debug: Quota grace: root=user bytes=107374182 (10%)
Apr 25 09:53:23 mail dovecot: imap(12312300000@ctsat.com): Debug: dict quota: user=12312300000@ctsat.com, uri=proxy::quotadict, noenforcing=0
Apr 25 09:53:23 mail dovecot: imap(12312300000@ctsat.com): Debug: Namespace : type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/var/vmail/vmail1/ctsat.com/1/2/3/12312300000-2017.04.24.20.33.40//Maildir/:INDEX=/var/vmail/vmail1/ctsat.com/1/2/3/12312300000-2017.04.24.20.33.40//Maildir/
Apr 25 09:53:23 mail dovecot: imap(12312300000@ctsat.com): Debug: maildir++: root=/var/vmail/vmail1/ctsat.com/1/2/3/12312300000-2017.04.24.20.33.40//Maildir, index=, indexpvt=, control=, inbox=/var/vmail/vmail1/ctsat.com/1/2/3/12312300000-2017.04.24.20.33.40//Maildir, alt=
Apr 25 09:53:23 mail dovecot: imap(12312300000@ctsat.com): Debug: acl: initializing backend with data: vfile
Apr 25 09:53:23 mail dovecot: imap(12312300000@ctsat.com): Debug: acl: acl username = 12312300000@ctsat.com
Apr 25 09:53:23 mail dovecot: imap(12312300000@ctsat.com): Debug: acl: owner = 1
Apr 25 09:53:23 mail dovecot: imap(12312300000@ctsat.com): Debug: acl vfile: Global ACLs disabled
Apr 25 09:53:23 mail dovecot: imap(12312300000@ctsat.com): Debug: Namespace : type=shared, prefix=Shared/%u/, sep=/, inbox=no, hidden=no, list=children, subscriptions=yes location=maildir:%Lh/Maildir/:INDEX=%Lh/Maildir/Shared/%Ld/%Ln
Apr 25 09:53:23 mail dovecot: imap(12312300000@ctsat.com): Debug: shared: root=/var/run/dovecot, index=, indexpvt=, control=, inbox=, alt=
Apr 25 09:53:23 mail dovecot: imap(12312300000@ctsat.com): Debug: acl: initializing backend with data: vfile
Apr 25 09:53:23 mail dovecot: imap(12312300000@ctsat.com): Debug: acl: acl username = 12312300000@ctsat.com
Apr 25 09:53:23 mail dovecot: imap(12312300000@ctsat.com): Debug: acl: owner = 0
Apr 25 09:53:23 mail dovecot: imap(12312300000@ctsat.com): Debug: acl vfile: Global ACLs disabled
Apr 25 09:53:23 mail dovecot: imap(12312300000@ctsat.com): Debug: quota: quota_over_flag check: quota_over_script unset - skipping
Apr 25 09:53:23 mail dovecot: imap(12312300000@ctsat.com): Debug: acl vfile: file /var/vmail/vmail1/ctsat.com/1/2/3/12312300000-2017.04.24.20.33.40//Maildir/.Drafts/dovecot-acl not found
Apr 25 09:53:23 mail dovecot: imap(12312300000@ctsat.com): Debug: acl vfile: file /var/vmail/vmail1/ctsat.com/1/2/3/12312300000-2017.04.24.20.33.40//Maildir/.other/dovecot-acl not found
Apr 25 09:53:23 mail dovecot: imap(12312300000@ctsat.com): Debug: acl vfile: file /var/vmail/vmail1/ctsat.com/1/2/3/12312300000-2017.04.24.20.33.40//Maildir/.Sent/dovecot-acl not found

回复: iredapd没有启动脚本,也不开机自启

Apr 25 10:15:11 mail postfix/submission/smtpd[19635]: connect from localhost[127.0.0.1]
Apr 25 10:15:11 mail postfix/submission/smtpd[19635]: Anonymous TLS connection established from localhost[127.0.0.1]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Apr 25 10:15:11 mail postfix/submission/smtpd[19635]: 89B67801AA6A: client=localhost[127.0.0.1], sasl_method=LOGIN, sasl_username=12312300000@ctsat.com
Apr 25 10:15:11 mail postfix/cleanup[19639]: 89B67801AA6A: message-id=<b272ab41ac3c7433ac80fc5ab4500d86@ctsat.com>
Apr 25 10:15:11 mail postfix/qmgr[18190]: 89B67801AA6A: from=<12312300000@ctsat.com>, size=1034, nrcpt=1 (queue active)
Apr 25 10:15:11 mail roundcube: <o60otfrv> User 12312300000@ctsat.com [192.168.20.37]; Message for 12312300000@ctsat.com; 250: 2.0.0 Ok: queued as 89B67801AA6A
Apr 25 10:15:11 mail amavis[19448]: (19448-01) (!)connect_to_sql: unable to connect to DSN 'DBI:mysql:database=amavisd;host=127.0.0.1;port=3306': Access denied for user 'amavisd'@'localhost' (using password: YES)
Apr 25 10:15:11 mail amavis[19448]: (19448-01) (!!)TROUBLE in process_request: connect_to_sql: unable to connect to any dataset at (eval 128) line 252.
Apr 25 10:15:11 mail amavis[19448]: (19448-01) (!)Requesting process rundown after fatal error
Apr 25 10:15:11 mail postfix/smtp-amavis/smtp[19644]: 89B67801AA6A: to=<12312300000@ctsat.com>, relay=127.0.0.1[127.0.0.1]:10026, delay=0.18, delays=0.08/0.02/0.02/0.07, dsn=4.3.2, status=deferred (host 127.0.0.1[127.0.0.1] said: 421 4.3.2 Service shutting down, closing channel (in reply to RCPT TO command))
Apr 25 10:15:12 mail postfix/submission/smtpd[19635]: disconnect from localhost[127.0.0.1]
Apr 25 10:17:19 mail postfix/qmgr[18190]: 35A59801AA71: from=<12312300000@ctsat.com>, size=1054, nrcpt=1 (queue active)
Apr 25 10:17:19 mail amavis[19449]: (19449-01) (!)connect_to_sql: unable to connect to DSN 'DBI:mysql:database=amavisd;host=127.0.0.1;port=3306': Access denied for user 'amavisd'@'localhost' (using password: YES)
Apr 25 10:17:19 mail amavis[19449]: (19449-01) (!!)TROUBLE in process_request: connect_to_sql: unable to connect to any dataset at (eval 128) line 252.
Apr 25 10:17:19 mail amavis[19449]: (19449-01) (!)Requesting process rundown after fatal error
Apr 25 10:17:19 mail postfix/smtp-amavis/smtp[19688]: 35A59801AA71: to=<12312300000@ctsat.com>, relay=127.0.0.1[127.0.0.1]:10026, delay=920, delays=920/0.02/0.01/0.06, dsn=4.3.2, status=deferred (host 127.0.0.1[127.0.0.1] said: 421 4.3.2 Service shutting down, closing channel (in reply to RCPT TO command))

回复: iredapd没有启动脚本,也不开机自启

iRedAPD 有 systemd 启动脚本。你用 systemctl 命令来控制即可。

6 最后由 tanxh (2017-04-25 10:28:12) 编辑

回复: iredapd没有启动脚本,也不开机自启

我是全新的环境 怎么会Access denied for user 'amavisd'@'localhost' (using password: YES)有这个错误

iredapd不是应该开机自启的吗

回复: iredapd没有启动脚本,也不开机自启

ZhangHuangbin 写道:

iRedAPD 有 systemd 启动脚本。你用 systemctl 命令来控制即可。

[root@mail ~]# systemctl start iredapd
Failed to start iredapd.service: Unit not found.

回复: iredapd没有启动脚本,也不开机自启

ZhangHuangbin 写道:

iRedAPD 有 systemd 启动脚本。你用 systemctl 命令来控制即可。

大侠,你还没告诉mysql的问题呢。这个错误是因为密码吗,iredmail是有哪里设置这些默认的密码吗。
还是什么其他问题。这是全新的环境,什么其他的都没装。

回复: iredapd没有启动脚本,也不开机自启

Apr 25 11:31:46 mail postfix/scache[2810]: statistics: start interval Apr 25 11:28:25
Apr 25 11:31:46 mail postfix/scache[2810]: statistics: domain lookup hits=0 miss=2 success=0%
Apr 25 11:31:46 mail postfix/scache[2810]: statistics: address lookup hits=0 miss=2 success=0%
Apr 25 11:33:25 mail postfix/qmgr[2787]: 89B67801AA6A: from=<12312300000@ctsat.com>, size=1034, nrcpt=1 (queue active)
Apr 25 11:33:25 mail postfix/qmgr[2787]: 0FB71801AA78: from=<12312300000@ctsat.com>, size=1129, nrcpt=1 (queue active)
Apr 25 11:33:25 mail postfix/qmgr[2787]: A7CCE801AA7F: from=<12312300000@ctsat.com>, size=1039, nrcpt=1 (queue active)
Apr 25 11:33:25 mail amavis[3450]: (03450-01) (!)connect_to_sql: unable to connect to DSN 'DBI:mysql:database=amavisd;host=127.0.0.1;port=3306': Access denied for user 'amavisd'@'localhost' (using password: YES)
Apr 25 11:33:25 mail amavis[3450]: (03450-01) (!!)TROUBLE in process_request: connect_to_sql: unable to connect to any dataset at (eval 128) line 252.
Apr 25 11:33:25 mail amavis[3450]: (03450-01) (!)Requesting process rundown after fatal error
Apr 25 11:33:25 mail amavis[3451]: (03451-01) (!)connect_to_sql: unable to connect to DSN 'DBI:mysql:database=amavisd;host=127.0.0.1;port=3306': Access denied for user 'amavisd'@'localhost' (using password: YES)
Apr 25 11:33:25 mail amavis[3451]: (03451-01) (!!)TROUBLE in process_request: connect_to_sql: unable to connect to any dataset at (eval 128) line 252.
Apr 25 11:33:25 mail amavis[3451]: (03451-01) (!)Requesting process rundown after fatal error
Apr 25 11:33:25 mail postfix/smtp-amavis/smtp[3586]: 89B67801AA6A: to=<12312300000@ctsat.com>, relay=127.0.0.1[127.0.0.1]:10026, delay=4694, delays=4694/0.04/0.01/0.1, dsn=4.3.2, status=deferred (host 127.0.0.1[127.0.0.1] said: 421 4.3.2 Service shutting down, closing channel (in reply to RCPT TO command))
Apr 25 11:33:25 mail postfix/smtp-amavis/smtp[3587]: 0FB71801AA78: to=<12312300000@ctsat.com>, relay=127.0.0.1[127.0.0.1]:10026, delay=2260, delays=2260/0.04/0.02/0.08, dsn=4.3.2, status=deferred (host 127.0.0.1[127.0.0.1] said: 421 4.3.2 Service shutting down, closing channel (in reply to RCPT TO command))
Apr 25 11:33:25 mail amavis[3594]: (03594-01) (!)connect_to_sql: unable to connect to DSN 'DBI:mysql:database=amavisd;host=127.0.0.1;port=3306': Access denied for user 'amavisd'@'localhost' (using password: YES)
Apr 25 11:33:25 mail amavis[3594]: (03594-01) (!!)TROUBLE in process_request: connect_to_sql: unable to connect to any dataset at (eval 128) line 252.
Apr 25 11:33:25 mail amavis[3594]: (03594-01) (!)Requesting process rundown after fatal error
Apr 25 11:33:25 mail postfix/smtp-amavis/smtp[3589]: A7CCE801AA7F: to=<12312300000@ctsat.com>, relay=127.0.0.1[127.0.0.1]:10026, delay=416, delays=416/0.1/0.11/0.04, dsn=4.3.2, status=deferred (host 127.0.0.1[127.0.0.1] said: 421 4.3.2 Service shutting down, closing channel (in reply to RCPT TO command))

回复: iredapd没有启动脚本,也不开机自启

看上去你的 iRedMail 没有成功安装。/root/iRedMail-0.9.6/runtime/install.log 里是否有错误信息?
建议重新安装一次,留意终端屏幕输出。