LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: secondgui

非常简明的debian sarge + postfix + mysql + AMaViS + webmail + web admin安装配

[复制链接]
发表于 2005-8-23 11:47:50 | 显示全部楼层
我用上面的main.cf
postfix reload 提示出错!
postfix: fatal: /etc/postfix/main.cf, line 16: missing '=' after attribute name: "mysql:/etc/postfix/mysql-virtual_forwardings.cf"
我line 16代码为
virtual_alias_maps =
mysql:/etc/postfix/mysql-virtual_forwardings.cf
mysql:/etc/postfix/mysql-virtual_email2email.cf
回复 支持 反对

使用道具 举报

发表于 2005-8-23 13:57:05 | 显示全部楼层
Post by wulang1979
真的不错,但我们现在已经用apache+php+postgresql+exim4了。还是支持一下,很有学习价值!!!



其实你也可以把你的配置过程写出来。特别是exim4了。 :beat
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-8-24 12:12:06 | 显示全部楼层
Post by ksgimi
我用上面的main.cf
postfix reload 提示出错!
postfix: fatal: /etc/postfix/main.cf, line 16: missing '=' after attribute name: "mysql:/etc/postfix/mysql-virtual_forwardings.cf"
我line 16代码为
virtual_alias_maps =
mysql:/etc/postfix/mysql-virtual_forwardings.cf
mysql:/etc/postfix/mysql-virtual_email2email.cf


这个要写在一行里,文章中为了版面和阅读的方便,拆成了三行
回复 支持 反对

使用道具 举报

发表于 2005-8-24 12:44:35 | 显示全部楼层
顶,如此好贴,正准备搞postfix,雪中送炭阿
回复 支持 反对

使用道具 举报

发表于 2005-8-26 13:13:45 | 显示全部楼层
postfix check 一切正常
# telnet localhost smtp
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
无论你输入什么就是没有任何反应
到“12、第九步:测试整个设置 ”我没有办法按示例继续下去!
回复 支持 反对

使用道具 举报

发表于 2005-8-27 22:02:45 | 显示全部楼层
支持楼主,加精!!
回复 支持 反对

使用道具 举报

