email delivery fails

Discussion in 'Installation/Configuration' started by robd, Dec 21, 2005.

  1. robd

    robd New Member

    I'm using ISPConfig on FC4 (as a vm via xen). I have followed the Perfect Setup and all has worked fine e.g. web, sql, DNS etc

    My users are able to login to POP mail OK too.

    I have still a problem with Postfix. When I send an email to [email protected] to SMTP:// postfix gives an error.

    Dec 21 08:36:11 ns1 postfix/smtp[5466]: 5846A257AF: to=<[email protected]>, orig_to=<[email protected]>, relay=none, delay=0, status=bounced (Host or domain name not found. Name service error for type=A: Host not found)

    my server is
    my server is on
    my virtual domain is
    my virtual server is on

    Is this due to reverse DNS lookups?
    (I can post much config / setup files if needed)

    does anyone have some pointers for further investigation for me?
  2. falko

    falko Super Moderator ISPConfig Developer

    Please post the output of
    hostname -f
    . What's in /etc/postfix/
  3. robd

    robd New Member

    here's the output!

    [root@ns1 ~]# hostname
    [root@ns1 ~]# hostname -f

    and, from the end of
    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
    smtpd_tls_auth_only = no
    smtp_use_tls = yes
    smtpd_use_tls = yes
    smtp_tls_note_starttls_offer = yes
    smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
    smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
    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
    virtual_maps = hash:/etc/postfix/virtusertable
    mydestination = /etc/postfix/local-host-names

    less: /etc/postfix/virtusertable
    [email protected] web1_neilnerva
    [email protected] web1_neilnerva web1_neilnerva
    [email protected] web1_neilnerva
    [email protected] web1_neilnerva web1_neilnerva
    [email protected] web1_neilnerva
    [email protected] web1_neilnerva web1_neilnerva
    [email protected] web2_robdyke
    [email protected] web2_robdyke
    [email protected] web2_robdyke
    [email protected] web2_robdyke
    [email protected] web2_robdyke
    [email protected] web2_robdyke

    less /etc/postfix/local-host-names
  4. robd

    robd New Member

    dns reports

    ERROR: I couldn't find any MX records for If you want to receive E-mail on this domain, you should have MX record(s). Without any MX records, mailservers should attempt to deliver mail to the A record for I can't continue in a case like this, so I'm assuming you don't receive mail on this domain.
  5. robd

    robd New Member

    this is what happens with another email delivery

    I notice this in the /var/log/maillog, this must be some kinda report or otherwise being delivered to root.

    Dec 21 11:00:02 ns1 postfix/smtpd[7919]: warning: hostname localhost verification failed: Name or service not known
    Dec 21 11:00:02 ns1 postfix/smtpd[7919]: connect from unknown[]
    Dec 21 11:00:02 ns1 postfix/smtpd[7919]: setting up TLS connection from unknown[]
    Dec 21 11:00:02 ns1 sendmail[7914]: STARTTLS=client, relay=[], version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
    Dec 21 11:00:02 ns1 postfix/smtpd[7919]: TLS connection established from unknown[]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
    Dec 21 11:00:02 ns1 postfix/smtpd[7919]: F312C257AB: client=unknown[], [email protected]
    Dec 21 11:00:03 ns1 postfix/cleanup[7922]: F312C257AB: message-id=<[email protected]>
    Dec 21 11:00:03 ns1 sendmail[7914]: jBLG02bs007914: to=root@localhost, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30341, relay=[] [], dsn=2.0.0, stat=Sent (Ok: queued as F312C257AB)
    Dec 21 11:00:03 ns1 postfix/qmgr[4979]: F312C257AB: from=<[email protected]>, size=1002, nrcpt=1 (queue active)
    Dec 21 11:00:03 ns1 postfix/local[7923]: F312C257AB: to=<[email protected]>, relay=local, delay=1, status=sent (delivered to mailbox)

    so delivery to mailbox's is working?
  6. robd

    robd New Member


    I didn't have an /etc/hosts file.
    I have created one......

    [root@ns1 ~]# cat /etc/hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail. localhost.localdomain localhost ns1 ns2

    And now my email send and receive is working!

Share This Page