[Postfixbuch-users] postfix mysql verschiedene Domains web-cyradm

Holm Kapschitzki holm at oleco.net
Mi Dez 28 13:35:07 CET 2005


Hallo,

ich habe immer noch dasselbe Problem, leider ........, weiter unter 
nochmal ein logfile:

>Andreas Winkelmann schrieb:
>
>  
>
>>Es wäre hilfreich, wenn Du sagen könntest, wo die Domain und der 
>>catch-all
>>
>>eingetragen ist. "postmap -q domain.tld mysql:/path/to/map" / man postmap.
>> 
>>
>>    
>>
>also ein "postmap -q domain.tld mysql:/etc/postfix/mysql-mydestination.cf"
>
>bringt genau als Ausgabe in der nächsten Zeile in putty:
>
>domain.tld
>
>wobei domain.tld natürlich meine Domain ist, auf der, wenn ich einen 
>Catch_all setze alle Mails ankommen, also auch die der Kundendomains. 
>Setze ich wie gesagt ein Catch_all auf eine Kundendomain funktioniert 
>der Catch_all für eben diese Kundendomain perfekt. Ich kann halt kinen 
>Catcg_all für meine eigene Domain setzen. Alle Domains sind unter 
>mydestination gesetzt.
>
>mydestination = localhost, mysql:/etc/postfix/mysql-mydestination.cf
>
>mysql-mydestination ist so gestrickt:
>
>/etc/postfix/mysql-mydestination.cf
>
># mysql config file for local domain (like sendmail's sendmail.cw) lookups on postfix
># comments are ok.
>#
># the user name and password to log into the mysql server
>hosts = localhost
>user = mail
>password = blub
># the database name on the servers
>dbname = mail
># the table name
>table = domain
>select_field = domain_name
>where_field = domain_name
>
>Der Catch_all wird hier eingetragen:
>
>Die virtual_alias_maps welcher in meiner Datenbank "mail" der Tabelle 
>"virtual" entspricht gestaltet sich auszugsweise so:
>
>alias -> destination -> username
>@kundedomain.de -> user.kundendomain.de -> user.kundendomain.de
>
>wobei alias -> destination -> username natürlich den Feldern meiner Tabelle entsprechen
>
>Die virtual ist so gestrickt:
>
>/etc/postfix/mysql-virtual.cf:
>
>#
># mysql config file for alias lookups on postfix
># comments are ok.
>#
># the user name and password to log into the mysql server
>hosts = localhost
>user = mail
>password = blub
># the database name on the servers
>dbname = mail
># the table name
>table = virtual
>select_field = dest
>where_field = alias
>additional_conditions = and status = '1'
>
>In meiner main.cf:
>
>virtual_alias_maps = mysql:/etc/postfix/mysql-virtual.cf
>
>Ich hoffe es ist jetzt ein wenig klarer.
>
>Gruß Holm
>
>
>  
>
Also mein Server heisst srv01.avox.org und ich habe dort mehrere Domains 
gehostet, wobei ich nun einen catchall auf catchall at avox.org 
eingerichtet habe. Nun schicke ich eine Mail von holm at oleco.net an 
holm at kapschitzki.de und Sie kommt an catchall at avox.org an. Setze ich 
einen Catchall auf irgendeine andere gehostete Domain funktioniert alles 
normal.

Vielleicht ist das noch interessant:

myhostname = srv01.avox.org

Hier der log, der falsch zugestellten Email. Alle Emails die an 
irgendwelche Domains, die ich hoste geschickt werden landen alle bei 
catchall at avox.org, bis ich den catchall für avox.org wieder deaktiviere:

myhostname = srv01.avox.org

