Čau,
mám problém s postfixem, řešil jsem ho 2 dny ale spíš jsem to zhoršil. Jedná se o toto:
Potřebuji nastavit SASL na SMTP, jenom jméno a heslo (nemusí být TLS) Potřebuji abych mohl z jakékoliv adresy posílat cokoliv kamkoliv. Jediná překážka aby byla jméno a heslo.
Moje nastavení:
master.cf:
#
# Postfix master process configuration file. For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# Do not forget to execute "postfix reload" after editing this file.
#
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - - - - smtpd
smtps inet n - - - - smtpd
#628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - - 300 1 oqmgr
tlsmgr unix - - - 1000? 1 tlsmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - - - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - - - - smtp
-o smtp_fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - - - - showq
error unix - - - - - error
retry unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent. See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}
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 (Ubuntu)
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_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.
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = prodatainfo.cz, localhost, come-n-play.cz
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
smtpd_delay_reject = no
virtual_maps = hash:/etc/postfix/virtual
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $mydestination
broken_sasl_auth_clients = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
sasl-passwd (postmap jsem udělal)
* user:pass
Logy
mail.log (stejné jako mail.info)
Feb 1 00:54:05 Server postfix/master[4344]: daemon started -- version 2.5.1, configuration /etc/postfix
Feb 1 00:54:09 Server dovecot: Dovecot v1.0.10 starting up
Feb 1 00:54:42 Server postfix/smtpd[4527]: connect from unknown[77.48.121.138]
Feb 1 00:54:46 Server postfix/smtpd[4529]: connect from unknown[77.48.121.138]
Feb 1 00:54:50 Server postfix/smtpd[4527]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory
Feb 1 00:54:50 Server postfix/smtpd[4527]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory
Feb 1 00:54:50 Server postfix/smtpd[4527]: warning: SASL authentication failure: Password verification failed
Feb 1 00:54:50 Server postfix/smtpd[4527]: warning: unknown[77.48.121.138]: SASL PLAIN authentication failed: authentication failure
Feb 1 00:54:50 Server postfix/smtpd[4527]: disconnect from unknown[77.48.121.138]
Feb 1 00:54:53 Server postfix/smtpd[4529]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory
Feb 1 00:54:53 Server postfix/smtpd[4529]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory
Feb 1 00:54:53 Server postfix/smtpd[4529]: warning: SASL authentication failure: Password verification failed
Feb 1 00:54:53 Server postfix/smtpd[4529]: warning: unknown[77.48.121.138]: SASL PLAIN authentication failed: authentication failure
Feb 1 00:54:53 Server postfix/smtpd[4529]: lost connection after AUTH from unknown[77.48.121.138]
Feb 1 00:54:53 Server postfix/smtpd[4529]: disconnect from unknown[77.48.121.138]
mail.err je prázdný
mail.warn
Feb 1 00:54:50 Server postfix/smtpd[4527]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory
Feb 1 00:54:50 Server postfix/smtpd[4527]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory
Feb 1 00:54:50 Server postfix/smtpd[4527]: warning: SASL authentication failure: Password verification failed
Feb 1 00:54:50 Server postfix/smtpd[4527]: warning: unknown[77.48.121.138]: SASL PLAIN authentication failed: authentication failure
Feb 1 00:54:53 Server postfix/smtpd[4529]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory
Feb 1 00:54:53 Server postfix/smtpd[4529]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory
Feb 1 00:54:53 Server postfix/smtpd[4529]: warning: SASL authentication failure: Password verification failed
Feb 1 00:54:53 Server postfix/smtpd[4529]: warning: unknown[77.48.121.138]: SASL PLAIN authentication failed: authentication failure
Kdyby byl někdo tak laskav a pomohl mi s tím? Kdyby bylo třeba další info tak dodám.
Díky