PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Zustellung von lokalen Emails



linux_freund
04.02.06, 00:07
Hallo zusammen,

ich arbeite gerade hobbymäßig daran einen Emailserver aufzusetzen. Will das einfach mal gemacht haben :-)

Nur im moment komme ich an einen Punkt nicht weiter. Ich habe Postfix und Cyrus beide schon eingerichtet und Authentifizierung über SASL funktioniert. Auf meine Imap Postfächer habe ich auch Zugriff. Nur wenn ich jetzt lokal an meine selbsterstellten Postfächer Emails abschicke z.B. von ralf@localhost zu niels@localhost dann sagt er mir immer


...mail for localhost.localhost loops back to myself...

In der /etc/hosts habe ich auch schon einen Eintrag eingefügt 127.0.0.1 auf localhost.localhost aber trotzdem funzt es nicht.



myhostname = localhost
mydomain = localhost
mydestination = $mydomain, $myhostname.$mylocaldomain, localhost
relay_domains = $mydomain
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
mail_owner = postfix
alias_maps = hash:/etc/aliases
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_security_options = noanonymous

Danke schon mal für die Hilfe.

Roger Wilco
04.02.06, 13:30
relay_domains = $mydomain
Die Zeile weg und myhostname sollte nicht auf localhost gesetzt werden und mydomain erst recht nicht.

linux_freund
05.02.06, 16:44
ja aber ich benutze den lokal und möchte nicht extra noch nen DNS aufsetzen.

linux_freund
05.02.06, 18:25
also hab den relayeintrag rausgenomme etc... und kann sogar zum meinen ISP Emails verschicken, welche sogar ankommen. In meiner /etc/hosts habe ich folgende Paramter eingearbeitet....



127.0.0.1 localhost
127.0.0.1 linuxrn
127.0.0.1 testdom.tar
127.0.0.1 linuxrn.testdom.tar
127.0.0.1 localhost.testdom.tar


So wenn ich jetzt Emails abschicken kommt nach wie vor folgendes...



5 19:23:50 localhost postfix/smtpd[5207]: connect from localhost[127.0.0.1]
Feb 5 19:23:50 localhost postfix/smtpd[5207]: 556887B166: client=localhost[127.0.0.1], sasl_method=CRAM-MD5, sasl_username=niels
Feb 5 19:23:50 localhost postfix/cleanup[5210]: 556887B166: message-id=<43E642B6.5030907@testdom.tar>
Feb 5 19:23:50 localhost postfix/smtpd[5207]: disconnect from localhost[127.0.0.1]
Feb 5 19:23:50 localhost postfix/qmgr[5152]: 556887B166: from=<niels@testdom.tar>, size=530, nrcpt=1 (queue active)
Feb 5 19:23:50 localhost postfix/cleanup[5210]: 5E1817B16A: message-id=<43E642B6.5030907@testdom.tar>
Feb 5 19:23:50 localhost postfix/local[5211]: 556887B166: to=<ralf@testdom.tar>, relay=local, delay=0, status=sent (forwarded as 5E1817B16A)
Feb 5 19:23:50 localhost postfix/qmgr[5152]: 5E1817B16A: from=<niels@testdom.tar>, size=649, nrcpt=1 (queue active)
Feb 5 19:23:50 localhost postfix/qmgr[5152]: 556887B166: removed
Feb 5 19:23:55 localhost postfix/smtp[5212]: 5E1817B16A: to=<ralf@localhost.testdom.tar>, orig_to=<ralf@testdom.tar>, relay=none, delay=5, status=bounced (mail for localhost.testdom.tar loops back to myself)
Feb 5 19:23:55 localhost postfix/cleanup[5210]: 733757B16D: message-id=<20060205182355.733757B16D@linuxrn>
Feb 5 19:23:55 localhost postfix/qmgr[5152]: 733757B16D: from=<>, size=2361, nrcpt=1 (queue active)
Feb 5 19:23:55 localhost postfix/qmgr[5152]: 5E1817B16A: removed
Feb 5 19:23:55 localhost postfix/cleanup[5210]: 784357B16A: message-id=<20060205182355.733757B16D@linuxrn>
Feb 5 19:23:55 localhost postfix/qmgr[5152]: 784357B16A: from=<>, size=2481, nrcpt=1 (queue active)
Feb 5 19:23:55 localhost postfix/local[5211]: 733757B16D: to=<niels@testdom.tar>, relay=local, delay=0, status=sent (forwarded as 784357B16A)
Feb 5 19:23:55 localhost postfix/qmgr[5152]: 733757B16D: removed
Feb 5 19:23:55 localhost postfix/smtp[5212]: 784357B16A: to=<niels@localhost.testdom.tar>, orig_to=<niels@testdom.tar>, relay=none, delay=0, status=bounced (mail for localhost.testdom.tar loops back to myself)
Feb 5 19:23:55 localhost postfix/qmgr[5152]: 784357B16A: removed



Trotz allen kommen die Emails in meinen Cyruspostfächern nicht an.

Meine Conf von Postfix sieht übrigens jetzt so aus...


myhostname = linuxrn
mydomain = testdom.tar
mydestination = $mydomain, $myhostname.$mylocaldomain
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
mail_owner = postfix
alias_maps = hash:/etc/aliases
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_security_options = noanonymous

linux_freund
05.02.06, 19:39
problem schon mal ansatzweise gelöst. Habe das Parameter best_mx_transport miteingetragen und auf "local" gesetzt.

linux_freund
05.02.06, 23:03
bei mir klappt jetzt nur noch nicht die Authentifizierung am lmtp. Hab da auch schon die benötigten lmtp paramter in der main.cf eingetellt, aber leider hat postfix trotzdem keine "permission".

Jemand von euch damit erfahrung?