@rtem |
|
![]()
Темы:
32
Сообщения:
127
Участник с: 04 января 2009
|
Всем привет, такая проблема настроил почту, но postfix не видит saslauthd. Так почта работает письма ходят, но никак не могу настроить smtps[[email protected] arch]# cat /usr/lib/sasl2/smtpd.conf pwcheck_method: saslauthd mech_list: plain login saslauthd_path: /var/run/saslauthd/mux log_level: 7 вот postconf -n alias_database = $alias_maps alias_maps = hash:/etc/postfix/aliases broken_sasl_auth_clients = yes command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/lib/postfix data_directory = /var/lib/postfix debug_peer_level = 2 html_directory = no local_recipient_maps = $virtual_mailbox_maps local_transport = virtual mail_owner = postfix mailq_path = /usr/bin/mailq manpage_directory = /usr/share/man mydomain = nix.com myhostname = mail.nix.com newaliases_path = /usr/bin/newaliases queue_directory = /var/spool/postfix readme_directory = no relay_domains = * sample_directory = /etc/postfix/sample sendmail_path = /usr/sbin/sendmail setgid_group = postdrop smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = $mydomain smtpd_sasl_security_options = noanonymous smtpd_sasl_tls_security_options = $smtpd_sasl_security_options smtpd_tls_auth_only = yes smtpd_tls_cert_file = /etc/ssl/certs/server.crt smtpd_tls_key_file = /etc/ssl/private/server.key smtpd_tls_loglevel = 1 transport_maps = hash:/etc/postfix/transport unknown_local_recipient_reject_code = 550 virtual_alias_maps = proxy:mysql:/etc/postfix/virtual_alias_maps.cf virtual_gid_maps = static:5000 virtual_mailbox_base = /home/vmail virtual_mailbox_domains = proxy:mysql:/etc/postfix/virtual_domains_maps.cf virtual_mailbox_limit = 512000000 virtual_mailbox_maps = proxy:mysql:/etc/postfix/virtual_mailbox_maps.cf virtual_minimum_uid = 5000 virtual_transport = virtual virtual_uid_maps = static:5000 вот тест авторизации [[email protected] arch]# testsaslauthd -u "[email protected]" -p "user1" -s smtp 0: OK "Success." [[email protected] arch]# telnet localhost imap Trying ::1... Connected to localhost. Escape character is '^]'. * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2011 Double Prtribution information. a login "[email protected]" user1 a OK LOGIN Ok. b select "Inbox" * FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent) * OK [PERMANENTFLAGS (\* \Draft \Answered \Flagged \Deleted \Seen)] Limited * 1 EXISTS * 0 RECENT * OK [UIDVALIDITY 1314575893] Ok * OK [MYRIGHTS "acdilrsw"] ACL b OK [READ-WRITE] Ok z logout * BYE Courier-IMAP server shutting down z OK LOGOUT completed Connection closed by foreign host. [[email protected] arch]# telnet localhost 25 Trying ::1... Connection failed: Connection refused Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 mail.nix.com ESMTP Postfix ehlo localhost 250-mail.nix.com 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN mail from: [email protected] 250 2.1.0 Ok rcpt to: [email protected] 250 2.1.5 Ok Data 354 End data with <CR><LF>.<CR><LF> Test mail . 250 2.0.0 Ok: queued as 87E771BF74E quit 221 2.0.0 Bye Connection closed by foreign host. а вот и проблема [[email protected] arch]# telnet localhost 25 Trying ::1... Connection failed: Connection refused Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 mail.nix.com ESMTP Postfix ehlo localhost 250-mail.nix.com 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN auth plain 503 5.5.1 Error: authentication not enabled При установке использовал вот эту сатью вики https://wiki.archlinux.org/index.php/Si … ail_System буду благодарен за помощь, может еще какой конфиг выложить? чтобы было нагляднее. |