ispCP - Board - Support
[ERLEDIGT] Hosted Exchange Probleme die 2te - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega International Area (/forum-22.html)
+--- Forum: German Corner (/forum-26.html)
+---- Forum: Archiv (/forum-54.html)
+---- Thread: [ERLEDIGT] Hosted Exchange Probleme die 2te (/thread-11931.html)

Pages: 1 2


[ERLEDIGT] Hosted Exchange Probleme die 2te - TheCry - 10-22-2010 06:41 AM

Hi zusammen...
Vor kurzem hatte ich das Problem das ich keine Emails an die Domain senden konnte die diese Hosted Exchange Lösung nutzt:
http://isp-control.net/forum/thread-11867.html

Nun wurde die Domain per KK zu mir geholt und die DNS-Einträge sind auch soweit alle richtig gesetzt...

Die Emails kommen weiter auf dem Exchange an (wenn ich von GMX sende)..
Will ich aber jetzt über den Server wo die IN A-Einträge drauf eingestellt sind eine Email an die Domain versenden, dann erhalte ich umgehend die Meldung
Quote:mail for die-domain.com loops back to myself

Liegt es nun daran das die DNS noch noch nicht abgeglichen sind oder muss doch noch was auf dem Server eingestellt werden das die Emails rausgehen?

Ich habe auch schon andere DNS-Server eingetragen, aber das hat alles nichts gebracht...
Zumindest zeigen die anderen DNS-Server mir die richtigen MX-Einträge an
Quote:dig die-domain.com MX

; <<>> DiG 9.4.2-P2.1 <<>> die-domain.com MX
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25374
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 2, ADDITIONAL: 0

;; QUESTION SECTION:
;die-domain.com. IN MX

;; ANSWER SECTION:
die-domain.com. 84914 IN MX 10 mail1.xchangemail.de.
die-domain.com. 84914 IN MX 10 mail2.mail-queue.net.
die-domain.com. 84914 IN MX 10 mail2.xchangemail.de.
die-domain.com. 84914 IN MX 10 mail1.mail-queue.net.

;; AUTHORITY SECTION:
die-domain.com. 84914 IN NS ns6.nr-city.net.
die-domain.com. 84914 IN NS berta.nr-city.net.

;; Query time: 14 msec
;; SERVER: 130.149.4.20#53(130.149.4.20)
;; WHEN: Thu Oct 21 22:39:12 2010
;; MSG SIZE rcvd: 201

Ich hoffe einer hat einen Rat für mich....
Gruß
Sascha


RE: Hosted Exchange Probleme die 2te - ZooL - 10-22-2010 12:22 PM

am besten du probierst das auch mal so:
#
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - - - - smtpd -v

Sendest eine email und schaust in den logs was passiert...
ich verfolge das immer beim debug per tail -f pfad/zum/log

mfg


RE: Hosted Exchange Probleme die 2te - TheCry - 10-22-2010 03:19 PM

(10-22-2010 12:22 PM)ZooL Wrote:  smtp inet n - - - - smtpd -v
Wird das in eine Datei eingetragen oder per Console aufgerufen?


Code:
Oct 22 07:32:49 root95 postfix/smtpd[762]: connect from srv01.domain.de.local[127.0.0.1]
Oct 22 07:32:49 root95 postfix/smtpd[762]: EC695A58323: client=srv01.mydomain.de.local[127.0.0.1]
Oct 22 07:32:49 root95 postfix/cleanup[758]: EC695A58323: message-id=<4CC1220F.5030908@mydomain.de>
Oct 22 07:32:49 root95 postfix/qmgr[20469]: EC695A58323: from=<info@mydomain.de>, size=40043, nrcpt=1 (queue active)
Oct 22 07:32:49 root95 postfix/smtpd[762]: disconnect from srv01.mydomain.de.local[127.0.0.1]
Oct 22 07:32:49 root95 amavis[29947]: (29947-08) Passed CLEAN, [***.***.***.***] [***.***.***.***] <info@mydomain.de> -> <test@die-domain.com>, Message-ID: <4CC1220F.5030908@mydomain.de>, Hits: 3.689, 458 ms
Oct 22 07:32:49 root95 postfix/smtp[759]: 2B74EA5831E: to=<test@die-domain.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.9, delays=1.4/0/0/0.46, dsn=2.6.0, status=sent (250 2.6.0 Ok, id=29947-08, from MTA: 250 2.0.0 Ok: queued as EC695A58323)
Oct 22 07:32:49 root95 postfix/qmgr[20469]: 2B74EA5831E: removed
Oct 22 07:32:49 root95 postfix/smtp[763]: EC695A58323: to=<test@die-domain.com>, relay=none, delay=0.02, delays=0.01/0/0.01/0, dsn=5.4.6, status=bounced (mail for die-domain.com loops back to myself)
Oct 22 07:32:50 root95 postfix/cleanup[758]: F3535A5832E: message-id=<20101022053249.F3535A5832E@srv01.mydomain.de>
Oct 22 07:32:50 root95 postfix/qmgr[20469]: F3535A5832E: from=<>, size=42000, nrcpt=1 (queue active)
Oct 22 07:32:50 root95 postfix/bounce[764]: EC695A58323: sender non-delivery notification: F3535A5832E
Oct 22 07:32:50 root95 postfix/qmgr[20469]: EC695A58323: removed
Oct 22 07:32:50 root95 dovecot: auth(default): master in: USER^I1^Iinfo@mydomain.de^Iservice=deliver
Oct 22 07:32:50 root95 dovecot: auth-worker(default): sql(info@mydomain.de): SELECT concat('/var/mail/virtual/', domain.domain_name, '/',mail_acc) as home, '1000' as uid, '8' as gid, concat('*:bytes=', quota) AS quota_rule FROM mail_users inner join domain on mail_users.domain_id = domain.domain_id WHERE mail_addr='info@mydomain.de' and (mail_type='normal_mail' OR mail_type='normal_mail,normal_forward');

Hier mal ein Logauszug wenn ich eine Email dahin sende...
Ich habe meine Domain ja auch auf dem Server... Nur Postfix müsste diese Email raussenden!


RE: Hosted Exchange Probleme die 2te - Nuxwin - 10-22-2010 03:54 PM

Hello ;

About this issue:

Quote:mail for die-domain.com loops back to myself

I think that is is DNS cache issue... Edit your /etc/resolv.conf file and add the following entry at first position:

Code:
nameserver 127.0.0.1

Postfix will query the local nameserver directly and normally, that should solve the problem that is normally only temporary.

Also, restart your postfix and then, try again. Wink

Note: I'm not german so sorry if i've not understood the real problem here...


RE: Hosted Exchange Probleme die 2te - TheCry - 10-22-2010 04:02 PM

The same problem... Sad


RE: Hosted Exchange Probleme die 2te - Nuxwin - 10-22-2010 04:04 PM

What the dns zone file for the related domain ?

Please, result from --->

Code:
dig mx die-domain.com

and also from:

Code:
dig mx die-domain.com @127.0.0.1



RE: Hosted Exchange Probleme die 2te - TheCry - 10-22-2010 04:13 PM

Code:
root@srv01:~# dig mx die-domain.com

; <<>> DiG 9.4.2-P2.1 <<>> mx die-domain.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37487
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3

;; QUESTION SECTION:
;die-domain.com.         IN      MX

;; ANSWER SECTION:
die-domain.com.  43200   IN      MX      10 mail.die-domain.com.

;; AUTHORITY SECTION:
die-domain.com.  43200   IN      NS      ns1.die-domain.com.
die-domain.com.  43200   IN      NS      ns2.die-domain.com.

;; ADDITIONAL SECTION:
mail.die-domain.com. 43200 IN    A       my-server-ip
ns1.die-domain.com. 43200 IN     A       my-server-ip
ns2.die-domain.com. 43200 IN     A       my-server-ip

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Oct 22 08:08:23 2010
;; MSG SIZE  rcvd: 144


Code:
dig mx die-domain.com @127.0.0.1

; <<>> DiG 9.4.2-P2.1 <<>> mx die-domain.com @127.0.0.1
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 15613
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3

;; QUESTION SECTION:
;die-domain.com.         IN      MX

;; ANSWER SECTION:
die-domain.com.  43200   IN      MX      10 mail.die-domain.com.

;; AUTHORITY SECTION:
die-domain.com.  43200   IN      NS      ns1.die-domain.com.
die-domain.com.  43200   IN      NS      ns2.die-domain.com.

;; ADDITIONAL SECTION:
mail.die-domain.com. 43200 IN    A       my-server-ip
ns1.die-domain.com. 43200 IN     A       my-server-ip
ns2.die-domain.com. 43200 IN     A       my-server-ip

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Oct 22 08:11:15 2010
;; MSG SIZE  rcvd: 144



RE: Hosted Exchange Probleme die 2te - Nuxwin - 10-22-2010 04:21 PM

Ok ;

You don't see the problem here ?

Where are the mx entries for your external mail server ?

Edit:

Ok, I got your PM. I 'll check your configuration now. . Wink


RE: Hosted Exchange Probleme die 2te - TheCry - 10-22-2010 05:17 PM

OK... Der Fehler ist behoben!
NUXWIN - You are the best one!!!!

Folgendes war mein Problem...
Wie schon Rats mich auf dieses Ticket hingewiesen hatte:
http://isp-control.net/ispcp/ticket/1977#comment:33

musste ich eine Datei "/etc/postfix/ispcp/relay_domains" anlegen...
Der Inhalt muss dann wie folgt aussehen
Code:
die-domain.com OK
Wichtig ist das "OK" am Ende!!!
Anschliessend muss man auch eine "relay_domains.db" erzeugen...
Das erfolgt mit dem Befehl
Code:
postmap /etc/postfix/ispcp/relay_domains

Als letztes muss man dies noch in die main.cf eintragen
Code:
relay_domains                = hash:/etc/postfix/ispcp/relay_domains

Einmal Postfix restarten und schon wird die Email an die betreffende Domain nach aussen versendet!

Danke Nuxwin!!!


RE: [solved] Hosted Exchange Probleme die 2te - ZooL - 10-22-2010 11:11 PM

also quasi dein Letzter Thread und der Jetzige waren 2 verschiedene lösungen für 2 verschiedene fehler aber ein Problem Tongue

interessant Tongue