Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sasl problem. solved
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
concord
Apprentice
Apprentice


Joined: 02 Oct 2005
Posts: 193

PostPosted: Mon May 01, 2006 11:43 am    Post subject: sasl problem. solved Reply with quote

I have updated my server recently. Everything is Ok. But mail system have problem. Any one with vmail or real user account can receive or send mail through the webmail squirrelmail system. But cann't pass through the sasl, pam and tls by outlook express if by vmail account. Just real user can send mail by outlook expree.

Help me please!

Thanks in advance!
_________________
AMD64 Desktop
Pentium4 Laptop
Pentium3 Server


Last edited by concord on Wed May 03, 2006 9:23 am; edited 4 times in total
Back to top
View user's profile Send private message
concord
Apprentice
Apprentice


Joined: 02 Oct 2005
Posts: 193

PostPosted: Mon May 01, 2006 12:41 pm    Post subject: Re: sasl,pam or tls problem Reply with quote

concord wrote:
I have update my server recently. Everything is Ok. But mail system have problem. Any one with vmail or real user account can receive or send mail through the webmail squirrelmail system. But cann't pass through the sasl, pam and tls by outlook express if by vmail account. Just real user can send mail by outlook expree.

Help me please!

Thanks in advance!


I need your help urgently! Lot of my friends used my mail server and they prefer outlook express. I don't knew why real account is ok, but vmail user cann't pass through sasl, pam ,tls .... Maybe there is something wrong with user vmail?
_________________
AMD64 Desktop
Pentium4 Laptop
Pentium3 Server
Back to top
View user's profile Send private message
langthang
Retired Dev
Retired Dev


Joined: 27 Nov 2003
Posts: 620

PostPosted: Mon May 01, 2006 3:39 pm    Post subject: Reply with quote

post the output of:
Code:
# emerge postfix cyrus-sasl -vp
# postconf -n
# cat /etc/sasl2/smtpd.conf

along the the log shows failed session when some one send mail.
_________________
Gentoo users' map
Back to top
View user's profile Send private message
concord
Apprentice
Apprentice


Joined: 02 Oct 2005
Posts: 193

PostPosted: Tue May 02, 2006 6:05 am    Post subject: Reply with quote

langthang wrote:
post the output of:
Code:
# emerge postfix cyrus-sasl -vp
# postconf -n
# cat /etc/sasl2/smtpd.conf

along the the log shows failed session when some one send mail.


Thanks!

Please pay attention to following messages as your request:


ibm ~ # emerge postfix cyrus-sasl -vp

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild R ] mail-mta/postfix-2.2.5 -hardened +ipv6 +ldap* -mailwrapper -mbo x +mysql -nis +pam -postgres +sasl (-selinux) +ssl +vda 0 kB
[ebuild R ] dev-libs/cyrus-sasl-2.1.21-r2 +authdaemond +berkdb +crypt +gdbm -java -kerberos +ldap +mysql -ntlm_unsupported_patch +pam -postgres -sample -sr p +ssl -urandom 0 kB

Total size of downloads: 0 kB
ibm ~ #

ibm ~ # postconf -nn
alias_maps = mysql:/etc/postfix/mysql-aliases.cf
biff = no
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 20
empty_address_recipient = MAILER-DAEMON
home_mailbox = .maildir/
html_directory = /usr/share/doc/postfix-2.2.5/html
inet_interfaces = all
local_destination_concurrency_limit = 2
local_recipient_maps = $alias_maps $virtual_mailbox_maps unix:passwd.byname
local_transport = local
mail_owner = postfix
mailbox_command = /usr/bin/procmail -a "DOMAIN"
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mail.$mydomain, www.$mydomain, ftp.$mydomain, ibm.$mydomain
mydomain = ecomate.com.cn
myhostname = mail.ecomate.com.cn
mynetworks = 192.168.1.0/24, 127.0.0.0/8
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.2.5/readme
relocated_maps = mysql:/etc/postfix/mysql-relocated.cf
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
smtpd_restriction_classes = greylist
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/postfix/cacert.pem
smtpd_tls_cert_file = /etc/postfix/newcert.pem
smtpd_tls_key_file = /etc/postfix/newreq.pem
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual.cf
virtual_gid_maps = static:1003
virtual_mailbox_base = /
virtual_mailbox_domains = ecomate.com.cn,concordinnovation.kmip.net
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-maps.cf
virtual_minimum_uid = 1000
virtual_transport = virtual
virtual_uid_maps = static:1003
ibm ~ #

ibm ~ # cat /etc/sasl2/smtpd.conf
mech_list: PLAIN LOGIN
pwcheck_method: authdaemond
log_level: 3
authdaemon_path: /var/lib/courier/authdaemon/socket

Is there anything wrong?

Need your help urgently!
_________________
AMD64 Desktop
Pentium4 Laptop
Pentium3 Server
Back to top
View user's profile Send private message
concord
Apprentice
Apprentice


Joined: 02 Oct 2005
Posts: 193

PostPosted: Tue May 02, 2006 3:37 pm    Post subject: Reply with quote

langthang wrote:
post the output of:
Code:
# emerge postfix cyrus-sasl -vp
# postconf -n
# cat /etc/sasl2/smtpd.conf

along the the log shows failed session when some one send mail.


I cann't find what's wrong with my config file. Would you please help me right now?
_________________
AMD64 Desktop
Pentium4 Laptop
Pentium3 Server
Back to top
View user's profile Send private message
langthang
Retired Dev
Retired Dev


Joined: 27 Nov 2003
Posts: 620

PostPosted: Tue May 02, 2006 4:22 pm    Post subject: Reply with quote

concord wrote:
Code:
pwcheck_method: authdaemond

I used auxprop for my sasl, not sure if I can help much.
did you check if /etc/init.d/courier-authlib is running?
where is the log that shows failed login?

BTW, you have:
Code:

bm ~ # cat /etc/sasl2/smtpd.conf
mech_list: PLAIN LOGIN
pwcheck_method: authdaemond
log_level: 3
authdaemon_path: /var/lib/courier/authdaemon/socket

but accodring to http://asg.web.cmu.edu/cyrus/download/sasl/options.html, authdaemon_path isn't a valid parameter. It should be authdaemond_path.
_________________
Gentoo users' map
Back to top
View user's profile Send private message
concord
Apprentice
Apprentice


Joined: 02 Oct 2005
Posts: 193

PostPosted: Wed May 03, 2006 9:22 am    Post subject: Reply with quote

Thank! Shoul be authdaemond instead of authdaemon.

problem solved:

USE="authdaemond -mysql" emerge cyrus-sasl.
_________________
AMD64 Desktop
Pentium4 Laptop
Pentium3 Server
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum