Articles of saslauthd

邮件服务器内存缓冲区错误

我的邮件服务器不时发送任何新的邮件。 发生这种情况时,我find下面的错误日志, Jun 22 23:10:18 myserver saslauthd[3967]: DEBUG: auth_pam: pam_authenticate failed: Memory buffer error Jun 22 23:10:18 myserver saslauthd[3971]: DEBUG: auth_pam: pam_authenticate failed: Memory buffer error Jun 22 23:10:19 myserver saslauthd[3972]: DEBUG: auth_pam: pam_authenticate failed: Memory buffer error Jun 22 23:10:19 myserver saslauthd[3968]: DEBUG: auth_pam: pam_authenticate failed: Memory buffer error Jun 22 23:10:20 myserver saslauthd[3969]: […]

NO 来自远程authentication服务器的意外响应

是我在strace中运行testsaslauthd时看到的 socket(PF_LOCAL, SOCK_STREAM, 0) = 3 connect(3, {sa_family=AF_LOCAL, sun_path="/var/run/saslauthd/mux"}, 110) = 0 writev(3, [{"\0\[email protected]\0\fxxx\0\4imap\0\0", 52}], 1) = 52 read(3, "\0@", 2) = 2 read(3, "NO [ALERT] Unexpected response from remote authentication server", 64) = 64 close(3) = 0 write(1, "0: NO \"authentication failed\"\n", 300: NO "authentication failed" ) = 30 exit_group(-1) = ? +++ exited […]

Postfix SMTP auth不能与虚拟邮箱+ SASL + Courier userdb一起使用

所以我已经阅读了各种教程和方法,我正在努力弄清楚如何在Postfix中使用虚拟邮箱进行SMTPauthentication。 我使用这个Ubuntu教程来设置。 我正在使用Courier-IMAP和POP3阅读邮件,似乎没有问题。 但是,用于读取邮箱的凭据不适用于SMTP。 我可以从/var/log/auth.log中看到正在使用PAM,这是否需要UNIX用户帐户才能工作? 正如我使用虚拟邮箱来避免创build用户帐户。 li305-246 saslauthd[22856]: DEBUG: auth_pam: pam_authenticate failed: Authentication failure li305-246 saslauthd[22856]: do_auth : auth failure: [user=fred] [service=smtp] [realm=] [mech=pam] [reason=PAM auth error] /var/log/mail.log li305-246 postfix/smtpd[27091]: setting up TLS connection from mail-pb0-f43.google.com[209.85.160.43] li305-246 postfix/smtpd[27091]: Anonymous TLS connection established from mail-pb0-f43.google.com[209.85.160.43]: TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits) li305-246 postfix/smtpd[27091]: warning: SASL authentication […]

debuggingPostfix Saslauthd PAM-PGsql身份validation失败

