免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: marion
打印 上一主题 下一主题

[Mail] RHEL4上安装基于postfix的全功能邮件服务器(全部使用目前最新源码包构建) [复制链接]

论坛徽章:
0
281 [报告]
发表于 2007-11-03 17:31 |只看该作者

回复 #280 cnhawk386 的帖子

Nov  3 15:17:45 wbxsb authdaemond: failed to connect to mysql server (server=localhost, userid=extmail): Access denied for user 'extmail'@'localhost' (using password: YES)……


extmail没有权限访问数据库,手动给其赋予权限即可。

论坛徽章:
0
282 [报告]
发表于 2007-11-03 18:05 |只看该作者

不能登入extman进行后台管理

[root@zone ~]# telnet 127.0.0.1 3306
Trying 127.0.0.1...
Connected to zone (127.0.0.1).
Escape character is '^]'.
8
5.0.45-logX[C{ehYc,?[pEEjhK~Y!8Connection closed by foreign host.

论坛徽章:
0
283 [报告]
发表于 2007-11-03 18:48 |只看该作者

回复 #283 junger 的帖子

请问,在你理解中,extman和3306端口是什么关系,为什么要telnet 3306?

论坛徽章:
0
284 [报告]
发表于 2007-11-05 11:23 |只看该作者

回复 #284 marion 的帖子

我现在登入extman进行后台管理,它提示我44行有错误

     40     my $connect = "DBI:mysql:database=$opt{dbname};host=$opt{host}";
     41     if ($opt{socket}) {
     42         $connect .= ";mysql_socket=$opt{socket}";
     43     }
     44     my $dbh = DBI->connect(
     45         $connect,$opt{dbuser}, $opt{dbpw}, {'RaiseError' => 1}
     46     );
     47
     48     $self->{dbh} = $dbh;
     49     $self->{pwhandle} = Ext:asswd->new(
     50         fallback_scheme => $opt{crypt_type} || 'crypt

victorchang兄问我是不是配置MYSQL访问的用户名和口令不对?
我看了一下没有错,但我在本机通过MYSQL进行测试

[root@zone ~]# /usr/local/mysql/bin/mysqladmin -u postfix -p 123456
Enter password:
/usr/local/mysql/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'postfix'@'localhost' (using password: YES)'
victorchang兄让我telnet 127.0.0.1 3306 看看MYSQL启动没有呀.
用ROOT用户进入试一试.

[ 本帖最后由 junger 于 2007-11-5 11:29 编辑 ]

论坛徽章:
0
285 [报告]
发表于 2007-11-05 13:16 |只看该作者

回复 #285 junger 的帖子

~]# /usr/local/mysql/bin/mysqladmin -u postfix -p 123456
Enter password:
/usr/local/mysql/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'postfix'@'localhost' (using password: YES)'


你可以用类似如下的命令登录MYSQL试一下:
#/usr/local/mysql/bin/mysql -u postfix -p
执行这个命令后会提示输入密码,此时再输入你的123456

修正一下,上次写成了mysqladmin,应该是mysql,后面victorchang朋友也给出了正确答案。

[ 本帖最后由 marion 于 2007-11-6 17:50 编辑 ]

论坛徽章:
0
286 [报告]
发表于 2007-11-06 00:16 |只看该作者
楼主我想把你的东西搞成pdf,不过我要测试完成确认没有错误才可以,我的环境是centos4.5,我想应该没有区别的,可以在进行php编译过程中出现错误
我尝试做如下改动
六、安装php-5.2.3

# tar -zvxf php-5.2.3.tar.gz
# mkdir -p /usr/local/php
# cd php-5.2.3
# ./configure --prefix=/usr/local/php              
  --with-apxs2=/usr/local/apache/bin/apxs
  --with-mysql=/usr/local/mysql
  --with-mysqli=/usr/local/mysql/bin/mysql_config
  --with-xml(不要此参数)
  --with-png-dir=/usr/local
--with-jpeg-dir=/usr/local
  --with-zlib
  --with-freetype-dir=/usr/local(不要此参数)
  --with-gd  
  --enable-track-vars  (不要此参数)
  --enable-mbstring=all      
采用以上参数可能引起编译错误
(【网络解释】如果配置PHP时出错:configure: error: libjpeg.(a|so) not found
请安装:jpegsrc.v6b.tar.gz 和 libpng-1.2.8-config.tar.gz,如果没安装 GD 库,安装 gd-2.0.33.tar.gz ,这个新的默认就支持 gif
【个人做法】从安装光盘中找到gd-2.0.28-5.4E.i386.rpm,libpng-devel-1.2.7-1.el4.2.i386.rpm,libjpeg-devel-6b-33.i386.rpm包安装
)


你确定--with-xml  --enable-track-vars参数是正确的吗,我./configure --help没有找到这些相关的参数啊?
还有 --with-freetype-dir=/usr/local 这个参数编译时报freetype.h无法找到的错误

我是新手,按道理看那么深的文章不太好,可是我坚持者每个字符都敲一遍,通过这个,我想我会慢慢的成长的。

我不知道你很多编译参数为什么要这么设置,每个参数的意义只有查help了

论坛徽章:
0
287 [报告]
发表于 2007-11-06 08:31 |只看该作者
原帖由 cnhawk386 于 2007-11-6 08:26 发表
哪里可以找到authmysqlrc这个文件的详细解释   google半天也没找到 也没有官方网站
我的配置如下:
MYSQL_SERVER            localhost
MYSQL_USERNAME          extmail
MYSQL_PASSWORD          123456
M ...

你的    uidnumber,gidnumber 为什么没有改呢???如果按文档做的,应该设置成2525吧,如果做了后面的maildrop应该改成1001呀
cat /etc/group 看一下,你的postfix 的GID是不是2525....

论坛徽章:
0
288 [报告]
发表于 2007-11-06 08:34 |只看该作者
原帖由 zdyldy 于 2007-11-2 15:15 发表
我用webmail发信后,发件箱里还有邮件,我想发完邮件后,发件箱里没有邮件应该怎么设置啊.

这个问题,好是像在发邮件的时候,默认选项是将邮件保存到发件箱中,你把选项去掉不就行了吗???
~_~

论坛徽章:
0
289 [报告]
发表于 2007-11-06 09:18 |只看该作者

connect to mysql server localhost: Access denied for user

各位老大帮忙呀。!急!!!!!
在安装完postfix,启用了cyrus-sasl的认证功能之后之后(还没有安装courier-authlib和courier-imap)在/var/log/maillog中发现的问题:
Nov  6 08:40:01 email postfix/pickup[14216]: 46C1768C18B: uid=0 from=<root>
Nov  6 08:40:01 email postfix/cleanup[14177]: warning: connect to mysql server localhost: Access denied for user

'extmail'@'localhost' (using password: YES)
Nov  6 08:40:01 email postfix/cleanup[14177]: warning: 46C1768C18B: virtual_alias_maps map lookup problem for

root@think.net
Nov  6 08:41:01 email postfix/pickup[14216]: 44E3B68C18B: uid=0 from=<root>
Nov  6 08:41:01 email postfix/cleanup[14177]: warning: 44E3B68C18B: virtual_alias_maps map lookup problem for

root@think.net
Nov  6 08:42:01 email postfix/pickup[14216]: 430B268C18B: uid=0 from=<root>
Nov  6 08:42:01 email postfix/cleanup[14177]: warning: connect to mysql server localhost: Access denied for user

'extmail'@'localhost' (using password: YES)
Nov  6 08:42:01 email postfix/cleanup[14177]: warning: 430B268C18B: virtual_alias_maps map lookup problem for

root@think.net
Nov  6 08:43:01 email postfix/pickup[14216]: 4129B68C18B: uid=0 from=<root>
Nov  6 08:43:01 email postfix/cleanup[14177]: warning: 4129B68C18B: virtual_alias_maps map lookup problem for

root@think.net
Nov  6 08:44:01 email postfix/pickup[14216]: 3F4D468C18B: uid=0 from=<root>
Nov  6 08:44:01 email postfix/cleanup[14177]: warning: connect to mysql server localhost: Access denied for user

'extmail'@'localhost' (using password: YES)
Nov  6 08:44:01 email postfix/cleanup[14177]: warning: 3F4D468C18B: virtual_alias_maps map lookup problem for

root@think.net
Nov  6 08:45:01 email postfix/pickup[14216]: 3D6EF68C18B: uid=0 from=<root>
Nov  6 08:45:01 email postfix/cleanup[14177]: warning: 3D6EF68C18B: virtual_alias_maps map lookup problem for

root@think.net
Nov  6 08:46:01 email postfix/pickup[14216]: 3B94468C18B: uid=0 from=<root>
Nov  6 08:46:01 email postfix/cleanup[14177]: warning: connect to mysql server localhost: Access denied for user

'extmail'@'localhost' (using password: YES)
Nov  6 08:46:01 email postfix/cleanup[14177]: warning: 3B94468C18B: virtual_alias_maps map lookup problem for

root@think.net
Nov  6 08:47:01 email postfix/pickup[14216]: 39BB068C18B: uid=0 from=<root>
Nov  6 08:47:01 email postfix/cleanup[14177]: warning: 39BB068C18B: virtual_alias_maps map lookup problem for

root@think.net
Nov  6 08:48:01 email postfix/pickup[14216]: 37DFF68C18B: uid=0 from=<root>
Nov  6 08:48:01 email postfix/cleanup[14177]: warning: connect to mysql server localhost: Access denied for user

'extmail'@'localhost' (using password: YES)
Nov  6 08:48:01 email postfix/cleanup[14177]: warning: 37DFF68C18B: virtual_alias_maps map lookup problem for

root@think.net
Nov  6 08:49:01 email postfix/pickup[14216]: 35FC968C18B: uid=0 from=<root>
Nov  6 08:49:01 email postfix/cleanup[14177]: warning: 35FC968C18B: virtual_alias_maps map lookup problem for

root@think.net
Nov  6 08:50:01 email postfix/pickup[14216]: 341F668C18B: uid=0 from=<root>
Nov  6 08:50:01 email postfix/cleanup[14177]: warning: connect to mysql server localhost: Access denied for user

'extmail'@'localhost' (using password: YES)
Nov  6 08:50:01 email postfix/cleanup[14177]: warning: 341F668C18B: virtual_alias_maps map lookup problem for

root@think.net

论坛徽章:
0
290 [报告]
发表于 2007-11-06 13:00 |只看该作者

回复 #286 marion 的帖子

这样不行,这样输入的话出现:
[root@zone ~]# /usr/local/mysql/bin/mysqladmin -u postfix -p
/usr/local/mysql/bin/mysqladmin  Ver 8.41 Distrib 5.0.45, for pc-linux-gnu on i686
Copyright (C) 2000-2006 MySQL AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license

Administration program for the mysqld daemon.
Usage: /usr/local/mysql/bin/mysqladmin [OPTIONS] command command....
  -c, --count=#       Number of iterations to make. This works with -i
                      (--sleep) only.
  -#, --debug[=name]  Output debug log. Often this is 'd:t,filename'.
  -f, --force         Don't ask for confirmation on drop database; with
                      multiple commands, continue even if an error occurs.
  -C, --compress      Use compression in server/client protocol.
  --character-sets-dir=name
                      Directory where character sets are.
  --default-character-set=name
                      Set the default character set.
  -?, --help          Display this help and exit.
  -h, --host=name     Connect to host.
  -p, --password[=name]
                      Password to use when connecting to server. If password is
                      not given it's asked from the tty.
  -P, --port=#        Port number to use for connection.
  --protocol=name     The protocol of connection (tcp,socket,pipe,memory).
  -r, --relative      Show difference between current and previous values when
                      used with -i. Currently works only with extended-status.
  -O, --set-variable=name
                      Change the value of a variable. Please note that this
                      option is deprecated; you can set variables directly with
                      --variable-name=value.
  -s, --silent        Silently exit if one can't connect to server.
  -S, --socket=name   Socket file to use for connection.
  -i, --sleep=#       Execute commands again and again with a sleep between.
  -u, --user=name     User for login if not current user.
  -v, --verbose       Write more information.
  -V, --version       Output version information and exit.
  -E, --vertical      Print output vertically. Is similar to --relative, but
                      prints output vertically.
  -w, --wait[=#]      Wait and retry if connection is down.
  --connect_timeout=#
  --shutdown_timeout=#

Variables (--variable-name=value)
and boolean options {FALSE|TRUE}  Value (after reading options)
--------------------------------- -----------------------------
count                             0
force                             FALSE
compress                          FALSE
character-sets-dir                (No default value)
default-character-set             (No default value)
host                              (No default value)
port                              3306
relative                          FALSE
socket                            /tmp/mysql.sock
sleep                             0
user                              postfix
verbose                           FALSE
vertical                          FALSE
connect_timeout                   43200
shutdown_timeout                  3600

Default options are read from the following files in the given order:
/etc/my.cnf ~/.my.cnf /usr/local/mysql/etc/my.cnf
The following groups are read: mysqladmin client
The following options may be given as the first argument:
--print-defaults        Print the program argument list and exit
--no-defaults           Don't read default options from any options file
--defaults-file=#       Only read default options from the given file #
--defaults-extra-file=# Read this file after the global files are read

Where command is a one or more of: (Commands may be shortened)
  create databasename   Create a new database
  debug                 Instruct server to write debug information to log
  drop databasename     Delete a database and all its tables
  extended-status       Gives an extended status message from the server
  flush-hosts           Flush all cached hosts
  flush-logs            Flush all logs
  flush-status          Clear status variables
  flush-tables          Flush all tables
  flush-threads         Flush the thread cache
  flush-privileges      Reload grant tables (same as reload)
  kill id,id,...        Kill mysql threads
  password new-password Change old password to new-password, MySQL 4.1 hashing.
  old-password new-password Change old password to new-password in old format.

  ping                  Check if mysqld is alive
  processlist           Show list of active threads in server
  reload                Reload grant tables
  refresh               Flush all tables and close and open logfiles
  shutdown              Take server down
  status                Gives a short status message from the server
  start-slave           Start slave
  stop-slave            Stop slave
  variables             Prints variables available
  version               Get version info from server
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP