[Postfixbuch-users] Problem?! mit Postgrey, Verify

Ziegler Dominik dominik.ziegler at haw-ingolstadt.de
Do Feb 24 16:19:55 CET 2011


Hallo zusammen,

ich stelle seit ein paar Stunden ein seltsames Verhalten fest. Es wird augenscheinlich ein greylisting für neue Adressen durchgeführt, was bei im AD existierenden Usern wunderbar funktioniert. Bei quatsch-Adressen kommt es sofort nach dem greylisting Eintrag im Log auch noch zusätzlich zum verify und anschließed 550 vom Exchange 2010. Die Zustellung usw. funktioniert wunderbar, nur wundert mich das Verhalten doch sehr, weil es bis vor kurzem noch anders war. Da wurde "richtig" ge-greylisted, heisst, greylisting weist die quatsch-mail mit 450 ab und das wars. Evtl. ists auch nur ein Verständisproblem meinerseits, bin Anfänger :-). Hier mal ein Auszug aus dem Log, bei dem es nicht funktioniert:

Feb 24 16:08:53 mailgate-1 postgrey[929]: action=greylist, reason=new, client_name=109-184-33-111.dynamic.mts-nn.ru, client_address=109.184.33.111, sender=Jacquelyn.9694553 at yahoo.com, recipient=quatsch-adresse at domain.tld
Feb 24 16:08:53 mailgate-1 postfix/cleanup[1713]: BFD7E17C097A: message-id=<20110224150853.BFD7E17C097A at mailgate-1.haw-ingolstadt.de>
Feb 24 16:08:53 mailgate-1 postfix/qmgr[1633]: BFD7E17C097A: from=<double-bounce at mailgate-1.fh-ingolstadt.de>, size=306, nrcpt=1 (queue active)
Feb 24 16:08:53 mailgate-1 postfix/smtp[1688]: BFD7E17C097A: enabling PIX workarounds: disable_esmtp delay_dotcrlf for 194.94.97.50[194.94.97.50]:25
Feb 24 16:08:55 mailgate-1 postfix/smtpd[1681]: disconnect from mailer13.agnitas.de[213.203.225.132]
Feb 24 16:08:58 mailgate-1 postfix/smtpd[1676]: warning: 59.162.204.186: hostname 59.162.204.186.dynamic-vizag.vsnl.net.in verification failed: Name or service not known
Feb 24 16:08:58 mailgate-1 postfix/smtpd[1676]: connect from unknown[59.162.204.186]
Feb 24 16:08:58 mailgate-1 postfix/smtp[1688]: BFD7E17C097A: to=< quatsch-adresse at domain.tld >, orig_to=< quatsch-adresse at domain.tld >, relay=194.94.97.50[194.94.97.50]:25, delay=5.1, delays=0.04/0/0/5.1, dsn=5.1.1, status=undeliverable (host 194.94.97.50[194.94.97.50] said: 550 5.1.1 User unknown (in reply to RCPT TO command))
Feb 24 16:08:59 mailgate-1 postfix/smtpd[1673]: NOQUEUE: reject: RCPT from 109-184-33-111.dynamic.mts-nn.ru[109.184.33.111]: 550 5.1.1 < quatsch-adresse at domain.tld >: Recipient address rejected: undeliverable address: host 194.94.97.50[194.94.97.50] said: 550 5.1.1 User unknown (in reply to RCPT TO command); from=<Jacquelyn.9694553 at yahoo.com> to=< quatsch-adresse at domain.tld > proto=SMTP helo=<109-184-33-111.dynamic.mts-nn.ru>
Feb 24 16:08:59 mailgate-1 postfix/smtpd[1673]: lost connection after RCPT from 109-184-33-111.dynamic.mts-nn.ru[109.184.33.111]
Feb 24 16:08:59 mailgate-1 postfix/smtpd[1673]: disconnect from 109-184-33-111.dynamic.mts-nn.ru[109.184.33.111]

Hier der Auszug, bei dem es funktioniert:

