Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo


Problem with queued messages.

  • Hello,
    When i'm sending sinle mail there is no problem. But when mails are in the queue there is a problem. When posfix trying to deliver mail to the sender from queue every time i've got in log file:

    Nov 23 09:37:45 mail postfix/smtp: 1C115103653: to=<xx@xxxxxxx.xx>, relay=none, delay=63336, delays=62778/180/379/0, dsn=4.4.1, status=deferred (connect to secmx.efekt.pl:25: Connection timed out)

    For example i'm sending a mail to mail gmail account, when the queue is empty, mail is delivered quickly. The same situation, but there are view messages in the queue: every try to connect with google mail server is ending by message "Connection timed out", and again status is deferred.

    Below is my Postfix configuration, help

    root@mail:/var/www# postconf -n
    address_verify_poll_delay = 10s
    alias_database = hash:/etc/aliases
    alias_maps = hash:/etc/aliases
    append_dot_mydomain = no
    biff = no
    broken_sasl_auth_clients = yes
    config_directory = /etc/postfix
    default_destination_rate_delay = 2s
    home_mailbox = Maildir/
    ignore_mx_lookup_error = yes
    inet_interfaces = all
    inet_protocols = all
    mailbox_command =
    mailbox_size_limit = 0
    mydestination = zapytanie.scriptodemo.pl, mail.zapytanie.scriptodemo.pl, localhost
    myhostname = mail.zapytanie.scriptodemo.pl
    mynetworks =,
    myorigin = $myhostname
    readme_directory = no
    recipient_delimiter = +
    relayhost =
    smtp_connect_timeout = 0
    smtp_host_lookup = dns,native
    smtp_tls_note_starttls_offer = yes
    smtp_tls_security_level = may
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
    smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
    smtpd_recipient_restrictions = permit_auth_destination,permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_local_domain =
    smtpd_sasl_security_options = noanonymous
    smtpd_tls_CAfile = /etc/ssl/certs/cacert.pem
    smtpd_tls_auth_only = no
    smtpd_tls_cert_file = /etc/ssl/certs/smtpd.crt
    smtpd_tls_key_file = /etc/ssl/private/smtpd.key
    smtpd_tls_loglevel = 1
    smtpd_tls_received_header = yes
    smtpd_tls_security_level = may
    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
    smtpd_tls_session_cache_timeout = 3600s
    smtpd_use_tls = yes
    tls_random_source = dev:/dev/urandom