[Postfixbuch-users] Postfix + MySQL + CyrusIMAPd + PostfixAdmin ?
Stefan G. Weichinger
monitor at oops.co.at
Mo Aug 8 12:33:57 CEST 2005
Marcel Hartmann wrote:
>
> Nein musst Du nicht bei ner standard installation eines web-cyradm.
> Wie gesagt alle Deine Konten holt er sich aus der DB sind also Virtuell.
> Und wenn so ein Konto existiert geht eine mail dahin diesen weg:
> Client -> postfix -> amavisd-new -> postfix -> mailbox
>
> Wenn Du nun einstellst, das die adresse ein spam_lover und virus_locer ist
> Und dann noch die bypass_* aktivierst, prüft amavis diese mail nicht!
>
> Trägst Du den User nirgend weiter ein, so wird amavis sicherlich die Mails
> auch prüfen. So wie Du ihn eingestellt hast.
Hmm, habe den web-cyradm jetzt auch für einen Kunden auf einer
Testmaschine laufen, dabei kriege ich jetzt plötzlich das Verhalten, daß
er die Zielbox nicht zu finden scheint ...
Warum stehen eigentlich die virtual-domains in $mydestination? Ich
dachte, das darf eben grade nicht sein.
Setup mit Settings laut web-cyradm-HOWTO :
root at world:/etc/postfix # postconf -n
alias_maps = hash:/etc/aliases
always_bcc = mail-archive
biff = no
broken_sasl_auth_clients = yes
canonical_maps = hash:/etc/postfix/canonical
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_protocols = 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_exceptions = root
message_size_limit = 10240000
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
proxy:mysql:/etc/postfix/mysql-mydestination.cf
myhostname = world.domain.intern
mynetworks = 10.0.0.0/8, 127.0.0.0/8
mynetworks_style = subnet
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
proxy_interfaces = 10.1.1.254
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix/README_FILES
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix/samples
sender_canonical_maps = proxy: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/sasl_passwd
smtp_use_tls = no
smtpd_banner = $myhostname ESMTP
smtpd_client_restrictions =
smtpd_data_restrictions = reject_unauth_pipelining, permit
smtpd_helo_required = yes
smtpd_helo_restrictions = check_helo_access pcre:/etc/postfix/helo_checks
smtpd_recipient_restrictions = reject_non_fqdn_sender,
reject_unknown_sender_domain, reject_unknown_recipient_domain,
permit_sasl_authenticated , permit_mynetworks,
reject_unauth_destination, check_recipient_access
hash:/etc/postfix/roleaccount_exceptions, check_sender_access hash:
/etc/postfix/sender_checks, reject_invalid_hostname,
reject_non_fqdn_hostname, reject_rbl_client sbl-xbl.spamhaus.org,
reject_rbl_client list.dsbl.org, reject_rbl_client
relays.ordb.org, check_policy_service inet:127.0.0.1:10026, permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = world
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_tls_auth_only = no
smtpd_use_tls = no
strict_rfc821_envelopes = no
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual_alias_maps,
proxy:mysql:/etc/postfix/mysql-virtual.cf
und das log schreibt sowas wie :
Aug 8 11:35:53 world postfix/pickup[6760]: F2042A8584: uid=0 from=<root>
Aug 8 11:35:54 world postfix/cleanup[6818]: F2042A8584:
message-id=<42F72779.mail59315PTQM at world.virtual.tld>
Aug 8 11:35:54 world postfix/oqmgr[6761]: F2042A8584:
from=<root at domain.intern>, size=434, nrcpt=2 (queue active)
Aug 8 11:35:54 world amavis[3240]: (03240-06) ESMTP::10024
/var/spool/amavis/tmp/amavis-20050808T094925-03240: <root at domain.intern>
-> <mail-archive at domain.intern>,<mck0003 at domain.intern> Received:
SIZE=434 from world.domain.intern ([127.0.0.1]) by localhost (world
[127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03240-06; Mon, 8
Aug 2005 11:35:54 +0200 (CEST)
Aug 8 11:35:54 world amavis[3240]: (03240-06) Checking:
<root at domain.intern> -> <mail-archive at domain.intern>,<mck0003 at domain.intern>
Aug 8 11:35:54 world amavis[3240]: (03240-06) cached
7ed0097d7e9ee73cf0952a1f0a07c07e from <root at domain.intern> (1,0,0)
Aug 8 11:35:54 world amavis[3240]: (03240-06) WARN: all primary virus
scanners failed, considering backups
Aug 8 11:35:55 world amavis[3240]: (03240-06) FWD via SMTP:
[127.0.0.1]:10025 <root at domain.intern> -> <mail-archive at domain.intern>,
<mck0003 at domain.intern>
Aug 8 11:35:55 world postfix/smtpd[6830]: connect from localhost[127.0.0.1]
Aug 8 11:35:55 world postfix/smtpd[6830]: C61B1A8582:
client=localhost[127.0.0.1]
Aug 8 11:35:55 world postfix/smtpd[6830]: C61B1A8582: reject: RCPT from
localhost[127.0.0.1]: 550 <mck0003 at domain.intern>: Recipient address
rejected: User unknown in local recipient table;
from=<root at domain.intern> to=<mck0003 at domain.intern> proto=ESMTP
helo=<localhost>
Aug 8 11:35:55 world postfix/cleanup[6818]: C61B1A8582:
message-id=<42F72779.mail59315PTQM at world.virtual.tld>
Aug 8 11:35:55 world postfix/oqmgr[6761]: C61B1A8582:
from=<root at domain.intern>, size=858, nrcpt=1 (queue active)
Aug 8 11:35:55 world postfix/smtpd[6830]: disconnect from
localhost[127.0.0.1]
Aug 8 11:35:55 world amavis[3240]: (03240-06) SEND via SMTP:
[127.0.0.1]:10025 <> -> <root at domain.intern>
Aug 8 11:35:55 world postfix/smtpd[6830]: connect from localhost[127.0.0.1]
Aug 8 11:35:56 world postfix/smtpd[6830]: 022AEA8585:
client=localhost[127.0.0.1]
Aug 8 11:35:56 world postfix/cleanup[6818]: 022AEA8585:
message-id=<DSN03240-06 at world>
Aug 8 11:35:56 world postfix/oqmgr[6761]: 022AEA8585: from=<>,
size=2427, nrcpt=2 (queue active)
Aug 8 11:35:56 world postfix/smtpd[6830]: disconnect from
localhost[127.0.0.1]
Aug 8 11:35:56 world amavis[3240]: (03240-06) Passed CLEAN,
<root at domain.intern> -> <mail-archive at domain.intern>, Message-ID:
<42F72779.mail59315PTQM at world.virtual.tld>, Hits: -2.82, 2030 ms
Aug 8 11:35:56 world amavis[3240]: (03240-06) Blocked CLEAN,
<root at domain.intern> -> <mck0003 at domain.intern>, Message-ID:
<42F72779.mail59315PTQM at world.virtual.tld>, Hits: -2.82, 2043 ms
Aug 8 11:35:56 world postfix/smtp[6823]: F2042A8584:
to=<mail-archive at domain.intern>, relay=127.0.0.1[127.0.0.1], delay=3,
status=sent (250 2.6.0 Ok, id=03240-06, from MTA: 250 Ok: queued as
C61B1A8582, but 1 REJECT)
------------------^^^^^^----- ? woher das ?
Weil er oben mck0003 at domain.intern nicht findet ... klar, weil es ja
mck0003 at virtual.tld WAR ...
Aug 8 11:35:56 world postfix/smtp[6823]: F2042A8584:
to=<mck0003 at domain.intern>, orig_to=<bg at virtual.tld>,
relay=127.0.0.1[127.0.0.1], delay=3, status=sent (250 2.6.0 Ok,
id=03240-06, from MTA: 250 Ok: queued as C61B1A8582, but 1 REJECT)
Aug 8 11:35:56 world postfix/oqmgr[6761]: F2042A8584: removed
Aug 8 11:35:56 world postfix/lmtp[6832]: C61B1A8582:
to=<mail-archive at domain.intern>, relay=public/lmtp[public/lmtp],
delay=1, status=sent (250 2.1.5 Ok)
Aug 8 11:35:56 world postfix/oqmgr[6761]: C61B1A8582: removed
Aug 8 11:35:56 world postfix/lmtp[6832]: 022AEA8585:
to=<mail-archive at domain.intern>, relay=public/lmtp[public/lmtp],
delay=1, status=sent (250 2.1.5 Ok)
Aug 8 11:35:56 world postfix/lmtp[6837]: 022AEA8585:
to=<mck0002 at domain.intern>, orig_to=<root at domain.intern>,
relay=public/lmtp[public/lmtp], delay=1, status=sent (250 2.1.5 Ok)
Aug 8 11:35:56 world postfix/oqmgr[6761]: 022AEA8585: removed
Bitte um kurze Hilfe ... mir steht der Kopf ein wenig ... ;)
Danke, Stefan
Mehr Informationen über die Mailingliste Postfixbuch-users