Problem with postfix config (CatchAll,alias)

Discussion in 'Installation/Configuration' started by stefanr, Aug 2, 2007.

  1. till

    till Super Moderator Staff Member ISPConfig Developer

    Add the line:

    mail.tec-rrnetz.de

    at the end of the file /etc/postfix/local-host-names and restart postfix.
     
  2. stefanr

    stefanr Member

    send my config's again

    Hello,

    cat /etc/postfix/main.cf

    mydomain = tec-rrnetz.de
    myhostname = mail.tec-rrnetz.de
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    #myorigin = /etc/mailname
    #mydestination = mail.rr-netz.de, quendi.rr-netz.de, localhost
    relayhost =
    mynetworks = 127.0.0.0/8
    mailbox_command =
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all
    inet_protocols = all
    smtpd_sasl_local_domain =
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_security_options = noanonymous
    broken_sasl_auth_clients = yes
    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination,check_policy_service inet:127.0.0.1:60000
    smtpd_tls_auth_only = no
    smtp_use_tls = yes
    smtp_tls_note_starttls_offer = yes
    smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
    smtpd_tls_loglevel = 1
    smtpd_tls_received_header = yes
    smtpd_tls_session_cache_timeout = 3600s
    tls_random_source = dev:/dev/urandom
    home_mailbox = Maildir/
    virtual_maps = hash:/etc/postfix/virtusertable
    mydestination = /etc/postfix/local-host-names


    cat /etc/postfix/local-host-names

    ###################################
    #
    # ISPConfig local-host-names Configuration File
    # Version 1.0
    #
    ###################################
    localhost
    quendi.rr-netz.de
    localhost.quendi.rr-netz.de
    localhost.rr-netz.de
    localhost.localdomain
    www.rr-netz.de
    www.online-streaming.de
    mail.rr-netz.de
    ...
    ...
    ...
    #### MAKE MANUAL ENTRIES BELOW THIS LINE! ####
    mail.tec-rrnetz.de


    1. I have the domain like "rr-netz.de"

    2. I have a second domain like "online-streaming.de"

    3. I set [email protected] as a CatchALL email for domain "rr-netz.de", and some other email accounts like [email protected], [email protected]. This my own Domain.

    4. I set [email protected] as a CatchALL email for domain "online-streaming.de", this will be forward to [email protected], and some other email accounts like [email protected], [email protected]. This not a Domain from me.

    5. when i log to my bnhof (like gmx) account and i send email to: [email protected] FAILED
    --> I received now this error message.
    This is the Postfix program at host saale.bnhof.de.

    I'm sorry to have to inform you that your message could not
    be delivered to one or more recipients. It's attached below.

    For further assistance, please send mail to <postmaster>

    If you do so, please include this problem report. You can
    delete your own text from the attached returned message.

    The Postfix program

    <[email protected]>: Host or domain name not found. Name service error
    for name=mail.rr-netz.de.online-streaming.de type=A: Host not found



    6. when i log in with imap to the ispconfig server and send email to: [email protected]
    --> I receive this mail on the inbox from [email protected]. OK

    My DNS for online-streaming.de by my ISP (hetzner):
    $TTL 86400
    @ IN SOA ns1.first-ns.de. postmaster.robot.first-ns.de. (
    2007081302 ; serial
    14400 ; refresh
    1800 ; retry
    604800 ; expire
    86400 ) ; minimum

    @ IN NS robotns3.second-ns.com.
    @ IN NS robotns2.second-ns.de.
    @ IN NS ns1.first-ns.de.

    @ IN A 78.47.204.69
    localhost IN A 127.0.0.1
    mail IN A 78.47.204.69
    www IN A 78.47.204.69
    ftp IN CNAME www
    imap IN CNAME www
    loopback IN CNAME localhost
    pop IN CNAME www
    relay IN CNAME www
    smtp IN CNAME www
    @ IN MX 10 mail


    I think now i have only a problem from extern. I think that something with my DNS entry is wrong.



    STEFAN
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Please add the line:

    append_dot_mydomain = no

    to the main.cf file and restart postfix.
     
  4. stefanr

    stefanr Member

    change main.cf


    Hello till,

    i add this line but it don't work.
    I think i have a big mistak in my DNS config at the ISP. I make my DNS entry at the hetzner domain robot system. ISP = hetzner.

    i disable my bind9 on my server. I make this because i read this thread
    http://www.howtoforge.com/forums/showthread.php?t=4215&referrerid=1078

    this is my DNS entry for the rr-netz.de domain on the domain robot at hetzner

    $TTL 86400
    @ IN SOA ns1.first-ns.de. postmaster.robot.first-ns.de. (
    2007073000 ; serial
    14400 ; refresh
    1800 ; retry
    604800 ; expire
    86400 ) ; minimum

    @ IN NS robotns3.second-ns.com.
    @ IN NS robotns2.second-ns.de.
    @ IN NS ns1.first-ns.de.

    @ IN A 88.198.26.239
    forum IN A 88.198.26.239
    ispconfig IN A 88.198.26.239
    localhost IN A 127.0.0.1
    mail IN A 88.198.26.239
    mxmail IN A 85.116.204.95
    webmail IN A 88.198.26.239
    www IN A 88.198.26.239
    ftp IN CNAME www
    imap IN CNAME www
    loopback IN CNAME localhost
    pop IN CNAME www
    relay IN CNAME www
    smtp IN CNAME www
    @ IN MX 10 mail
    @ IN MX 50 ns1.hostingkunden.de


    this is my DNS entry for the online-streaming.de domain on the domain robot at hetzner

    $TTL 86400
    @ IN SOA ns1.first-ns.de. postmaster.robot.first-ns.de. (
    2007081304 ; serial
    14400 ; refresh
    1800 ; retry
    604800 ; expire
    86400 ) ; minimum

    @ IN NS robotns3.second-ns.com.
    @ IN NS robotns2.second-ns.de.
    @ IN NS ns1.first-ns.de.

    @ IN A 78.47.204.69
    localhost IN A 127.0.0.1
    mail IN A 78.47.204.69
    www IN A 78.47.204.69
    ftp IN CNAME www
    imap IN CNAME www
    loopback IN CNAME localhost
    pop IN CNAME www
    relay IN CNAME www
    smtp IN CNAME www
    @ IN MX 10 mail


    it this ok? I think her is my mistake.

    Thank's


    Stefan
     
  5. stefanr

    stefanr Member

    Hello,

    i think i have my problem, but no ideas to resolve:
    i make a dns report at http://dnsreport.com and recieved this:

    Hello,

    i think i have my problem, but no ideas to resolve:
    i make a dns report at http://dnsreport.com and recieved this:

    ERROR: I could not complete a connection to any of your mailservers!

    mail.rr-netz.de.online-streaming.de: Could not connect without glue or A record.<br />
    If this is a timeout problem, note that the DNSreport only waits about 40 seconds for responses, so your mail *may* work fine in this case but you will need to use testing tools specifically designed for such situations to be certain.

    ERROR: None of your mail server(s) seem to have reverse DNS (PTR) entries (I didn't get any responses for them). RFC1912 2.1 says you should have a reverse DNS for all your mail servers. It is strongly urged that you have them, as many mailservers will not accept mail from mailservers with no reverse DNS entry. You can double-check using the 'Reverse DNS Lookup' tool at the DNSstuff site (it contacts your servers in real time; the reverse DNS lookups in the DNS report use our local caching DNS server).


    have no idea to fix this problem in my domain-robot at hetzner.
    I hope anybody can help me.

    Stefan
     
  6. falko

    falko Super Moderator Howtoforge Staff

    I guess you're missing a dot somewhere in your zone files. E.g.
    Code:
    @ IN MX 50 ns1.hostingkunden.de
    should be
    Code:
    @ IN MX 50 ns1.hostingkunden.de[B][COLOR="Red"].[/COLOR][/B]
    Without the dot, it translates to
    ns1.hostingkunden.de.rr-netz.de.

    I think this is the matter with mail.rr-netz.de.online-streaming.de, too. I think you mean just mail.rr-netz.de, but forgot a dot somewhere...
     
  7. stefanr

    stefanr Member

    . or not a .

    hi falko,

    i find this mistake also, and i fixed it, but i tried to send a message and i wan't work at this time, but i think the problem will be fixed with this.

    i sent a message when it will works fine.


    Stefan
     

Share This Page