[Postfixbuch-users] /etc/aliases

Benjamin Fritsch benjamin.fritsch at inf.tu-dresden.de
Fr Sep 14 23:44:03 CEST 2007


Ralf Hildebrandt schrieb:
> * Benjamin Fritsch <benjamin.fritsch at inf.tu-dresden.de>:
>   
>> Hey Leute,
>>
>> ich hab mal ne Frage zur /etc/aliases. Wie wird diese eingebunden? Ich
>> habe Postfix mit MySQL laufen und dort nen Catch-All drinstehen (war
>> nicht meine Idee, wird so verlangt :( ).
>> Nun ist aber das Problem, dass zum Beispiel root at domain an diese
>> Catch-All gehen und nicht wie in /etc/aliases definiert an mich. (Die
>> /etc/aliases wird komplett ignoriert, alle anderen Einträge gehen auch
>> an die Catch-All).
>>
>>
>> postconf -n
>> alias_database = hash:/etc/aliases
>> alias_maps = hash:/etc/aliases
>>     
>
> Na da isse doch...
>
> Was sagen denn die Logs im Fehlerfall?
>
>   
Die Logs sind normal, wenn ne mail an root at domain.de kommt werden sie
aber an die Catch-All weitergeleitet die in der MySQL-Tabelle
eingetragen ist und nicht an die Adresse die in der aliases hinterlegt
ist. Die /etc/aliases wird übergangen.

Log:

Sep 14 23:26:54 localhost postfix/smtpd[5449]: connect from
smtprelay11.ispgateway.de[80.67.29.28]
Sep 14 23:27:02 localhost postfix/policyd-weight[7085]: weighted check: 
NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5
CL_IP_EQ_HELO_IP=-2 (check from: .bar. - helo: .smtprelay11.ispgateway.
- helo-domain: .ispgateway.)  FROM/MX_MATCHES_HELO(DOMAIN)=-2
<client=80.67.29.28> <helo=smtprelay11.ispgateway.de> <from=foo at bar.de>
<to=root at domain.de>, rate: -8.5
Sep 14 23:27:02 localhost postfix/policyd-weight[7085]: decided
action=PREPEND X-policyd-weight:  NOT_IN_SBL_XBL_SPAMHAUS=-1.5
NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check
from: .bar. - helo: .smtprelay11.ispgateway. - helo-domain:
.ispgateway.)  FROM/MX_MATCHES_HELO(DOMAIN)=-2 <client=80.67.29.28>
<helo=smtprelay11.ispgateway.de> <from=foo at bar.de> <to=root at domain.de>,
rate: -8.5
Sep 14 23:27:02 localhost postfix/smtpd[5449]: 7B7FB7C0035:
client=smtprelay11.ispgateway.de[80.67.29.28]
Sep 14 23:27:02 localhost postfix/cleanup[5457]: 7B7FB7C0035:
message-id=<46EAFC84.6020100 at bar.de>
Sep 14 23:27:02 localhost postfix/qmgr[936]: 7B7FB7C0035:
from=<foo at bar.de>, size=1220, nrcpt=1 (queue active)
Sep 14 23:27:02 localhost postfix/smtpd[5449]: disconnect from
smtprelay11.ispgateway.de[80.67.29.28]
Sep 14 23:27:06 localhost postfix/smtpd[5462]: connect from
localhost[127.0.0.1]
Sep 14 23:27:06 localhost postfix/smtpd[5462]: 0895A7C02C9:
client=localhost[127.0.0.1]
Sep 14 23:27:06 localhost postfix/cleanup[5457]: 0895A7C02C9:
message-id=<46EAFC84.6020100 at bar.de>
Sep 14 23:27:06 localhost postfix/qmgr[936]: 0895A7C02C9:
from=<foo at bar.de>, size=1649, nrcpt=1 (queue active)
Sep 14 23:27:06 localhost postfix/smtpd[5462]: disconnect from
localhost[127.0.0.1]
Sep 14 23:27:06 localhost postfix/smtp[5458]: 7B7FB7C0035:
to=<root at domain.de>, relay=127.0.0.1[127.0.0.1]:10024, delay=12,
delays=8/0.01/0/3.5, dsn=2.6.0, status=sent (250 2.6.0 Ok, id=28607-08,
from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 0895A7C02C9)
Sep 14 23:27:06 localhost postfix/qmgr[936]: 7B7FB7C0035: removed
Sep 14 23:27:06 localhost postfix/virtual[5463]: 0895A7C02C9:
to=<catchall at domain.de>, orig_to=<root at domain.de>, relay=virtual,
delay=0.08, delays=0.05/0.01/0/0.02, dsn=2.0.0, status=sent (delivered
to maildir)
Sep 14 23:27:06 localhost postfix/qmgr[936]: 0895A7C02C9: removed


Die mails gehen an catchall at domain.de dort sollen sie aber nicht hin,
sie sollen an die Adresse die in /etc/aliases eingetragen ist. Diese
wird wie gesagt einfach übergangen.



Mehr Informationen über die Mailingliste Postfixbuch-users