我已经设置了pam-pgsql来通过Saslauthd在Postfix的数据库中查找密码。 我可以使用命令行testing凭据: $ sudo testsaslauthd -u [email protected] -p password 0: NO "authentication failed" 身份validation将失败,我不知道为什么。 $ sudo tail /var/log/auth.log Feb 5 15:33:12 saslauthd[7460]: pam_unix(imap:auth): check pass; user unknown Feb 5 15:33:12 saslauthd[7460]: pam_unix(imap:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= Feb 5 15:33:14 saslauthd[7460]: DEBUG: auth_pam: pam_authenticate failed: Authentication failure Feb 5 15:33:14 saslauthd[7460]: do_auth […]

Postfix(SASL)/ MySQL:使用MD5encryption?

使用Postfix / SASL和MySQL时,是否可以使用MD5密码encryption来encryption密码? 目前,我的设置是使用MySQL CRYPT()函数,由于各种原因并不理想。

Ubuntu:Postfix和Cyrus预计saslauthd PID文件位于不同的位置

我在我的服务器上并行运行postfix和cyrus,据我所知,这是一个很常见的想法。 这两个守护进程都使用sasl授权。 然而,postfix正在寻找/ var / spool / postfix / var / run / saslauthd中的saslauthd pid文件,而cyrus正在寻找/ var / run / saslauthd。 现在,我可以创build从postfix目录到cyrus目录的软链接,一切正常。 奇怪的是,反过来也不行。 无论如何,我不认为这是一个合法的解决scheme。 我试图find任何configuration文件,我可以为cyrus和postfix设置sasl pid目录,但是实际上找不到任何configuration文件。 是否有可能在两个不同的导演中为saslauthd提供两个不同的pid文件? 谢谢你,斯蒂芬

search正确的方式来编译后缀

我正在从源代码编译最新版本的postfix时遇到问题。 目前我正在尝试编译版本3,因为Debian 7和最新的Ubuntu 14,10(版本2,9和2,11为后缀)是用Maildir协议configuration虚拟邮箱的bug。 我正在想使MySQL表存储本地别名和虚拟邮箱,但我想提供SMTP身份validation访问引入SASL与dovecot作为IMAP服务器。 CCARGS和AUXLIBS有什么区别? 我下载了cyrus-sasl包来构build和安装,并且使用这些参数指向makefiles: make CCARGS='-DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/tmp/cyrus-sasl/include' AUXLIBS='-lsasl2'其中include是文件夹与sasl来源。 这样,我在这里得到错误报告。 正如Mohsen所build议的,我附加了 -ldb -lnsl -lresolv 到AUXLIBS但它会引发另一个错误,我还没有find任何解决scheme,从这一点上继续。 这是错误: gcc -I. -I../../include -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/tmp/cyrus-sasl/include -DHAS_PCRE -UUSE_DYNAMIC_LIBS -DDEF_SHLIB_DIR=\"no\" -UUSE_DYNAMIC_MAPS -Wmissing-prototypes -Wformat -Wno-comment -g -O -I. -I../../include -DLINUX3 -c smtpd.c smtpd.c: In function 'xclient_cmd': smtpd.c:4028:11: error: 'SMTPD_STATE' has no member named 'tls_context' if (state->tls_context == 0) […]

集装箱的低熵

我想我的熵水平可能很低? cat /proc/sys/kernel/random/entropy_avail 我平均在132-178左右。 池大小默认为4096(这是虚拟器上的一个容器) 我也跑了: cat /dev/urandom | rngtest -c 1000 并得到: rngtest:启动FIPStesting rngtest: bits received from input: 20000032 rngtest: FIPS 140-2 successes: 999 rngtest: FIPS 140-2 failures: 1 rngtest: FIPS 140-2(2001-10-10) Monobit: 0 rngtest: FIPS 140-2(2001-10-10) Poker: 0 rngtest: FIPS 140-2(2001-10-10) Runs: 1 rngtest: FIPS 140-2(2001-10-10) Long run: 0 rngtest: FIPS 140-2(2001-10-10) Continuous […]

apt-get清除看似无关的包

我以某种方式设法删除/var/run/saslauthd目录,同时安装Postfix的身份validation,所以我试图apt-get purge ,然后重新安装各种saslauthd包,以重新生成所有的文件。 但是,当我试图运行apt-get purge libsasl2-2 sasl2-bin libsasl2-modules ,APT试图删除一些不相关的软件包,比如Apache和Git。 root@localhost:~# apt-get purge libsasl2-2 sasl2-bin libsasl2-modules Reading package lists… Done Building dependency tree Reading state information… Done The following packages were automatically installed and are no longer required: apache2-data apache2-utils bsdtar db-util db5.3-util debugedit fonts-droid-fallback fonts-noto-mono gamin ghostscript git-man imagemagick-common libapr1 libapr1-dev libaprutil1 libaprutil1-dbd-sqlite3 libarchive-tools libarchive13 […]

Apache 2.4替代mod_auth_shadow?

我的雇主多年来一直在运行RHEL 6.x和Apache httpd 2.2。 目前我们正在迁移到运行RHEL 7.1和Apache httpd 2.4的新硬件。 我们目前的网站有不同的地点,包含不同的客户端可下载的材料。 客户端都在服务器上有系统帐户。 我们目前基于客户端用户的组成员身份控制对位置的访问。 例如: <Location /xyzzy/*> AuthName "xyzzy product support" AuthShadow on AuthType Basic require group xyzzy Options Includes ExecCGI Indexes FollowSymLinks MultiViews </Location> 我们已经成功使用mod_auth_shadow在Apache 2.2下实现这个访问控制。 但是,我们发现这个模块在2.4下不会加载,因为模块调用了2.4中不存在的ap_requires() 。 我们已经注意到,RHEL 7默认运行 /usr/sbin/saslauthd -m /run/saslauthd -a pam 所以我一直在寻找使用PAM通过mod_authn_sasl作为mod_authn_sasl的替代。 我已经部分成功与这个Apacheconfiguration: <Location /xyzzy/*> AuthType Basic AuthName "xyzzy product support" AuthBasicProvider sasl […]