webmail error

Discussion in 'Installation/Configuration' started by virag, Mar 24, 2012.

  1. virag

    virag New Member

    I have installed the system following the next tutorial:

    Now everithing works fine except the webmail. I can send/receive mail via thunderbird (pop3, imap), but cannot send via webmail.
    The mal.log has the next error when I send the mai to a domain in the same server:
    Mar 24 08:25:01 h2999 postfix/smtpd[10664]: connect from localhost[]
    Mar 24 08:25:01 h2999 postfix/smtpd[10664]: lost connection after CONNECT from localhost[]
    Mar 24 08:25:01 h2999 postfix/smtpd[10664]: disconnect from localhost[]
    and the next error when I send a mail to an external domain:

    Mar 24 12:32:07 h2999 imapd: LOGIN, [email protected], ip=[::ffff:], port=[53343], protocol=IMAP
    Mar 24 12:32:07 h2999 imapd: LOGOUT, [email protected], ip=[::ffff:], headers=0, body=0, rcvd=95, sent=463, time=0
    Mar 24 12:32:13 h2999 postfix/smtp[22246]: connect to gmail.com[]:25: Connection timed out
    Mar 24 12:32:13 h2999 postfix/smtp[22246]: 1AFF329F9B: to=, relay=none, delay=42, delays=0.01/0/42/0, dsn=4.4.1, status=deferred (connect to gmail.com[]:25: Connection timed out)
    Mar 24 12:32:13 h2999 postfix/cleanup[22083]: 26D6429F9C: message-id=<[email protected]>
    Mar 24 12:32:13 h2999 postfix/qmgr[21085]: 26D6429F9C: from=<>, size=2363, nrcpt=1 (queue active)
    Mar 24 12:32:13 h2999 postfix/bounce[22253]: 1AFF329F9B: sender non-delivery notification: 26D6429F9C
    Mar 24 12:32:13 h2999 postfix/smtp[22252]: 26D6429F9C: to=, relay=none, delay=0.01, delays=0.01/0/0/0, dsn=5.4.6, status=bounced (mail for mail.floridonet.hu loops back to myself)
    Mar 24 12:32:13 h2999 postfix/qmgr[21085]: 26D6429F9C: removed
    The 25 post is not blocked, because he telnet works:

    # telnet localhost 25
    Connected to localhost.
    Escape character is '^]'.
    220 mail.floridonet.hu ESMTP Postfix (Debian/GNU)
    # telnet gmail-smtp-in.l.google.com 25
    Connected to gmail-smtp-in.l.google.com.
    Escape character is '^]'.
    220 mx.google.com ESMTP e48si11061514wed.53
    I am not n a blacklist, but got the sam error, when send mail via linux mail command o telnet. During the external mail send I think in the log not gmail.com should be used, but some mx record of it. It seems tha the postfix doesn't resolve the mx records.
    My main.cf is:
    smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
    biff = no
    append_dot_mydomain = no
    readme_directory = /usr/share/doc/postfix
    smtpd_tls_cert_file = /etc/postfix/smtpd.cert
    smtpd_tls_key_file = /etc/postfix/smtpd.key
    smtpd_use_tls = yes
    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
    myhostname = mail.floridonet.hu
    alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
    alias_database = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
    #myorigin = /etc/mailname
    mydestination = localhost, localhost.localdomain
    relayhost =
    smtpd_delay_reject = no
    mynetworks = [::1]/128
    mailbox_command = procmail -a "$EXTENSION"
    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_sasl_authenticated_header = yes
    smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf, reject_unauth_destination
    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
    virtual_alias_domains =
    virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, proxy:mysql:/etc/postfix/mysql-virtual_email2email.cf, hash:/var/lib/mailman/data/virtual-mailman
    virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
    virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
    virtual_mailbox_base = /var/vmail
    virtual_uid_maps = static:5000
    virtual_gid_maps = static:5000
    smtpd_tls_security_level = may
    transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
    relay_domains = mysql:/etc/postfix/mysql-virtual_relaydomains.cf
    relay_recipient_maps = mysql:/etc/postfix/mysql-virtual_relayrecipientmaps.cf
    proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
    smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf
    smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf
    smtpd_client_message_rate_limit = 100
    maildrop_destination_concurrency_limit = 1
    maildrop_destination_recipient_limit = 1
    virtual_transport = maildrop
    header_checks = regexp:/etc/postfix/header_checks
    mime_header_checks = regexp:/etc/postfix/mime_header_checks
    nested_header_checks = regexp:/etc/postfix/nested_header_checks
    body_checks = regexp:/etc/postfix/body_checks
    owner_request_special = no
    receive_override_options = no_address_mappings
    message_size_limit = 0
    html_directory = /usr/share/doc/postfix/html
    disable_dns_lookups = yes
    Please help me to find out what should be wrong. Thank you in advance!
  2. falko

    falko Super Moderator ISPConfig Developer

    The tutorial you used is for ISPConfig 2, but you posted in the ISPConfig 3 forum. What ISPConfig version do you use?

Share This Page