• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Postfix empfängt nur Mails einer Domain

Status
Für weitere Antworten geschlossen.
OP
M

mm78pr

Newbie
ja , ich hab zb in PHP Scripten mehrere Sendmails drin , welche Mails an zb user@eternalflames.meischke.de oder user@meischke.de schicken , diese Mails kommen in meinem Postfach an welches auch Mails an user@1017-1.1st-housing.de die von aussen kommen beinhaltet.
 

oc2pus

Ultimate Guru
dein postfix nimmt nur emails an
62.112.157.152/29, 127.0.0.0/8, 128.0.0.0/1 an.

und auf dieser Adresse läuft nix:
connect to mail.meischke.de[62.112.157.154]: Connection refused (port 25)

ich hab jetzt grad kein rechner um die netmask auszurechnen, ich denke da liegt der Fehler. Wenn du mit telnet 62.112.157.154 25 eine mail in deinen Postfix reinkriegst hast du gewonnen.
Schau dir auch noch mal deine Nameserver Konfiguration an, evtl hilft es für die mailmeischke Adresse den richtigen MX Record zu setzen.

Da ich jetzt aber Feierabend mache und ein wenig Golfen gehe, kann ich mich erst heute Abend mit dem Problem weiter beschäftigen. Werde aber den Thread weiter beobachten.
Vielleicht hat themichel ja noch eine Idee?

Und zu deinem Problem, Konfigurationen zu posten: denk auch mal an die anderen, die das gleiche Problem haben. Wenn die deine Konfig vergleichen mit Ihrer, dann sehen Sie evtl was falsch ist. Und die wenigen privaten Sachen kann mann/frau ja ausXXXXXen.
Da dein Mailserver ja sowieso von aussen erreichbar ist, wo ist das Problem? Oder ist dein Firewall schwach konfiguriert ;)
 
OP
M

mm78pr

Newbie
meinst du diese Konfiguration ?

Code:
RIGIN meischke.de.
$TTL 86400
meischke.de.        IN        SOA        . hostmaster. (
                        2003062101
                        10800
                        3600
                        604800
                        86400 )
.      86400  IN   A   62.112.129.137
.      86400  IN   A   62.112.140.253
meischke.de.      86400  IN   A         62.112.157.154
*.meischke.de.   86400  IN   A         62.112.157.154
 
meischke.de.     86400   IN   MX 10   mail..meischke.de.
 
meischke.de.     86400   IN   NS        .
meischke.de.     86400   IN   NS        .

bei mynetworks hatte ich schon versucht die 154 einzufügen , aber wusste nicht so genau was ich da schreiben muss , darum ist die ip wieder raus
 

oc2pus

Ultimate Guru
mydestination must includes all the tokens that can be found in the part right of the @ sign, so that the mailer knows that those emails must be delivered locally instead of being routed to another mailer by querying the DNS for an MX record

probier mal die ip mit /24 für mydestination
62.112.157.152/24, 127.0.0.0/8, 128.0.0.0/1

und dann telnet 62.112.157.154 25
 

oc2pus

Ultimate Guru
Code:
Virtual domains
This allows your Postfix mailer to accept mails for domains other than its own. By default, you must create a user account in /etc/passwd, and add a mapping in eg. /etc/postfix/virtual between the public email address and the actual account that lives in /etc/passwd.

If no mapping is required (ie. the user account used in the virtual address matches a unique account in /etc/passwd), you can simplify things by editing /etc/postfix/transport, and tell it to just deliver any email meant for virtual accounts locally. The latter is dangerous, however, because eg. any email for mike@abc.com and mike.@xyz.com will be delivered to the same mailbox.
The standard way

In the following example, we'll create a Unix user account, tell Postfix to accept accounts for the virtual domain "testcompany.com", and have it forward any email meant for jdoe@testcompany.com to the real Unix account janed.

   1. useradd -c "Postfix user account" -s /bin/false janed ; passwd janed
   2. Edit /etc/postfix/main.cf: virtual_maps = hash:/etc/postfix/virtual
   3. Build the hashed file: postmap /etc/postfix/virtual
   4. Edit /etc/postfix/virtual:

      testcompany.com    virtual

      jdoe@testcompany.com    janed

      Note: In the hashed virtual table, Postfix can discriminate between the list of virtual domains and the list of email redirectors by checking for the presence of the @ sign.
       
   5. postfix reload

The funny way

Here, we don't want to bother keeping an up-to-date mapping between virtual email addresses and Unix user accounts. This is OK if any user account is unique, regardless of the domain to which it belongs:

   1. useadd -c "Postfix user account" -s /bin/false janed ; passwd janed
   2. Edit /etc/postfix/main.cf: transport_maps = hash: /etc/postfix/transport
   3. Edit /etc/postfix/transport:
      othercompany.com    local:
   4. postmap hash: /etc/postfix/transport
   5. postfix reload

Important: Again, this shortcut only works if Unix user accounts are unique!

For instance, suppose that...

   1. The Postfix mailer lives in the domain @acme.com, ie. in main.cf, mydomain = acme.com
   2. An entry in /etc/passwd is called "janed"
   3. You are asked to support messages for the virtual domain @testcompany.com
   4. Another Jane Doe exists in that other company whose virtual domain you handle, and thus, needs an email called janed@testcompany.com

Now, any email meant for janed@acme.com or janed@testcompany.com is delivered into a single /var/spool/mail/janed (or whatever mailbox scheme you are using).  For this reason, it is recommended to use The Standard Way.

Auszug aus: http://www.ypsolog.com/docs/postfix.html
 
OP
M

mm78pr

Newbie
also 62.112.157.152/29 ergibt die IP Range 62.112.157.153 - 62.112.157.158 und das sind meine IPs auf dem Server , wobei nur die 153 (Confixx) und die 154 (web, ftp usw) genutz werden

Wenn ich 62.112.157.152/24 eingebe dann is das die Range 62.112.157.1 bis 62.112.157.254 , und das überschneidet sich mit zb den IPs anderer Server

habs aber mal so wie du sagtest verändert , ohne erfolg
 

oc2pus

Ultimate Guru
die nameserver Daten die du geschickt hast sind doch für meischke.de (also den 154) ??

wie sehen die DNS Daten für den 153er Rechner aus?

Code:
snake:~ # host 1017-1.1st-housing.de
1017-1.1st-housing.de has address 62.112.157.153
Code:
snake:~ # host -t MX 1017-1.1st-housing.de
snake:~ #
Code:
snake:~ # host meischke.de
meischke.de has address 62.112.157.154
Code:
snake:~ # host -t MX meischke.de
meischke.de mail is handled by 100 mail.meischke.de.
Code:
mydomain = meischke.de
myhostname = 1017-1.1st-housing.de
mynetworks = 62.112.157.152/29, 127.0.0.0/8, 128.0.0.0/1

dann ist doch in mydomain/myhostname ein Dreher drin.
also entweder beide für xxx.153 oder beide für xxx.154
 
OP
M

mm78pr

Newbie
habe jetzt bei mydomain und myhostname 1017-1.1st-housing.de eingetragen , nur dann kommen Mails an (nur bei Angabe von ...@1017-1.1st-housing.de). Bei meischke.de passiert gar nichts.

die DNS Daten von 62.112.157.153 find ich leider nirgends
 
OP
M

mm78pr

Newbie
Ich hab das Domain Problem gelöst

Ich dachte eigentlich bisher das die Konfigurationen von Sendmail und Postfix zwei unterschiedliche Dinge sind aber manchmal genügt es in der Sendmail Config die benötigten Domains einzutragen damit diese von Postfix erkannt werden. Dabei ist Sendmail als Mailserver gar nicht aktiv.
 
OP
M

mm78pr

Newbie
installiert habe ich beides nicht , da war schon alles installiert.
aber nur Postfix ist als Mailserver aktiv und Sendmail ist einfach nur installiert.
Sendmail laesst sich ja auch gar nicht starten wenn zb Postfix läuft.

Ich hatte ja Webmin installiert (siehe erstes Posting) und dort gibt es ja auch eine Konfigurationseite für Sendmail , dort habe ich einfach alle meine Domains eingetragen und danach kamen die Mails an.
 
Status
Für weitere Antworten geschlossen.
Oben