postfix cannot connect to saslauthd
Hello,
I've just configured a smtp server on Debian 6.0.1, but the smtp auth always fails. Here is the log from mail.log: Apr 29 05:05:49 hostname postfix/smtpd[13269]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory Apr 29 05:05:49 hostname postfix/smtpd[13269]: warning: localhost[127.0.0.1]: SASL login authentication failed: generic failure Apr 29 05:05:49 hostname postfix/smtpd[13269]: > localhost[127.0.0.1]: 535 5.7.8 Error: authentication failed: generic failure Apr 29 05:05:51 hostname postfix/smtpd[13269]: smtp_get: EOF I've checked that saslauthd is running. Here is the smtp.conf in /etc/postfix/sasl: pwcheck_method: saslauthd mech_list: PLAIN LOGIN log_level: 7 saslauthd_path:/var/run/saslauthd/mux smtpd is running chrooted. I've tested saslauthd with testsaslauthd, and everything is right with it. So what could I do? I can't figure out the reason. I'm a newbie here. Thanks. Regards, H Xu 04/30/2011 -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org Archive: 4DBBC2EE.4040601@gmail.com">http://lists.debian.org/4DBBC2EE.4040601@gmail.com |
postfix cannot connect to saslauthd
On Sat, 30 Apr 2011 16:06:06 +0800, H Xu wrote:
> I've just configured a smtp server on Debian 6.0.1, but the smtp auth > always fails. Here is the log from mail.log: > > Apr 29 05:05:49 hostname postfix/smtpd[13269]: warning: SASL > authentication failure: cannot connect to saslauthd server: No such file > or directory (...) If Postfix is run under a jail (chrooted) saslauth mux socket should be under a path where postfix can reach it (that's usually something under "/ var/spool/postfix/*". > smtpd is running chrooted. (...) Then carefully read the docs and readme files to setup saslauth in that way. Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org Archive: pan.2011.04.30.10.15.37@gmail.com">http://lists.debian.org/pan.2011.04.30.10.15.37@gmail.com |
postfix cannot connect to saslauthd
On 2011/4/30 18:15, Camaleón wrote:
On Sat, 30 Apr 2011 16:06:06 +0800, H Xu wrote: I've just configured a smtp server on Debian 6.0.1, but the smtp auth always fails. Here is the log from mail.log: Apr 29 05:05:49 hostname postfix/smtpd[13269]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory (...) If Postfix is run under a jail (chrooted) saslauth mux socket should be under a path where postfix can reach it (that's usually something under "/ var/spool/postfix/*". smtpd is running chrooted. (...) Then carefully read the docs and readme files to setup saslauth in that way. Greetings, Thanks. I don't know how this new problem comes. Whatever coming mail will be blocked by postfix: Apr 30 08:24:15 hostname postfix/smtpd[3443]: match_hostname: mail-pw0-f54.google.com ~? [::ffff:127.0.0.0]/104 Apr 30 08:24:15 hostname postfix/smtpd[3443]: match_hostaddr: 209.85.160.54 ~? [::ffff:127.0.0.0]/104 Apr 30 08:24:15 hostname postfix/smtpd[3443]: match_hostname: mail-pw0-f54.google.com ~? [::1]/128 Apr 30 08:24:15 hostname postfix/smtpd[3443]: match_hostaddr: 209.85.160.54 ~? [::1]/128 Apr 30 08:24:15 hostname postfix/smtpd[3443]: match_list_match: mail-pw0-f54.google.com: no match Apr 30 08:24:15 hostname postfix/smtpd[3443]: match_list_match: 209.85.160.54: no match Here is the main.cf: # See /usr/share/postfix/main.cf.dist for a commented, more complete version # Debian specific: Specifying a file name will cause the first # line of that file to be used as the name. The Debian default # is /etc/mailname. #myorigin = /etc/mailname # smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) smtpd_banner = $myhostname ESMTP $mail_name biff = no # appending .domain is the MUA's job. append_dot_mydomain = no # Uncomment the next line to generate "delayed mail" warnings #delay_warning_time = 4h readme_directory = /usr/share/doc/postfix # TLS parameters smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key smtpd_use_tls=no smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for # information on enabling SSL in the smtp client. myhostname = hostname.mail.hostname.com alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = hostname.com, hostname.mail.hostname.com, localhost.mail.hostname.com, localhost relayhost = mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_command = procmail -a "$EXTENSION" mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all inet_protocols = all html_directory = /usr/share/doc/postfix/html virtual_mailbox_maps = mysql:/etc/postfix/mysql-mailbox.cf virtual_alias_maps = mysql:/etc/postfix/mysql-virtual.cf # virtual_mailbox_base = /var/vmail smtp_sasl_path=smtpd smtpd_sasl_auth_enable = yes broken_sasl_auth_clients = yes smtpd_sasl_security_options = noanonymous smtpd_sasl_local_domain = hostname.com I really don't know what's going on here.... Thanks for your help. Regards, H Xu 2011/4/30 -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org Archive: 4DBC2AB7.9020302@gmail.com">http://lists.debian.org/4DBC2AB7.9020302@gmail.com |
postfix cannot connect to saslauthd
On Sat, 30 Apr 2011 23:28:55 +0800, H Xu wrote:
(next time open a new thread so things don't get mixed...) > Thanks. I don't know how this new problem comes. Whatever coming mail > will be blocked by postfix: > > Apr 30 08:24:15 hostname postfix/smtpd[3443]: match_hostname: > mail-pw0-f54.google.com ~? [::ffff:127.0.0.0]/104 Apr 30 08:24:15 > hostname postfix/smtpd[3443]: match_hostaddr: 209.85.160.54 ~? > [::ffff:127.0.0.0]/104 Apr 30 08:24:15 hostname postfix/smtpd[3443]: > match_hostname: mail-pw0-f54.google.com ~? [::1]/128 > Apr 30 08:24:15 hostname postfix/smtpd[3443]: match_hostaddr: > 209.85.160.54 ~? [::1]/128 > Apr 30 08:24:15 hostname postfix/smtpd[3443]: match_list_match: > mail-pw0-f54.google.com: no match > Apr 30 08:24:15 hostname postfix/smtpd[3443]: match_list_match: > 209.85.160.54: no match It seems the sender is being rejected by some of your Postfix rules/setup. What were you exactly doing when that message came out? > mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 Here could be the problem. You are using a very limited network scope (only e-mail from localhost/loopback). > I really don't know what's going on here.... If this is your first Postfix setup, I would suggest you to first configure Postfix un-chrooted and try to setup a local account and make the basic tests (sending/receiving from your lan). Then you can start increasing the setup difficulty (by adding saslauth, allowing remote connections, setup a real host with an external - routeable- IP...) and finally, when all of the above is working properly, setup the jail. Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org Archive: pan.2011.04.30.21.32.32@gmail.com">http://lists.debian.org/pan.2011.04.30.21.32.32@gmail.com |
postfix cannot connect to saslauthd
On Sun, May 1, 2011 at 5:32 AM, Camaleón <noelamac@gmail.com> wrote:
> On Sat, 30 Apr 2011 23:28:55 +0800, H Xu wrote: > > (next time open a new thread so things don't get mixed...) > >> Thanks. I don't know how this new problem comes. Whatever coming mail >> will be blocked by postfix: >> >> Apr 30 08:24:15 hostname postfix/smtpd[3443]: match_hostname: >> mail-pw0-f54.google.com ~? [::ffff:127.0.0.0]/104 Apr 30 08:24:15 >> hostname postfix/smtpd[3443]: match_hostaddr: 209.85.160.54 ~? >> [::ffff:127.0.0.0]/104 Apr 30 08:24:15 hostname postfix/smtpd[3443]: >> match_hostname: mail-pw0-f54.google.com ~? [::1]/128 >> Apr 30 08:24:15 hostname postfix/smtpd[3443]: match_hostaddr: >> 209.85.160.54 ~? [::1]/128 >> Apr 30 08:24:15 hostname postfix/smtpd[3443]: match_list_match: >> mail-pw0-f54.google.com: no match >> Apr 30 08:24:15 hostname postfix/smtpd[3443]: match_list_match: >> 209.85.160.54: no match > > It seems the sender is being rejected by some of your Postfix rules/setup. > > What were you exactly doing when that message came out? I was sending a message from a gmail to my domain. >> mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 > > Here could be the problem. You are using a very limited network scope > (only e-mail from localhost/loopback). I've changed my networks_style = class, but still not working:( >> I really don't know what's going on here.... > > If this is your first Postfix setup, I would suggest you to first > configure Postfix un-chrooted and try to setup a local account and make > the basic tests (sending/receiving from your lan). > > Then you can start increasing the setup difficulty (by adding saslauth, > allowing remote connections, setup a real host with an external - > routeable- IP...) and finally, when all of the above is working properly, > setup the jail. Thanks. I'll notice this. Regards, H Xu 05/01/2011 -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org Archive: BANLkTikX=OEzank394ijRd2h+14je0Wkdw@mail.gmail.com ">http://lists.debian.org/BANLkTikX=OEzank394ijRd2h+14je0Wkdw@mail.gmail.com |
postfix cannot connect to saslauthd
On Sun, May 1, 2011 at 5:32 AM, Camaleón <noelamac@gmail.com> wrote:
> On Sat, 30 Apr 2011 23:28:55 +0800, H Xu wrote: > > (next time open a new thread so things don't get mixed...) > >> Thanks. I don't know how this new problem comes. Whatever coming mail >> will be blocked by postfix: >> >> Apr 30 08:24:15 hostname postfix/smtpd[3443]: match_hostname: >> mail-pw0-f54.google.com ~? [::ffff:127.0.0.0]/104 Apr 30 08:24:15 >> hostname postfix/smtpd[3443]: match_hostaddr: 209.85.160.54 ~? >> [::ffff:127.0.0.0]/104 Apr 30 08:24:15 hostname postfix/smtpd[3443]: >> match_hostname: mail-pw0-f54.google.com ~? [::1]/128 >> Apr 30 08:24:15 hostname postfix/smtpd[3443]: match_hostaddr: >> 209.85.160.54 ~? [::1]/128 >> Apr 30 08:24:15 hostname postfix/smtpd[3443]: match_list_match: >> mail-pw0-f54.google.com: no match >> Apr 30 08:24:15 hostname postfix/smtpd[3443]: match_list_match: >> 209.85.160.54: no match > > It seems the sender is being rejected by some of your Postfix rules/setup. > > What were you exactly doing when that message came out? > >> mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 > > Here could be the problem. You are using a very limited network scope > (only e-mail from localhost/loopback). > >> I really don't know what's going on here.... > > If this is your first Postfix setup, I would suggest you to first > configure Postfix un-chrooted and try to setup a local account and make > the basic tests (sending/receiving from your lan). > > Then you can start increasing the setup difficulty (by adding saslauth, > allowing remote connections, setup a real host with an external - > routeable- IP...) and finally, when all of the above is working properly, > setup the jail. BTW, I was able to send mails from my domain to others, not still not able to send a message from my domain to my domain. Regards, H Xu 05/01/2011 -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org Archive: BANLkTinVWu49i-+wkdv55fi+EpGjxM8dmg@mail.gmail.com">http://lists.debian.org/BANLkTinVWu49i-+wkdv55fi+EpGjxM8dmg@mail.gmail.com |
postfix cannot connect to saslauthd
On 05/01/2011 08:24 AM, H Xu wrote:
On Sun, May 1, 2011 at 5:32 AM, Camaleón<noelamac@gmail.com> wrote: On Sat, 30 Apr 2011 23:28:55 +0800, H Xu wrote: (next time open a new thread so things don't get mixed...) Thanks. I don't know how this new problem comes. Whatever coming mail will be blocked by postfix: Apr 30 08:24:15 hostname postfix/smtpd[3443]: match_hostname: mail-pw0-f54.google.com ~? [::ffff:127.0.0.0]/104 Apr 30 08:24:15 hostname postfix/smtpd[3443]: match_hostaddr: 209.85.160.54 ~? [::ffff:127.0.0.0]/104 Apr 30 08:24:15 hostname postfix/smtpd[3443]: match_hostname: mail-pw0-f54.google.com ~? [::1]/128 Apr 30 08:24:15 hostname postfix/smtpd[3443]: match_hostaddr: 209.85.160.54 ~? [::1]/128 Apr 30 08:24:15 hostname postfix/smtpd[3443]: match_list_match: mail-pw0-f54.google.com: no match Apr 30 08:24:15 hostname postfix/smtpd[3443]: match_list_match: 209.85.160.54: no match It seems the sender is being rejected by some of your Postfix rules/setup. What were you exactly doing when that message came out? mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 Here could be the problem. You are using a very limited network scope (only e-mail from localhost/loopback). I really don't know what's going on here.... If this is your first Postfix setup, I would suggest you to first configure Postfix un-chrooted and try to setup a local account and make the basic tests (sending/receiving from your lan). Then you can start increasing the setup difficulty (by adding saslauth, allowing remote connections, setup a real host with an external - routeable- IP...) and finally, when all of the above is working properly, setup the jail. BTW, I was able to send mails from my domain to others, not still not able to send a message from my domain to my domain. I'm sorry, there is nothing wrong with the mail transportation from one host to another. I find out that postfix never uses "virtual" to do delivery but always uses "local". I've already set virtual_mailbox_domains in my main.cf. But still it's not working. Here is the main.cf: # See /usr/share/postfix/main.cf.dist for a commented, more complete version # Debian specific: Specifying a file name will cause the first # line of that file to be used as the name. The Debian default # is /etc/mailname. #myorigin = /etc/mailname # smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) smtpd_banner = $myhostname ESMTP $mail_name biff = no # appending .domain is the MUA's job. append_dot_mydomain = no # Uncomment the next line to generate "delayed mail" warnings #delay_warning_time = 4h readme_directory = /usr/share/doc/postfix # TLS parameters smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key smtpd_use_tls=no smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for # information on enabling SSL in the smtp client. myhostname = mydomain.mail.mydomain.com alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = mydomain.com, mydomain.mail.mydomain.com, localhost.mail.mydomain.com, localhost relayhost = mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_command = procmail -a "$EXTENSION" mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all inet_protocols = all html_directory = /usr/share/doc/postfix/html virtual_mailbox_domains = mydomain.com virtual_uid_maps = mysql:/etc/postfix/mysql-uid.cf virtual_gid_maps = mysql:/etc/postfix/mysql-gid.cf virtual_mailbox_maps = mysql:/etc/postfix/mysql-mailbox.cf virtual_alias_maps = mysql:/etc/postfix/mysql-virtual.cf virtual_mailbox_base = /var/vmail smtp_sasl_path=smtpd smtpd_sasl_auth_enable = yes broken_sasl_auth_clients = yes smtpd_sasl_security_options = noanonymous smtpd_sasl_local_domain = mydomain.com Thanks for you help. Regards, H Xu 05/01/2011 -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org Archive: 4DBCDC1B.5090605@gmail.com">http://lists.debian.org/4DBCDC1B.5090605@gmail.com |
postfix cannot connect to saslauthd
On Sun, 01 May 2011 12:05:47 +0800, H Xu wrote:
> On 05/01/2011 08:24 AM, H Xu wrote: >> BTW, I was able to send mails from my domain to others, not still not >> able to send a message from my domain to my domain. > > I'm sorry, there is nothing wrong with the mail transportation from one > host to another. I find out that postfix never uses "virtual" to do > delivery but always uses "local". I've already set > virtual_mailbox_domains in my main.cf. But still it's not working. > > > Here is the main.cf: (...) We need to see the Postfix error log or are you still getting the same message? Also, how are you sending the e-mail from Gmail, using Gmail's smtp server or using your Postfix as gateway? It is vital to know what is your current mail layout, that is, "how" are you using Postix. Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org Archive: pan.2011.05.01.13.41.59@gmail.com">http://lists.debian.org/pan.2011.05.01.13.41.59@gmail.com |
postfix cannot connect to saslauthd
On 2011/5/1 21:41, Camaleón wrote:
On Sun, 01 May 2011 12:05:47 +0800, H Xu wrote: On 05/01/2011 08:24 AM, H Xu wrote: BTW, I was able to send mails from my domain to others, not still not able to send a message from my domain to my domain. I'm sorry, there is nothing wrong with the mail transportation from one host to another. I find out that postfix never uses "virtual" to do delivery but always uses "local". I've already set virtual_mailbox_domains in my main.cf. But still it's not working. Here is the main.cf: (...) We need to see the Postfix error log or are you still getting the same message? Also, how are you sending the e-mail from Gmail, using Gmail's smtp server or using your Postfix as gateway? It is vital to know what is your current mail layout, that is, "how" are you using Postix. Hello, I've found the reason now. virtual_mailbox_domains' value is also in mydestination, so that's why postfix always uses local but not virtual. It's working now. Thanks for your help. Regards, H Xu 2011/5/2 -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org Archive: 4DBE0D1E.4080806@gmail.com">http://lists.debian.org/4DBE0D1E.4080806@gmail.com |
| All times are GMT. The time now is 07:14 AM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.