发表于 2005-8-30 10:59:19 | 显示全部楼层
peal.com.cn 在本地dns有mx记录
# telnet ark.pearl.com.cn 25
Trying 140.116.100.223...
Connected to ark.pearl.com.cn.
Escape character is '^]'.
220 ark.pearl.com.cn ESMTP Postfix (Debian/GNU)
ehlo femco.com.cn
250-ark.pearl.com.cn
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH CRAM-MD5 DIGEST-MD5 LOGIN PLAIN
250-AUTH=CRAM-MD5 DIGEST-MD5 LOGIN PLAIN
250 8BITMIME
mail from:<root@pearl.com.cn>
到这个地方按<return>系统没有反应,请高手指点一下
/var/log/mail.log
  1. Aug 30 09:00:12 localhost amavis[2405]: starting.  amavisd-new at ark amavisd-new-20030616-p10, Unicode aware
  2. Aug 30 09:00:12 localhost amavis[2405]: Perl version               5.008007
  3. Aug 30 09:00:12 localhost amavis[2405]: Module Amavis::Conf        1.15
  4. Aug 30 09:00:12 localhost amavis[2405]: Module Archive::Tar        1.23
  5. Aug 30 09:00:12 localhost amavis[2405]: Module Archive::Zip        1.14
  6. Aug 30 09:00:12 localhost amavis[2405]: Module Compress::Zlib      1.34
  7. Aug 30 09:00:12 localhost amavis[2405]: Module Convert::TNEF       0.17
  8. Aug 30 09:00:12 localhost amavis[2405]: Module Convert::UUlib      1.051
  9. Aug 30 09:00:12 localhost amavis[2405]: Module MIME::Entity        5.417
  10. Aug 30 09:00:12 localhost amavis[2405]: Module MIME::Parser        5.417
  11. Aug 30 09:00:12 localhost amavis[2405]: Module MIME::Tools         5.417
  12. Aug 30 09:00:12 localhost amavis[2405]: Module Mail::Header        1.67
  13. Aug 30 09:00:12 localhost amavis[2405]: Module Mail::Internet      1.67
  14. Aug 30 09:00:12 localhost amavis[2405]: Module Net::Cmd            2.26
  15. Aug 30 09:00:12 localhost amavis[2405]: Module Net::SMTP           2.29
  16. Aug 30 09:00:12 localhost amavis[2405]: Module Net::Server         0.87
  17. Aug 30 09:00:12 localhost amavis[2405]: Module Time::HiRes         1.66
  18. Aug 30 09:00:12 localhost amavis[2405]: Module Unix::Syslog        0.100
  19. Aug 30 09:00:12 localhost amavis[2406]: Found $file       at /usr/bin/file
  20. Aug 30 09:00:12 localhost amavis[2406]: No $arc,          not using it
  21. Aug 30 09:00:12 localhost amavis[2406]: Found $gzip       at /bin/gzip
  22. Aug 30 09:00:12 localhost amavis[2406]: Found $bzip2      at /usr/bin/bzip2
  23. Aug 30 09:00:12 localhost amavis[2406]: No $lzop,         not using it
  24. Aug 30 09:00:12 localhost amavis[2406]: Found $lha        at /usr/bin/lha
  25. Aug 30 09:00:12 localhost amavis[2406]: No $unarj,        not using it
  26. Aug 30 09:00:12 localhost amavis[2406]: Found $uncompress at /bin/uncompress
  27. Aug 30 09:00:12 localhost amavis[2406]: No $unfreeze,     not using it
  28. Aug 30 09:00:12 localhost amavis[2406]: Found $unrar      at /usr/bin/unrar
  29. Aug 30 09:00:12 localhost amavis[2406]: Found $zoo        at /usr/bin/zoo
  30. Aug 30 09:00:12 localhost amavis[2406]: Found $cpio       at /bin/cpio
  31. Aug 30 09:00:12 localhost amavis[2406]: Using internal av scanner code for (primary) Clam Antivirus-clamd
  32. Aug 30 09:00:12 localhost amavis[2406]: Found secondary av scanner Clam Antivirus - clamscan at /usr/bin/clamscan
  33. Aug 30 09:00:14 localhost authdaemond.mysql: modules="authmysql", daemons=5
  34. Aug 30 09:00:17 localhost postfix/postfix-script: starting the Postfix mail system
  35. Aug 30 09:00:18 localhost postfix/master[2733]: daemon started -- version 2.2.4, configuration /etc/postfix
  36. Aug 30 09:00:18 localhost postfix/pickup[2735]: 4BCEB103FF: uid=0 from=<root>
  37. Aug 30 09:00:18 localhost postfix/cleanup[2739]: warning: connect to mysql server 127.0.0.1: #HY000Host 'localhost.localdomain' is not allowed to connect to this MySQL server
  38. Aug 30 09:00:18 localhost postfix/cleanup[2739]: warning: 4BCEB103FF: virtual_alias_maps map lookup problem for root@ark.pearl.com.cn
  39. Aug 30 09:00:18 localhost postfix/pickup[2735]: warning: maildrop/5106010425: Error writing message file
  40. Aug 30 09:00:18 localhost postfix/pickup[2735]: 7ACC7103FF: uid=0 from=<root>
  41. Aug 30 09:00:18 localhost postfix/cleanup[2739]: warning: 7ACC7103FF: virtual_alias_maps map lookup problem for root@ark.pearl.com.cn
  42. Aug 30 09:00:18 localhost postfix/pickup[2735]: warning: maildrop/53D561081F: Error writing message file
  43. Aug 30 09:00:18 localhost postfix/pickup[2735]: 82E30103FF: uid=0 from=<root>
  44. Aug 30 09:00:18 localhost postfix/cleanup[2742]: warning: connect to mysql server 127.0.0.1: #HY000Host 'localhost.localdomain' is not allowed to connect to this MySQL server
  45. Aug 30 09:00:18 localhost postfix/cleanup[2742]: warning: 82E30103FF: virtual_alias_maps map lookup problem for root@ark.pearl.com.cn
  46. Aug 30 09:00:18 localhost postfix/pickup[2735]: warning: maildrop/6366A10412: Error writing message file
  47. Aug 30 09:00:18 localhost postfix/pickup[2735]: 87634103FF: uid=0 from=<root>
  48. Aug 30 09:00:18 localhost postfix/cleanup[2739]: warning: 87634103FF: virtual_alias_maps map lookup problem for root@ark.pearl.com.cn
  49. Aug 30 09:00:18 localhost postfix/pickup[2735]: warning: maildrop/2A6E91081C: Error writing message file
  50. Aug 30 09:00:18 localhost postfix/pickup[2735]: 88920103FF: uid=0 from=<root>
  51. Aug 30 09:00:18 localhost postfix/cleanup[2742]: warning: 88920103FF: virtual_alias_maps map lookup problem for root@ark.pearl.com.cn
  52. Aug 30 09:00:18 localhost postfix/pickup[2735]: warning: maildrop/5677C10821: Error writing message file
  53. Aug 30 09:00:18 localhost postfix/pickup[2735]: 9005D103FF: uid=0 from=<root>
  54. Aug 30 09:00:18 localhost postfix/cleanup[2739]: warning: 9005D103FF: virtual_alias_maps map lookup problem for root@ark.pearl.com.cn
  55. Aug 30 09:00:18 localhost postfix/pickup[2735]: warning: maildrop/28B95104E5: Error writing message file
  56. Aug 30 09:00:18 localhost postfix/pickup[2735]: 90D25103FF: uid=0 from=<root>
  57. Aug 30 09:00:18 localhost postfix/cleanup[2742]: warning: 90D25103FF: virtual_alias_maps map lookup problem for root@ark.pearl.com.cn
  58. Aug 30 09:00:18 localhost postfix/pickup[2735]: warning: maildrop/F0C2710461: Error writing message file
  59. Aug 30 09:00:18 localhost postfix/pickup[2735]: 91543103FF: uid=0 from=<root>
  60. Aug 30 09:00:18 localhost postfix/cleanup[2739]: warning: 91543103FF: virtual_alias_maps map lookup problem for root@ark.pearl.com.cn
  61. Aug 30 09:00:18 localhost postfix/pickup[2735]: warning: maildrop/57D1310431: Error writing message file
  62. Aug 30 09:01:18 localhost postfix/pickup[2735]: 90B1C1084A: uid=0 from=<root>
  63. Aug 30 09:01:18 localhost postfix/cleanup[2742]: warning: 90B1C1084A: virtual_alias_maps map lookup problem for root@ark.pearl.com.cn
  64. Aug 30 09:01:18 localhost postfix/pickup[2735]: warning: maildrop/5106010425: Error writing message file
  65. Aug 30 09:01:18 localhost postfix/pickup[2735]: 945391084A: uid=0 from=<root>
  66. Aug 30 09:01:18 localhost postfix/cleanup[2739]: warning: 945391084A: virtual_alias_maps map lookup problem for root@ark.pearl.com.cn
  67. Aug 30 09:01:18 localhost postfix/pickup[2735]: warning: maildrop/53D561081F: Error writing message file
  68. Aug 30 09:01:18 localhost postfix/pickup[2735]: 950FF1084A: uid=0 from=<root>
  69. Aug 30 09:01:18 localhost postfix/cleanup[2742]: warning: 950FF1084A: virtual_alias_maps map lookup problem for root@ark.pearl.com.cn
  70. Aug 30 09:01:18 localhost postfix/pickup[2735]: warning: maildrop/6366A10412: Error writing message file
  71. Aug 30 09:01:18 localhost postfix/pickup[2735]: 95AC71084A: uid=0 from=<root>
  72. Aug 30 09:01:18 localhost postfix/cleanup[2739]: warning: 95AC71084A: virtual_alias_maps map lookup problem for root@ark.pearl.com.cn
  73. Aug 30 09:01:18 localhost postfix/pickup[2735]: warning: maildrop/2A6E91081C: Error writing message file
  74. Aug 30 09:01:18 localhost postfix/pickup[2735]: 965651084A: uid=0 from=<root>
  75. Aug 30 09:01:18 localhost postfix/cleanup[2742]: warning: 965651084A: virtual_alias_maps map lookup problem for root@ark.pearl.com.cn
  76. Aug 30 09:01:18 localhost postfix/pickup[2735]: warning: maildrop/5677C10821: Error writing message file
  77. Aug 30 09:01:18 localhost postfix/pickup[2735]: 9782E1084A: uid=0 from=<root>
  78. Aug 30 09:01:18 localhost postfix/cleanup[2739]: warning: 9782E1084A: virtual_alias_maps map lookup problem for root@ark.pearl.com.cn
  79. Aug 30 09:01:18 localhost postfix/pickup[2735]: warning: maildrop/28B95104E5: Error writing message file
  80. Aug 30 09:01:18 localhost postfix/pickup[2735]: 9840B1084A: uid=0 from=<root>
  81. Aug 30 09:01:18 localhost postfix/cleanup[2742]: warning: 9840B1084A: virtual_alias_maps map lookup problem for root@ark.pearl.com.cn
  82. Aug 30 09:01:18 localhost postfix/pickup[2735]: warning: maildrop/F0C2710461: Error writing message file
  83. Aug 30 09:01:18 localhost postfix/pickup[2735]: 98F6B1084A: uid=0 from=<root>
  84. Aug 30 09:01:18 localhost postfix/cleanup[2739]: warning: 98F6B1084A: virtual_alias_maps map lookup problem for root@ark.pearl.com.cn
  85. Aug 30 09:01:18 localhost postfix/pickup[2735]: warning: maildrop/57D1310431: Error writing message file
