[Postfixbuch-users] reject_unauthenticated_sender_login_mismatchignored no SASL support

Holm Kapschitzki holm at x-provi.de
Do Jul 30 14:55:25 CEST 2009


Kai Fürstenberg schrieb:

> In der master.cf, die Holm als saslfinger-output mitgeliefert hat,
> taucht die Restriktion aber überhaupt nicht auf.
> 


ich habe bei folgender Einstellung nochmal saslfinger durchgeführt:

smtpd_recipient_restrictions =
   reject_non_fqdn_recipient,
   reject_non_fqdn_sender,
   reject_unknown_sender_domain,
   reject_unknown_recipient_domain,
   reject_unlisted_recipient,
   reject_authenticated_sender_login_mismatch,
   permit_mynetworks,
   reject_sender_login_mismatch,
   permit_sasl_authenticated,
   reject_unauth_destination,
#   check_recipient_access hash:/etc/postfix/check_recipient_access,
   check_client_access cidr:/etc/postfix/postfix-dnswl-permit,
   reject_invalid_hostname,
   reject_unauth_pipelining,
   reject_rbl_client zen.spamhaus.org,
   check_policy_service inet:127.0.0.1:60000,
   permit


saslfinger - postfix Cyrus sasl configuration Do 30. Jul 14:52:06 CEST 2009
version: 1.0.4
mode: server-side SMTP AUTH

-- basics --
Postfix: 2.5.5
System: Debian GNU/Linux 5.0 \n \l

-- smtpd is linked to --
	libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x00002b9e20602000)

-- active SMTP AUTH and TLS parameters for smtpd --
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
smtpd_tls_CApath = /etc/ssl/certs
smtpd_tls_auth_only = no
smtpd_tls_cert_file =
/etc/postfix/ssl/certs/smtp_mx18-xxx_de_public_cert.pem
smtpd_tls_key_file = /etc/postfix/ssl/certs/smtp_mx18-xxx_de_key.pem
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = btree:/etc/postfix/smtpd_session_cache
smtpd_tls_session_cache_timeout = 7200s
smtpd_use_tls = yes


-- listing of /usr/lib64/sasl2 --
insgesamt 952
drwxr-xr-x  2 root root  4096 18. Jun 07:03 .
drwxr-xr-x 64 root root 36864 22. Jul 20:41 ..
-rw-r--r--  1 root root 19084 24. Mai 18:31 libanonymous.a
-rw-r--r--  1 root root   855 24. Mai 18:31 libanonymous.la
-rw-r--r--  1 root root 16048 24. Mai 18:31 libanonymous.so
-rw-r--r--  1 root root 16048 24. Mai 18:31 libanonymous.so.2
-rw-r--r--  1 root root 16048 24. Mai 18:31 libanonymous.so.2.0.22
-rw-r--r--  1 root root 22138 24. Mai 18:31 libcrammd5.a
-rw-r--r--  1 root root   841 24. Mai 18:31 libcrammd5.la
-rw-r--r--  1 root root 19248 24. Mai 18:31 libcrammd5.so
-rw-r--r--  1 root root 19248 24. Mai 18:31 libcrammd5.so.2
-rw-r--r--  1 root root 19248 24. Mai 18:31 libcrammd5.so.2.0.22
-rw-r--r--  1 root root 60696 24. Mai 18:31 libdigestmd5.a
-rw-r--r--  1 root root   864 24. Mai 18:31 libdigestmd5.la
-rw-r--r--  1 root root 48576 24. Mai 18:31 libdigestmd5.so
-rw-r--r--  1 root root 48576 24. Mai 18:31 libdigestmd5.so.2
-rw-r--r--  1 root root 48576 24. Mai 18:31 libdigestmd5.so.2.0.22
-rw-r--r--  1 root root 19422 24. Mai 18:31 liblogin.a
-rw-r--r--  1 root root   835 24. Mai 18:31 liblogin.la
-rw-r--r--  1 root root 16720 24. Mai 18:31 liblogin.so
-rw-r--r--  1 root root 16720 24. Mai 18:31 liblogin.so.2
-rw-r--r--  1 root root 16720 24. Mai 18:31 liblogin.so.2.0.22
-rw-r--r--  1 root root 38564 24. Mai 18:31 libntlm.a
-rw-r--r--  1 root root   829 24. Mai 18:31 libntlm.la
-rw-r--r--  1 root root 32496 24. Mai 18:31 libntlm.so
-rw-r--r--  1 root root 32496 24. Mai 18:31 libntlm.so.2
-rw-r--r--  1 root root 32496 24. Mai 18:31 libntlm.so.2.0.22
-rw-r--r--  1 root root 19462 24. Mai 18:31 libplain.a
-rw-r--r--  1 root root   835 24. Mai 18:31 libplain.la
-rw-r--r--  1 root root 16688 24. Mai 18:31 libplain.so
-rw-r--r--  1 root root 16688 24. Mai 18:31 libplain.so.2
-rw-r--r--  1 root root 16688 24. Mai 18:31 libplain.so.2.0.22
-rw-r--r--  1 root root 29764 24. Mai 18:31 libsasldb.a
-rw-r--r--  1 root root   866 24. Mai 18:31 libsasldb.la
-rw-r--r--  1 root root 22136 24. Mai 18:31 libsasldb.so
-rw-r--r--  1 root root 22136 24. Mai 18:31 libsasldb.so.2
-rw-r--r--  1 root root 22136 24. Mai 18:31 libsasldb.so.2.0.22
-rw-r--r--  1 root root 33600 24. Mai 18:31 libsql.a
-rw-r--r--  1 root root   964 24. Mai 18:31 libsql.la
-rw-r--r--  1 root root 27936 24. Mai 18:31 libsql.so
-rw-r--r--  1 root root 27936 24. Mai 18:31 libsql.so.2
-rw-r--r--  1 root root 27936 24. Mai 18:31 libsql.so.2.0.22

