[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 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


Reply to: