Current time: 11-17-2024, 01:46 AM Hello There, Guest! (LoginRegister)


Thread Closed 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[ERLEDIGT] Hosted Exchange Probleme die 2te
Author Message
TheCry Away
Member
***

Posts: 851
Joined: Oct 2008
Reputation: 21
Post: #1
[ERLEDIGT] Hosted Exchange Probleme die 2te
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
(This post was last modified: 10-22-2010 11:18 PM by ZooL.)
10-22-2010 06:41 AM
Find all posts by this user
ZooL Offline
Moderator
*****
Moderators

Posts: 3,429
Joined: Jan 2007
Reputation: 79
Post: #2
RE: Hosted Exchange Probleme die 2te
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
10-22-2010 12:22 PM
Visit this user's website Find all posts by this user
TheCry Away
Member
***

Posts: 851
Joined: Oct 2008
Reputation: 21
Post: #3
RE: Hosted Exchange Probleme die 2te
(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!
(This post was last modified: 10-22-2010 03:41 PM by TheCry.)
10-22-2010 03:19 PM
Find all posts by this user
Nuxwin
Unregistered

 
Post: #4
RE: Hosted Exchange Probleme die 2te
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...
10-22-2010 03:54 PM
TheCry Away
Member
***

Posts: 851
Joined: Oct 2008
Reputation: 21
Post: #5
RE: Hosted Exchange Probleme die 2te
The same problem... Sad
10-22-2010 04:02 PM
Find all posts by this user
Nuxwin
Unregistered

 
Post: #6
RE: Hosted Exchange Probleme die 2te
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
10-22-2010 04:04 PM
TheCry Away
Member
***

Posts: 851
Joined: Oct 2008
Reputation: 21
Post: #7
RE: Hosted Exchange Probleme die 2te
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
10-22-2010 04:13 PM
Find all posts by this user
Nuxwin
Unregistered

 
Post: #8
RE: Hosted Exchange Probleme die 2te
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
10-22-2010 04:21 PM
TheCry Away
Member
***

Posts: 851
Joined: Oct 2008
Reputation: 21
Post: #9
RE: Hosted Exchange Probleme die 2te
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!!!
(This post was last modified: 10-22-2010 05:19 PM by TheCry.)
10-22-2010 05:17 PM
Find all posts by this user
ZooL Offline
Moderator
*****
Moderators

Posts: 3,429
Joined: Jan 2007
Reputation: 79
Post: #10
RE: [solved] Hosted Exchange Probleme die 2te
also quasi dein Letzter Thread und der Jetzige waren 2 verschiedene lösungen für 2 verschiedene fehler aber ein Problem Tongue

interessant Tongue
10-22-2010 11:11 PM
Visit this user's website Find all posts by this user
Thread Closed 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)