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-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4dbc2ab7.9020...@gmail.com

Reply via email to