Feb 24 16:10:23 mailgate-1 postgrey[929]: action=greylist, reason=new, client_name=meetbiz.de, client_address=80.67.25.30, sender=ec4u-bounce at denkfabrik-group.com, recipient=existierende-adresse at domain.tld
Feb 24 16:10:23 mailgate-1 postfix/cleanup[1718]: AED4C17C097A: message-id=<20110224151023.AED4C17C097A at mailgate-1.haw-ingolstadt.de>
Feb 24 16:10:23 mailgate-1 postfix/qmgr[1633]: AED4C17C097A: from=<double-bounce at mailgate-1.fh-ingolstadt.de>, size=306, nrcpt=1 (queue active)
Feb 24 16:10:23 mailgate-1 postfix/smtp[1660]: AED4C17C097A: enabling PIX workarounds: disable_esmtp delay_dotcrlf for 194.94.97.50[194.94.97.50]:25
Feb 24 16:10:23 mailgate-1 postfix/smtp[1660]: AED4C17C097A: to=< existierende-adresse at domain.tld >, orig_to=< existierende-adresse at domain.tld >, relay=194.94.97.50[194.94.97.50]:25, delay=0.07, delays=0.04/0/0/0.03, dsn=2.1.5, status=deliverable (250 2.1.5 Recipient OK)
Feb 24 16:10:26 mailgate-1 postfix/smtpd[1676]: NOQUEUE: reject: RCPT from meetbiz.de[80.67.25.30]: 450 4.2.0 < existierende-adresse at domain.tld >: Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/fh-ingolstadt.de.html; from=<ec4u-bounce at denkfabrik-group.com> to=< existierende-adresse at domain.tld > proto=SMTP helo=<m30s24da.ispgateway.de>
Feb 24 16:10:26 mailgate-1 postfix/smtpd[1676]: disconnect from meetbiz.de[80.67.25.30]

postconf -n

address_verify_map = btree:/var/spool/postfix/data/verify
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
bounce_queue_lifetime = 3d
canonical_maps = hash:/etc/postfix/canonical
config_directory = /etc/postfix
inet_interfaces = all
inet_protocols = ipv4
mail_owner = postfix
mailbox_size_limit = 50000000
maximal_queue_lifetime = 3d
mydestination = $myhostname, localhost.$mydomain, mailgate-1.fh-ingolstadt.de
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relay_domains = hash:/etc/postfix/relay_domains
relayhost =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP
smtpd_recipient_restrictions = permit_mynetworks,                               check_client_access cidr:/etc/postfix/access-client,                            reject_unauth_pipelining,                     reject_unauth_destination,                               reject_invalid_hostname,                                reject_non_fqdn_recipient,                              reject_unknown_recipient_domain       check_policy_service inet:127.0.0.1:10023,                               reject_unverified_recipient,                            permit
smtpd_sender_restrictions = reject_non_fqdn_sender
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
soft_bounce = no
transport_maps = hash:/etc/postfix/transport
unverified_recipient_reject_code = 550

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
#submission inet n       -       -       -       -       smtpd
#  -o smtpd_tls_security_level=encrypt
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#smtps     inet  n       -       -       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#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}
#
# ====================================================================
#
# Recent Cyrus versions can use the existing "lmtp" master.cf entry.
#
# Specify in cyrus.conf:
#   lmtp    cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
#
# Specify in main.cf one or more of the following:
#  mailbox_transport = lmtp:inet:localhost
#  virtual_transport = lmtp:inet:localhost
#
# ====================================================================
#
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
#
#cyrus     unix  -       n       n       -       -       pipe
#  user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
#
# ====================================================================
# Old example of delivery via Cyrus.
#
#old-cyrus unix  -       n       n       -       -       pipe
#  flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
#
# ====================================================================
#
# 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}


Mit freundlichen Grüßen,

---------------------------------
Dominik Ziegler
Hochschule Ingolstadt
Rechenzentrum
Tel: 0841 9348-558
dominik.ziegler at haw-ingolstadt.de
---------------------------------




Mehr Informationen über die Mailingliste Postfixbuch-users