[Postfixbuch-users] virtual vv transport
Armin Baier
a.baier at manage.de
So Mär 27 20:37:02 CEST 2005
Ok,
den Inhalt der Transport-table, die aktuelle Postfix Konfiguration und ein Ausschnitt der Log-Datei habe ich beigefügt.
Wäre super, wenn jemand eine Idee dazu hätte.
Danke
Armin
> > ich habe folgendes Problem.
> > Über die transport-table habe ich definiert, dass für eine Domain die
> Zustellung über einen smarthost (exchange) laufen soll. Das funktioniert
> soweit auch.
> > transport_maps = hash:/etc/postfix/transport
>
> Was steht da drin?
dom1.tld smtp:[172.16.199.248]
>
> > Jede weitere Domain sollte über cyrus (web-cyradm) verarbeitet werden.
> Welche Domain?
Alle über mysql (web-cyradm-virtual table) definierten domains.
Select dest from virtual where alias = <alias> and status = '1';
>
> > Das passiert aber nicht!
> > Jede Mail an eine Adresse, die über web-cyradm definiert wird,
> > behandelt postfix wie eine lokale Adresse. D.h. die erkannte
> > email-adresse/account wird umgeschrieben in die Domain, welche durch
> > die transport-table definiert wurde.
>
> postconf -n
> bitte
alias_database = $alias_maps
alias_maps = hash:/etc/postfix/aliases,hash:/etc/aliases
broken_sasl_auth_clients = yes
canonical_maps = hash:/etc/postfix/canonical,,mysql:/etc/postfix/mysql-canonical.cf
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
defer_transports =
disable_dns_lookups = no
disable_vrfy_command = yes
html_directory = /usr/share/doc/packages/postfix/html
inet_interfaces = all
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_size_limit = 0
mailbox_transport = lmtp:unix:public/lmtp
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains =
masquerade_exceptions = root
mydestination = $myhostname,
$mydomain,
hostname1.dom1.de,
hostname1.intra.dom1.de,
hostname2.dom1.de,
mysql:/etc/postfix/mysql-mydestination.cf
myhostname = hostname2.dom1.de
mynetworks = 172.16.198.0/23, 127.0.0.0/8, x.x.x.x/27
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix/README_FILES
relayhost =
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical,
mysql:/etc/postfix/mysql-canonical.cf
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth
smtpd_banner = hostname2.dom1.de ESMTP $mail_name ($mail_version)
smtpd_client_restrictions = reject_rhsbl_client blackhole.securitysage.com,
reject_rbl_client sbl.spamhaus.org
smtpd_helo_required = no
smtpd_helo_restrictions =
smtpd_recipient_restrictions = reject_unknown_sender_domain,
reject_non_fqdn_sender,
permit_mynetworks,
check_client_access btree:/etc/postfix/dracd,
permit_sasl_authenticated,
permit_mx_backup,
reject_unauth_destination,
reject_rbl_client relays.ordb.org,
reject_rbl_client cbl.abuseat.org,
reject_rbl_client list.dsbl.org,
reject_rbl_client opm.blitzed.org,
reject_rbl_client sbl.spamhaus.org,
reject_rbl_client dnsbl.sorbs.net,
reject_rhsbl_client blackhole.securitysage.com,
reject_rhsbl_sender blackhole.securitysage.com,
permit
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = hash:/etc/postfix/access
strict_rfc821_envelopes = no
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual,
mysql:/etc/postfix/mysql-virtual.cf
virtual_mailbox_base = /var/spool/maildirs
>
> > Beispiel:
> > Transport-table domain: dom1.tld
> > Email an: info at virtual-domain1.tld
> > Ergebnis logfile:
> > info at virtual-domain1.tld wird account vd0001 zugeordnet -> ist OK
>
> Echte Logeintraege brauchen wir, nicht deine Interpretation...
Der folgende zugewiesene alias "qcom0001" wurde in web-cyradm definiert. Wird also richtig ausgelesen!
postfix/smtpd[12538]: disconnect from smtp-send.example.com[192.108.102.143]
postfix/pickup[12501]: 522241C93C: uid=100 from=<testuser at example.com>
postfix/cleanup[12544]: 522241C93C: message-id=<1111947182.8c6abe7ctestuser at example.com>
postfix/pipe[12548]: 8C387103CB: to=<qcom0001 at dom1.de>, orig_to=<info at virtual-dom1.com>, relay=pav_postfix, delay=1, status=sent (dummy)
#!! --- ab hier liegt eigentlich schon der Fehler vor --- !!
postfix/qmgr[12502]: 8C387103CB: removed
postfix/qmgr[12502]: 522241C93C: from=<testuser at example.com>, size=802, nrcpt=1 (queue active)
amavis[11816]: (11816-06) ESMTP::10024 /var/spool/amavis/amavis-20050327T194853-11816: <testuser at example.com> -> <qcom0001 at dom1.de> Received: SIZE=802 from mail2.dom1.de ([127.0.0.1]) by localhost (mailhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11816-06 for <qcom0001 at dom1.de>; Sun, 27 Mar 2005 20:13:04 +0200 (CEST)
amavis[11816]: (11816-06) Checking: <testuser at example.com> -> <qcom0001 at dom1.de>
amavis[11816]: (11816-06) cached e1c06d85ae7b8b032bef47e42e4c08f9 from <testuser at example.com> (1,1,0)
amavis[11816]: (11816-06) spam_scan: hits=0 tests=
amavis[11816]: (11816-06) FWD via SMTP: [127.0.0.1]:10025 <testuser at example.com> -> <qcom0001 at dom1.de>
postfix/smtpd[12554]: connect from localhost[127.0.0.1]
postfix/smtpd[12554]: C9005103CB: client=localhost[127.0.0.1]
postfix/cleanup[12544]: C9005103CB: message-id=<1111947182.8c6abe7ctestuser at example.com>
postfix/qmgr[12502]: C9005103CB: from=<testuser at example.com>, size=1219, nrcpt=1 (queue active)
amavis[11816]: (11816-06) Passed, <testuser at example.com> -> <qcom0001 at dom1.de>, Message-ID: <1111947182.8c6abe7ctestuser at example.com>, Hits: 0
amavis[11816]: (11816-06) TIMING [total 7547 ms] - SMTP EHLO: 1 (0%), SMTP pre-MAIL: 0 (0%), SMTP pre-DATA-flush: 2 (0%), SMTP DATA: 39 (1%), body hash: 0 (0%), SA msg read: 2 (0%), SA parse: 1 (0%), SA check: 7326 (97%), mime_decode: 7 (0%), fwd-connect: 17 (0%), fwd-mail-from: 2 (0%), fwd-rcpt-to: 14 (0%), write-header: 2 (0%), fwd-data: 0 (0%), fwd-data-end: 128 (2%), fwd-rundown: 2 (0%), unlink-1-files: 2 (0%), rundown: 0 (0%)
postfix/smtpd[12554]: disconnect from localhost[127.0.0.1]
postfix/smtp[12553]: 522241C93C: to=<qcom0001 at dom1.de>, relay=127.0.0.1[127.0.0.1], delay=7, status=sent (250 2.6.0 Ok, id=11816-06, from MTA: 250 Ok: queued as C9005103CB)
postfix/qmgr[12502]: 522241C93C: removed
postfix/smtp[12556]: warning: 172.16.199.248[172.16.199.248] offered AUTH option multiple times
postfix/smtp[12556]: C9005103CB: to=<qcom0001 at dom1.de>, relay=172.16.199.248[172.16.199.248], delay=1, status=sent (250 2.6.0 <1111947182.8c6abe7ctestuser at example.com> Queued mail for delivery)
postfix/qmgr[12502]: C9005103CB: removed
postfix/smtpd[12538]: connect from oahu.intra.dom1.de[172.16.199.248]
postfix/smtpd[12538]: E2BE2103CB: client=oahu.intra.dom1.de[172.16.199.248]
postfix/cleanup[12544]: E2BE2103CB: message-id=<NyJWpPsgQ00000006 at mail1.dom1.de>
postfix/qmgr[12502]: E2BE2103CB: from=<>, size=3002, nrcpt=1 (queue active)
postfix/smtpd[12538]: disconnect from oahu.intra.dom1.de[172.16.199.248]
postfix/pickup[12501]: 3BAFD1C93C: uid=100 from=<MAILER-DAEMON at dom1.de>
postfix/cleanup[12544]: 3BAFD1C93C: message-id=<NyJWpPsgQ00000006 at mail1.dom1.de>
postfix/pipe[12548]: E2BE2103CB: to=<testuser at example.com>, relay=pav_postfix, delay=1, status=sent (dummy)
postfix/qmgr[12502]: E2BE2103CB: removed
postfix/qmgr[12502]: 3BAFD1C93C: from=<>, size=3115, nrcpt=1 (queue active)
amavis[12537]: (12537-01) ESMTP::10024 /var/spool/amavis/amavis-20050327T201313-12537: <> -> <testuser at example.com> Received: SIZE=3115 from mail2.dom1.de ([127.0.0.1]) by localhost (mailhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12537-01 for <testuser at example.com>; Sun, 27 Mar 2005 20:13:13 +0200 (CEST)
amavis[12537]: (12537-01) Checking: <> -> <testuser at example.com>
clamd[6251]: /var/spool/amavis/amavis-20050327T201313-12537/parts/part-00001: OK
clamd[6251]: /var/spool/amavis/amavis-20050327T201313-12537/parts/part-00002: OK
clamd[6251]: /var/spool/amavis/amavis-20050327T201313-12537/parts/part-00003: OK
amavis[12537]: (12537-01) spam_scan: hits=1.549 tests=MAILTO_TO_SPAM_ADDR,NO_REAL_NAME,SUBJ_HAS_UNIQ_ID
amavis[12537]: (12537-01) FWD via SMTP: [127.0.0.1]:10025 <> -> <testuser at example.com>
postfix/smtpd[12554]: connect from localhost[127.0.0.1]
postfix/smtpd[12554]: 250151C4BC: client=localhost[127.0.0.1]
postfix/cleanup[12544]: 250151C4BC: message-id=<NyJWpPsgQ00000006 at mail1.dom1.de>
postfix/qmgr[12502]: 250151C4BC: from=<>, size=3538, nrcpt=1 (queue active)
postfix/smtpd[12554]: disconnect from localhost[127.0.0.1]
amavis[12537]: (12537-01) Passed, <> -> <testuser at example.com>, Message-ID: <NyJWpPsgQ00000006 at mail1.dom1.de>, Hits: 1.549
amavis[12537]: (12537-01) TIMING [total 1014 ms] - SMTP EHLO: 3 (0%), SMTP pre-MAIL: 0 (0%), mkdir tempdir: 0 (0%), create email.txt: 1 (0%), SMTP pre-DATA-flush: 4 (0%), SMTP DATA: 38 (4%), body hash: 1 (0%), mkdir parts: 1 (0%), mime_decode: 27 (3%), get-file-type: 12 (1%), get-file-type: 9 (1%), get-file-type: 9 (1%), decompose_part: 2 (0%), decompose_part: 0 (0%), decompose_part: 0 (0%), parts: 0 (0%), AV-scan-1: 4 (0%), AV-scan-2: 627 (62%), SA msg read: 2 (0%), SA parse: 1 (0%), SA check: 100 (10%), fwd-connect: 8 (1%), fwd-mail-from: 0 (0%), fwd-rcpt-to: 6 (1%), write-header: 2 (0%), fwd-data: 0 (0%), fwd-data-end: 149 (15%), fwd-rundown: 2 (0%), unlink-3-files: 4 (0%), rundown: 0 (0%)
postfix/smtp[12553]: 3BAFD1C93C: to=<testuser at example.com>, relay=127.0.0.1[127.0.0.1], delay=1, status=sent (250 2.6.0 Ok, id=12537-01, from MTA: 250 Ok: queued as 250151C4BC)
postfix/qmgr[12502]: 3BAFD1C93C: removed
postfix/smtp[12556]: 250151C4BC: to=<testuser at example.com>, relay=smtp.example.com[192.108.102.204], delay=1, status=sent (250 OK)
postfix/qmgr[12502]: 250151C4BC: removed
>
> --
> Ralf Hildebrandt (i.A. des IT-Zentrum)
> Ralf.Hildebrandt at charite.de
> Charite - Universitätsmedizin Berlin Tel. +49 (0)30-450 570-
> 155
> Gemeinsame Einrichtung von FU- und HU-Berlin Fax. +49 (0)30-450 570-
> 962
> IT-Zentrum Standort CBF send no mail to
> spamtrap at charite.de
> --
> _______________________________________________
> Postfixbuch-users mailingliste
> Heinlein Professional Linux Support GmbH
>
> Postfixbuch-users at listi.jpberlin.de
> http://listi.jpberlin.de/mailman/listinfo/postfixbuch-users
Mehr Informationen über die Mailingliste Postfixbuch-users