-- listing of /usr/lib/sasl2 --
insgesamt 952
drwxr-xr-x  2 root root  4096 18. Jun 07:03 .
drwxr-xr-x 64 root root 36864 22. Jul 20:41 ..
-rw-r--r--  1 root root 19084 24. Mai 18:31 libanonymous.a
-rw-r--r--  1 root root   855 24. Mai 18:31 libanonymous.la
-rw-r--r--  1 root root 16048 24. Mai 18:31 libanonymous.so
-rw-r--r--  1 root root 16048 24. Mai 18:31 libanonymous.so.2
-rw-r--r--  1 root root 16048 24. Mai 18:31 libanonymous.so.2.0.22
-rw-r--r--  1 root root 22138 24. Mai 18:31 libcrammd5.a
-rw-r--r--  1 root root   841 24. Mai 18:31 libcrammd5.la
-rw-r--r--  1 root root 19248 24. Mai 18:31 libcrammd5.so
-rw-r--r--  1 root root 19248 24. Mai 18:31 libcrammd5.so.2
-rw-r--r--  1 root root 19248 24. Mai 18:31 libcrammd5.so.2.0.22
-rw-r--r--  1 root root 60696 24. Mai 18:31 libdigestmd5.a
-rw-r--r--  1 root root   864 24. Mai 18:31 libdigestmd5.la
-rw-r--r--  1 root root 48576 24. Mai 18:31 libdigestmd5.so
-rw-r--r--  1 root root 48576 24. Mai 18:31 libdigestmd5.so.2
-rw-r--r--  1 root root 48576 24. Mai 18:31 libdigestmd5.so.2.0.22
-rw-r--r--  1 root root 19422 24. Mai 18:31 liblogin.a
-rw-r--r--  1 root root   835 24. Mai 18:31 liblogin.la
-rw-r--r--  1 root root 16720 24. Mai 18:31 liblogin.so
-rw-r--r--  1 root root 16720 24. Mai 18:31 liblogin.so.2
-rw-r--r--  1 root root 16720 24. Mai 18:31 liblogin.so.2.0.22
-rw-r--r--  1 root root 38564 24. Mai 18:31 libntlm.a
-rw-r--r--  1 root root   829 24. Mai 18:31 libntlm.la
-rw-r--r--  1 root root 32496 24. Mai 18:31 libntlm.so
-rw-r--r--  1 root root 32496 24. Mai 18:31 libntlm.so.2
-rw-r--r--  1 root root 32496 24. Mai 18:31 libntlm.so.2.0.22
-rw-r--r--  1 root root 19462 24. Mai 18:31 libplain.a
-rw-r--r--  1 root root   835 24. Mai 18:31 libplain.la
-rw-r--r--  1 root root 16688 24. Mai 18:31 libplain.so
-rw-r--r--  1 root root 16688 24. Mai 18:31 libplain.so.2
-rw-r--r--  1 root root 16688 24. Mai 18:31 libplain.so.2.0.22
-rw-r--r--  1 root root 29764 24. Mai 18:31 libsasldb.a
-rw-r--r--  1 root root   866 24. Mai 18:31 libsasldb.la
-rw-r--r--  1 root root 22136 24. Mai 18:31 libsasldb.so
-rw-r--r--  1 root root 22136 24. Mai 18:31 libsasldb.so.2
-rw-r--r--  1 root root 22136 24. Mai 18:31 libsasldb.so.2.0.22
-rw-r--r--  1 root root 33600 24. Mai 18:31 libsql.a
-rw-r--r--  1 root root   964 24. Mai 18:31 libsql.la
-rw-r--r--  1 root root 27936 24. Mai 18:31 libsql.so
-rw-r--r--  1 root root 27936 24. Mai 18:31 libsql.so.2
-rw-r--r--  1 root root 27936 24. Mai 18:31 libsql.so.2.0.22