Dec 28 13:15:07 srv01 postfix/smtpd[27281]: maps_find: 
virtual_alias_maps: mysql:/etc/postfix/mysql-virtual.cf(0,100): 
holm at kapschitzki.de = holm.kapschitzki.de
Dec 28 13:15:07 srv01 postfix/smtpd[27281]: mail_addr_find: 
holm at kapschitzki.de -> holm.kapschitzki.de
Dec 28 13:15:07 srv01 postfix/smtpd[27281]: connect to subsystem 
public/cleanup
Dec 28 13:15:07 srv01 postfix/smtpd[27281]: public/cleanup socket: 
wanted attribute: queue_id
Dec 28 13:15:07 srv01 postfix/smtpd[27281]: input attribute name: queue_id
Dec 28 13:15:07 srv01 postfix/smtpd[27281]: input attribute value: 
027FF624039
Dec 28 13:15:07 srv01 postfix/smtpd[27281]: public/cleanup socket: 
wanted attribute: (list terminator)
Dec 28 13:15:07 srv01 postfix/smtpd[27281]: input attribute name: (end)
Dec 28 13:15:07 srv01 postfix/smtpd[27281]: send attr flags = 2
Dec 28 13:15:07 srv01 postfix/smtpd[27281]: 027FF624039: 
client=mail.oleco.net[213.202.215.32]
Dec 28 13:15:07 srv01 postfix/smtpd[27281]: > 
mail.oleco.net[213.202.215.32]: 250 Ok
Dec 28 13:15:07 srv01 postfix/smtpd[27281]: watchdog_pat: 0x80879c0
Dec 28 13:15:07 srv01 postfix/smtpd[27281]: < 
mail.oleco.net[213.202.215.32]: DATA
Dec 28 13:15:07 srv01 postfix/smtpd[27281]: > 
mail.oleco.net[213.202.215.32]: 354 End data with <CR><LF>.<CR><LF>
Dec 28 13:15:07 srv01 postfix/smtpd[27281]: public/cleanup socket: 
wanted attribute: status
Dec 28 13:15:07 srv01 postfix/cleanup[27288]: 027FF624039: 
message-id=<200512281315.AA6488700 at oleco.net>
Dec 28 13:15:07 srv01 postfix/qmgr[27273]: 027FF624039: 
from=<holm at oleco.net>, size=949, nrcpt=1 (queue active)
Dec 28 13:15:07 srv01 postfix/smtpd[27281]: input attribute name: status
Dec 28 13:15:07 srv01 postfix/smtpd[27281]: input attribute value: 0
Dec 28 13:15:07 srv01 postfix/smtpd[27281]: public/cleanup socket: 
wanted attribute: reason
Dec 28 13:15:07 srv01 postfix/smtpd[27281]: input attribute name: reason
Dec 28 13:15:07 srv01 postfix/smtpd[27281]: input attribute value: (end)
Dec 28 13:15:07 srv01 postfix/smtpd[27281]: public/cleanup socket: 
wanted attribute: (list terminator)
Dec 28 13:15:07 srv01 postfix/smtpd[27281]: input attribute name: (end)
Dec 28 13:15:07 srv01 postfix/smtpd[27281]: > 
mail.oleco.net[213.202.215.32]: 250 Ok: queued as 027FF624039
Dec 28 13:15:07 srv01 postfix/smtpd[27281]: watchdog_pat: 0x80879c0
Dec 28 13:15:07 srv01 postfix/smtpd[27281]: < 
mail.oleco.net[213.202.215.32]: QUIT
Dec 28 13:15:07 srv01 postfix/smtpd[27281]: > 
mail.oleco.net[213.202.215.32]: 221 Bye
Dec 28 13:15:07 srv01 postfix/smtpd[27281]: disconnect from 
mail.oleco.net[213.202.215.32]
Dec 28 13:15:07 srv01 postfix/smtpd[27281]: master_notify: status 1
Dec 28 13:15:07 srv01 postfix/smtpd[27281]: connection closed
Dec 28 13:15:07 srv01 postfix/smtpd[27281]: watchdog_stop: 0x80879c0
Dec 28 13:15:07 srv01 postfix/smtpd[27281]: watchdog_start: 0x80879c0
Dec 28 13:15:08 srv01 cyrus/master[324]: process 27276 exited, status 0
Dec 28 13:15:09 srv01 postfix/smtpd[27292]: connect from 
localhost[127.0.0.1]
Dec 28 13:15:09 srv01 postfix/smtpd[27292]: 2535462403A: 
client=localhost[127.0.0.1]
Dec 28 13:15:09 srv01 postfix/cleanup[27288]: 2535462403A: 
message-id=<200512281315.AA6488700 at oleco.net>
Dec 28 13:15:09 srv01 postfix/qmgr[27273]: 2535462403A: 
from=<holm at oleco.net>, size=1530, nrcpt=1 (queue active)
Dec 28 13:15:09 srv01 amavis[27019]: (27019-07) Passed, <holm at oleco.net> 
-> <holm at kapschitzki.de>, Message-ID: 
<200512281315.AA6488700 at oleco.net>, Hits: 4.095
Dec 28 13:15:09 srv01 postfix/smtp[27289]: 027FF624039: 
to=<holm at kapschitzki.de>, relay=127.0.0.1[127.0.0.1], delay=3, 
status=sent (250 2.6.0 Ok, id=27019-07, from MTA: 250 Ok: queued as 
2535462403A)
Dec 28 13:15:09 srv01 postfix/qmgr[27273]: 027FF624039: removed




Mehr Informationen über die Mailingliste Postfixbuch-users