复制代码

/etc/postfix/main.cf
  1. smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
  2. myhostname = ark.pearl.com.cn
  3. mydestination = $pearl.com.cn
  4. mynetworks = 127.0.0.0/8,140.116.100.0/24
  5. virtual_alias_domains =
  6. virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_forwardings.cf mysql:/etc/postfix/mysql-virtual_email2email.cf
  7. virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_domains.cf
  8. virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailboxes.cf
  9. virtual_mailbox_base = /home/vmail
  10. virtual_uid_maps = static:5000
  11. virtual_gid_maps = static:5000
  12. smtpd_sasl_auth_enable = yes
  13. broken_sasl_auth_clients = yes
  14. smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
  15. smtpd_use_tls = yes
  16. smtpd_tls_cert_file = /etc/postfix/smtpd.cert
  17. smtpd_tls_key_file = /etc/postfix/smtpd.key
复制代码
回复 支持 反对

使用道具 举报

发表于 2005-8-31 10:14:21 | 显示全部楼层
已解决
mysql权限设置不对

grant select on provider.* to provider_admin@localhost identified by 'your-password';
改为
grant select on provider.* to provider_admin@localhost.localdomain identified by 'your-password';
但ping localhost 与ping localhost.localdomain 一样,均指向127.0.0.1
mysql为什么就不一样呢?请高手指点!
回复 支持 反对

使用道具 举报

发表于 2005-9-5 14:12:53 | 显示全部楼层
Post by ksgimi
postfix check 一切正常
# telnet localhost smtp
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
无论你输入什么就是没有任何反应
到“12、第九步:测试整个设置 ”我没有办法按示例继续下去!


我的问题和你的一样

btw:  mysql-virtual_domains.cf 这个文件该如何配置啊?楼主的文档中,关于这个文件的配置好像有问题
mysql-virtual_domains.cf和mysql-virtual_forwardings.cf的内容怎么是一样的呢???
回复 支持 反对

使用道具 举报

发表于 2005-9-6 08:57:10 | 显示全部楼层
版主翻译时可能不小心搞错吧!
我到原文去找的

mysql-virtual_domains.cf
  1. user = provider_admin
  2. password = ...
  3. dbname = provider
  4. table = domains
  5. select_field = 'virtual'
  6. where_field = domain
  7. hosts = 127.0.0.1
复制代码


mysql-virtual_forwardings.cf
  1. user = provider_admin
  2. password = ...
  3. dbname = provider
  4. table = forwardings
  5. select_field = destination
  6. where_field = source
  7. hosts = 127.0.0.1
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表