-- listing of /etc/postfix/sasl --
insgesamt 12
drwxr-xr-x 2 root root 4096 18. Jun 16:11 .
drwxr-xr-x 4 root root 4096 30. Jul 14:40 ..
-rw-r--r-- 1 root root   62 18. Jun 15:13 smtpd.conf




-- content of /etc/postfix/sasl/smtpd.conf --
log_level: 3
pwcheck_method: saslauthd
mech_list: plain login

-- content of /etc/postfix/sasl/smtpd.conf --
log_level: 3
pwcheck_method: saslauthd
mech_list: plain login


-- active services in /etc/postfix/master.cf --
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)

xx.xx.89.34:25	inet	n	-  	n  	-  	25   	smtpd
   -o content_filter=smtp:[127.0.0.1]:10024
   -o receive_override_options=no_address_mappings
   -o smtpd_sasl_auth_enable=no
   -o smtpd_client_connection_rate_limit=5
   -o smtpd_client_connection_count_limit=10
   -o smtpd_client_message_rate_limit=20

127.0.0.1:10025 	inet 	n  	-     	n      -     	-     	smtpd
   -o content_filter=spamassassin
   -o local_recipient_maps=
   -o relay_recipient_maps=
   -o smtpd_restriction_classes=
   -o smtpd_client_restrictions=
   -o smtpd_helo_restrictions=
   -o smtpd_sender_restrictions=
   -o smtpd_recipient_restrictions=permit_mynetworks,reject
   -o mynetworks=127.0.0.0/8
   -o strict_rfc821_envelopes=yes
   -o smtpd_error_sleep_time=0
   -o smtpd_soft_error_limit=1001
   -o smtpd_hard_error_limit=1000
   -o smtpd_client_connection_count_limit=0
   -o smtpd_client_connection_rate_limit=0
   -o
receive_override_options=no_header_body_checks,no_unknown_recipient_checks

xx.xx.89.35:25	inet 	n 	- 	n 	- 	25 	smtpd
   -o smtpd_client_connection_rate_limit=5
   -o smtpd_client_connection_count_limit=10
   -o smtpd_client_message_rate_limit=20

xx.xx.89.38:25	inet 	n 	- 	n 	- 	25 	smtpd
   -o smtpd_client_connection_rate_limit=5
   -o smtpd_client_connection_count_limit=10
   -o smtpd_client_message_rate_limit=20

xx.xx.89.39:25	inet 	n 	- 	n 	- 	25 	smtpd
   -o smtpd_client_connection_rate_limit=5
   -o smtpd_client_connection_count_limit=10
   -o smtpd_client_message_rate_limit=20

xx.xx.89.43:25	inet 	n 	- 	n 	- 	25 	smtpd
   -o smtpd_client_connection_rate_limit=5
   -o smtpd_client_connection_count_limit=10
   -o smtpd_client_message_rate_limit=20

xx.xx.89.44:25	inet 	n 	- 	n 	- 	25 	smtpd
   -o smtpd_client_connection_rate_limit=5
   -o smtpd_client_connection_count_limit=10
   -o smtpd_client_message_rate_limit=20

xx.xx.89.45:25	inet 	n 	- 	n 	- 	25 	smtpd
   -o smtpd_client_connection_rate_limit=5
   -o smtpd_client_connection_count_limit=10
   -o smtpd_client_message_rate_limit=20


xx.xx.89.46:25	inet 	n 	- 	n 	- 	25 	smtpd
   -o smtpd_client_connection_rate_limit=5
   -o smtpd_client_connection_count_limit=10
   -o smtpd_client_message_rate_limit=20

127.0.0.1:25  	inet  	n    	-    	n     	-    	-      smtpd

pickup    fifo  n       -       -       60      1       pickup
   -o content_filter=
   -o receive_override_options=no_header_body_checks
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       -       300     1       qmgr
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
smtp      unix  -       -       -       -       -       smtp
relay     unix  -       -       -       -       -       smtp
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail
($recipient)
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 -d -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}
smtps	  inet	n	-	n	-	-	smtpd -o smtpd_tls_wrappermode=yes -o
smtpd_sasl_auth_enable=yes
cyrus     unix  -       n       n       -       -       pipe
  flags=R user=cyrus argv=/usr/sbin/cyrdeliver -r ${sender} -m
${extension} ${user}
spamassassin    unix  -       n       n       -       -       pipe
       user=spamd argv=/usr/bin/spamc  -f -e /usr/sbin/sendmail -oi -f
${sender} ${recipient}
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
scache    unix  -       -       -       -       1       scache
discard   unix  -       -       -       -       -       discard

-- mechanisms on localhost --
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN


-- end of saslfinger output --

 Holm



Mehr Informationen über die Mailingliste Postfixbuch-users