Od niedawna wziąłem się za Linuksa więc proszę o wyrozumiałość jeżeli zadam jakieś głupie pytanie.
Mój problem jest następujący:
Potrzebuje pośredniczący serwer mailowy do wysyłania i odbierania poczty. Czyli kiedy chcę wysłać wiadomość ze swojej skrzynki np. na wp.pl to idzie ona przez postfixa, z odbiorem podobnie (prawdopodobnie fetchmail).
Postfix jest już wstępnie skonfigurowany. ale przy próbie wysłania wiadomości dostaję w logach komunikat:
Kod: Zaznacz cały
warning: SASL authentication failure: No worthy mechs found
Oto mój konfig.
main.cf
Kod: Zaznacz cały
# 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)
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 = no
# 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=yes
smtpd_recipient_restrictions = permit, reject_unauth_destination
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 = localhost.xxx
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = localhost, localhost.localdomain
mynetworks = 127.0.0.0/8, 192.168.1.0/24
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
inet_interfaces = loopback-only
recipient_delimiter = +
inet_interfaces = loopback-only
#SASL Settings
smtp_tls_loglevel=1
smtp_tls_security_level = encrypt
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl/passwd
smtp_sasl_security_options = noanonymous
inet_protocols = all
smtp_generic_maps=hash:/etc/postfix/generic
relayhost=[smtp.wp.pl]:587
Kod: Zaznacz cały
[smtp.wp.pl]:587 [email]login@wp.pl[/email] :p assword
Kod: Zaznacz cały
piotr@domain.xxx [email]login@wp.pl[/email]