Mail error , doesn't send externally.

Discussion in 'Installation/Configuration' started by sharkutz, Jul 25, 2013.

  1. sharkutz

    sharkutz New Member

    I'm using a Ubuntu 12.04 LTS(apache2 , postfix, dovecot server) with ISPconfig 3.0.5.2

    The server worked fine, but after an update , the mails remain in Mail Queue.
    I've tried everything , all similar post , testing ... and nothing.

    Can you give me some clues at what to look , the mail logs are huge , main error is status=deferred or bounce .

    All the services are fully functional...

    P.s Please tell what info you need ...
     
  2. sharkutz

    sharkutz New Member

    mail log.

    Jul 25 10:43:02 mail postfix/smtpd[12172]: connect from localhost.localdomain[127.0.0.1]
    Jul 25 10:43:02 mail postfix/smtpd[12172]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
    Jul 25 10:43:02 mail postfix/smtpd[12172]: disconnect from localhost.localdomain[127.0.0.1]
    Jul 25 10:43:02 mail dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 10:43:02 mail dovecot: pop3-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 10:43:02 mail postfix/smtp[13498]: connect to mta6.am0.yahoodns.net[98.138.112.35]:25: Connection timed out
    Jul 25 10:43:32 mail postfix/smtp[13498]: connect to mta5.am0.yahoodns.net[63.250.192.45]:25: Connection timed out
    Jul 25 10:43:32 mail postfix/smtp[13498]: A4CF114189A: to=<[email protected]>, relay=none, delay=23728, delays=23577/0.03/150/0, dsn=4.4.1, status=deferred (connect to mta5.am0.yahoodns.net[63.250.192.45]:25: Connection timed out)
    Jul 25 10:44:01 mail CRON[13525]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
    Jul 25 10:44:01 mail pure-ftpd: ([email protected]) [INFO] New connection from 127.0.0.1
    Jul 25 10:44:01 mail pure-ftpd: ([email protected]) [INFO] Logout.
    Jul 25 10:44:01 mail postfix/smtpd[12172]: connect from localhost.localdomain[127.0.0.1]
    Jul 25 10:44:01 mail postfix/smtpd[12172]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
    Jul 25 10:44:01 mail postfix/smtpd[12172]: disconnect from localhost.localdomain[127.0.0.1]
    Jul 25 10:44:01 mail dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 10:44:01 mail dovecot: pop3-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 10:45:01 mail CRON[13535]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
    Jul 25 10:45:01 mail CRON[13537]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /dev/null)
    Jul 25 10:45:02 mail pure-ftpd: ([email protected]) [INFO] New connection from 127.0.0.1
    Jul 25 10:45:02 mail pure-ftpd: ([email protected]) [INFO] Logout.
    Jul 25 10:45:02 mail postfix/smtpd[12172]: connect from localhost.localdomain[127.0.0.1]
    Jul 25 10:45:02 mail postfix/smtpd[12172]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
    Jul 25 10:45:02 mail postfix/smtpd[12172]: disconnect from localhost.localdomain[127.0.0.1]
    Jul 25 10:45:02 mail dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 10:45:02 mail dovecot: pop3-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 10:45:02 mail pure-ftpd: ([email protected]) [INFO] New connection from 127.0.0.1
    Jul 25 10:45:02 mail pure-ftpd: ([email protected]) [INFO] Logout.
    Jul 25 10:45:02 mail postfix/smtpd[12172]: connect from localhost.localdomain[127.0.0.1]
    Jul 25 10:45:02 mail postfix/smtpd[12172]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
    Jul 25 10:45:02 mail postfix/smtpd[12172]: disconnect from localhost.localdomain[127.0.0.1]
    Jul 25 10:45:02 mail dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 10:45:02 mail dovecot: pop3-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 10:45:47 mail dovecot: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=192.168.1.34, lip=192.168.1.5, mpid=13612, TLS
    Jul 25 10:45:47 mail dovecot: pop3([email protected]): Disconnected: Logged out top=0/0, retr=0/0, del=0/25, size=380432
    Jul 25 10:46:01 mail CRON[13614]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
    Jul 25 10:46:02 mail pure-ftpd: ([email protected]) [INFO] New connection from 127.0.0.1
    Jul 25 10:46:02 mail pure-ftpd: ([email protected]) [INFO] Logout.
    Jul 25 10:46:02 mail postfix/smtpd[12172]: connect from localhost.localdomain[127.0.0.1]
    Jul 25 10:46:02 mail postfix/smtpd[12172]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
    Jul 25 10:46:02 mail postfix/smtpd[12172]: disconnect from localhost.localdomain[127.0.0.1]
    Jul 25 10:46:02 mail dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 10:46:02 mail dovecot: pop3-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 10:47:01 mail CRON[13623]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
    Jul 25 10:47:01 mail pure-ftpd: ([email protected]) [INFO] New connection from 127.0.0.1
    Jul 25 10:47:01 mail pure-ftpd: ([email protected]) [INFO] Logout.
    Jul 25 10:47:01 mail postfix/smtpd[12172]: connect from localhost.localdomain[127.0.0.1]
    Jul 25 10:47:01 mail postfix/smtpd[12172]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
    Jul 25 10:47:01 mail postfix/smtpd[12172]: disconnect from localhost.localdomain[127.0.0.1]
    Jul 25 10:47:01 mail dovecot: pop3-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 10:47:01 mail dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 10:48:01 mail CRON[13632]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
    Jul 25 10:48:01 mail pure-ftpd: ([email protected]) [INFO] New connection from 127.0.0.1
    Jul 25 10:48:01 mail pure-ftpd: ([email protected]) [INFO] Logout.
    Jul 25 10:48:01 mail postfix/smtpd[12172]: connect from localhost.localdomain[127.0.0.1]
    Jul 25 10:48:01 mail postfix/smtpd[12172]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
    Jul 25 10:48:01 mail postfix/smtpd[12172]: disconnect from localhost.localdomain[127.0.0.1]
    Jul 25 10:48:01 mail dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 10:48:01 mail dovecot: pop3-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 10:49:01 mail CRON[13641]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
    Jul 25 10:49:02 mail pure-ftpd: ([email protected]) [INFO] New connection from 127.0.0.1
    Jul 25 10:49:02 mail pure-ftpd: ([email protected]) [INFO] Logout.
    Jul 25 10:49:02 mail postfix/smtpd[12172]: connect from localhost.localdomain[127.0.0.1]
    Jul 25 10:49:02 mail postfix/smtpd[12172]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
    Jul 25 10:49:02 mail postfix/smtpd[12172]: disconnect from localhost.localdomain[127.0.0.1]
    Jul 25 10:49:02 mail dovecot: pop3-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 10:49:02 mail dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 10:50:01 mail CRON[13652]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
    Jul 25 10:50:01 mail CRON[13654]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /dev/null)
    Jul 25 10:50:02 mail pure-ftpd: ([email protected]) [INFO] New connection from 127.0.0.1
    Jul 25 10:50:02 mail pure-ftpd: ([email protected]) [INFO] Logout.
    Jul 25 10:50:02 mail postfix/smtpd[12172]: connect from localhost.localdomain[127.0.0.1]
    Jul 25 10:50:02 mail postfix/smtpd[12172]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
    Jul 25 10:50:02 mail postfix/smtpd[12172]: disconnect from localhost.localdomain[127.0.0.1]
    Jul 25 10:50:02 mail dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 10:50:02 mail dovecot: pop3-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
     
  3. sharkutz

    sharkutz New Member

    /etc/postfix/main.cf

    alias_database = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
    alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
    append_dot_mydomain = no
    biff = no
    body_checks = regexp:/etc/postfix/body_checks
    broken_sasl_auth_clients = yes
    config_directory = /etc/postfix
    content_filter = amavis:[127.0.0.1]:10024
    dovecot_destination_recipient_limit = 1
    header_checks = regexp:/etc/postfix/header_checks
    html_directory = /usr/share/doc/postfix/html
    inet_interfaces = all
    inet_protocols = all
    mailbox_size_limit = 0
    maildrop_destination_concurrency_limit = 1
    maildrop_destination_recipient_limit = 1
    message_size_limit = 0
    mime_header_checks = regexp:/etc/postfix/mime_header_checks
    mydestination = mail.neoziv.com, localhost, localhost.localdomain
    myhostname = mail.neoziv.com
    mynetworks = 127.0.0.0/8 [::1]/128 192.168.1.0/24
    myorigin = /etc/mailname
    nested_header_checks = regexp:/etc/postfix/nested_header_checks
    owner_request_special = no
    proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virt ual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipien t_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonica l_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
    readme_directory = /usr/share/doc/postfix
    receive_override_options = no_address_mappings
    recipient_delimiter = +
    relay_domains = mysql:/etc/postfix/mysql-virtual_relaydomains.cf
    relay_recipient_maps = mysql:/etc/postfix/mysql-virtual_relayrecipientmaps.cf
    relayhost =
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
    smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
    smtpd_client_message_rate_limit = 100
    smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual _client.cf
    smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, che ck_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf, reject_unauth _destination, reject_rbl_client sbl.spamhaus.org
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_authenticated_header = yes
    smtpd_sasl_path = private/auth
    smtpd_sasl_type = dovecot
    smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual _sender.cf
    smtpd_tls_cert_file = /etc/postfix/smtpd.cert
    smtpd_tls_key_file = /etc/postfix/smtpd.key
    smtpd_tls_security_level = may
    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
    smtpd_use_tls = yes
    transport_maps = hash:/var/lib/mailman/data/transport-mailman, proxy:mysql:/etc/ postfix/mysql-virtual_transports.cf
    virtual_alias_domains =
    virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, prox y:mysql:/etc/postfix/mysql-virtual_email2email.cf, hash:/var/lib/mailman/data/vi rtual-mailman
    virtual_gid_maps = static:5000
    virtual_mailbox_base = /var/vmail
    virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
    virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
    virtual_transport = dovecot
    virtual_uid_maps = static:5000
    nzvadmin@mail:~$ cat /etc/mail
    mail/ mailcap mailcap.order mailman/ mailname
    nzvadmin@mail:~$ cat /etc/mail
    mail/ mailcap mailcap.order mailman/ mailname
    nzvadmin@mail:~$ cat /etc/mailname
    mail.neoziv.com
    nzvadmin@mail:~$ vi /etc/postfix/main.cf
    smtpd_tls_security_level = may
    transport_maps = hash:/var/lib/mailman/data/transport-mailman, 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 = dovecot
    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
    dovecot_destination_recipient_limit = 1
    smtpd_sasl_type = dovecot
    smtpd_sasl_path = private/auth
    content_filter = amavis:[127.0.0.1]:10024
    receive_override_options = no_address_mappings
    message_size_limit = 0
    ~
     
  4. sharkutz

    sharkutz New Member

    netstat -tap

    tcp 0 0 *:ftp *:* LISTEN -
    tcp 0 0 mail.neoziv.com:domain *:* LISTEN -
    tcp 0 0 localhost.locald:domain *:* LISTEN -
    tcp 0 0 *:ssh *:* LISTEN -
    tcp 0 0 *:smtp *:* LISTEN -
    tcp 0 0 localhost.localdoma:953 *:* LISTEN -
    tcp 0 0 *:https *:* LISTEN -
    tcp 0 0 *:imaps *:* LISTEN -
    tcp 0 0 *:pop3s *:* LISTEN -
    tcp 0 0 localhost.localdo:10024 *:* LISTEN -
    tcp 0 0 localhost.localdom:9000 *:* LISTEN -
    tcp 0 0 localhost.localdo:10025 *:* LISTEN -
    tcp 0 0 *:mysql *:* LISTEN -
    tcp 0 0 *:submission *:* LISTEN -
    tcp 0 0 *:pop3 *:* LISTEN -
    tcp 0 0 *:imap2 *:* LISTEN -
    tcp 0 0 *:http-alt *:* LISTEN -
    tcp 0 0 *:http *:* LISTEN -
    tcp 0 0 *:ssmtp *:* LISTEN -
    tcp 0 0 *:tproxy *:* LISTEN -
    tcp 0 0 localhost.localdo:56581 localhost.localdom:http TIME_WAIT -
    tcp 0 0 localhost.localdo:mysql localhost.localdo:36705 ESTABLISHED -
    tcp 0 0 localhost.localdo:36705 localhost.localdo:mysql ESTABLISHED -
    tcp 0 416 mail.neoziv.com:ssh 192.168.1.34:65385 ESTABLISHED -
    tcp 0 0 localhost.localdo:37261 localhost.localdo:mysql ESTABLISHED -
    tcp 0 0 localhost.localdo:mysql localhost.localdo:37261 ESTABLISHED -
    tcp 0 0 localhost.localdo:33840 localhost.localdoma:ftp TIME_WAIT -
    tcp6 0 0 [::]:ftp [::]:* LISTEN -
    tcp6 0 0 [::]:domain [::]:* LISTEN -
    tcp6 0 0 [::]:ssh [::]:* LISTEN -
    tcp6 0 0 [::]:smtp [::]:* LISTEN -
    tcp6 0 0 ip6-localhost:953 [::]:* LISTEN -
    tcp6 0 0 [::]:imaps [::]:* LISTEN -
    tcp6 0 0 [::]:pop3s [::]:* LISTEN -
    tcp6 0 0 [::]:submission [::]:* LISTEN -
    tcp6 0 0 [::]:pop3 [::]:* LISTEN -
    tcp6 0 0 [::]:imap2 [::]:* LISTEN -
    tcp6 0 0 [::]:ssmtp [::]:* LISTEN -
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    What did you update? Ubuntu or ispconfig?
     
  6. sharkutz

    sharkutz New Member

    I updated Ubuntu. simple Apt-get update and upgrade.
     
  7. sharkutz

    sharkutz New Member

    I've check the blacklist , telnet localhost 25 .... for 5 days I've tried all the solutions that i've seen similar to this . Most likely that I will erase everything and reinstall because i've probably made mode damage the fixing . :(
     
  8. sharkutz

    sharkutz New Member

    I updated Ubuntu. simple Apt-get update and upgrade.

    've check the blacklist , telnet localhost 25 .... for 5 days I've tried all the solutions that i've seen similar to this . Most likely that I will erase everything and reinstall because i've probably made more damage the fixing .
     
  9. falko

    falko Super Moderator Howtoforge Staff

    Are there any errors in your mail log (in the /var/log/ directory)? What errors does
    Code:
    postqueue -p
    show?
     
  10. sharkutz

    sharkutz New Member

  11. sharkutz

    sharkutz New Member

    Last 10 minutes of system log.

    Jul 25 20:37:19 mail postfix/smtp[2994]: connect to mta5.am0.yahoodns.net[98.138.112.34]:25: Connection timed out
    Jul 25 20:37:20 mail dovecot: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=192.168.1.34, lip=192.168.1.5, mpid=3005, TLS
    Jul 25 20:37:20 mail dovecot: pop3([email protected]): Disconnected: Logged out top=0/0, retr=0/0, del=0/25, size=380432
    Jul 25 20:37:48 mail postfix/smtp[2984]: connect to mailhubs.talkinternet.co.uk[80.74.241.5]:25: Connection timed out
    Jul 25 20:37:48 mail postfix/smtp[2985]: connect to mta5.am0.yahoodns.net[63.250.192.45]:25: Connection timed out
    Jul 25 20:37:49 mail postfix/smtp[2993]: connect to mailhubs.talkinternet.co.uk[80.74.249.201]:25: Connection timed out
    Jul 25 20:37:49 mail postfix/smtp[2994]: connect to mta6.am0.yahoodns.net[98.138.112.35]:25: Connection timed out
    Jul 25 20:38:01 mail CRON[3020]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
    Jul 25 20:38:01 mail pure-ftpd: ([email protected]) [INFO] New connection from 127.0.0.1
    Jul 25 20:38:01 mail pure-ftpd: ([email protected]) [INFO] Logout.
    Jul 25 20:38:01 mail postfix/smtpd[2612]: connect from localhost.localdomain[127.0.0.1]
    Jul 25 20:38:01 mail postfix/smtpd[2612]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
    Jul 25 20:38:01 mail postfix/smtpd[2612]: disconnect from localhost.localdomain[127.0.0.1]
    Jul 25 20:38:01 mail dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 20:38:01 mail dovecot: pop3-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 20:38:18 mail postfix/smtp[2984]: connect to mailhubs.talkinternet.co.uk[80.74.249.201]:25: Connection timed out
    Jul 25 20:38:18 mail postfix/smtp[2985]: connect to mta7.am0.yahoodns.net[63.250.192.46]:25: Connection timed out
    Jul 25 20:38:19 mail postfix/smtp[2993]: connect to mailhubs.talkinternet.co.uk[80.74.249.202]:25: Connection timed out
    Jul 25 20:38:19 mail postfix/smtp[2994]: connect to mta5.am0.yahoodns.net[98.136.216.25]:25: Connection timed out
    Jul 25 20:38:48 mail postfix/smtp[2985]: connect to mta6.am0.yahoodns.net[98.138.112.34]:25: Connection timed out
    Jul 25 20:38:48 mail postfix/smtp[2984]: connect to mailhubs.talkinternet.co.uk[80.74.241.6]:25: Connection timed out
    Jul 25 20:38:49 mail postfix/smtp[2985]: B8E6A140BBD: to=<[email protected]>, relay=none, delay=653, delays=503/0.04/150/0, dsn=4.4.1, status=deferred (connect to mta6.am0.yahoodns.net[98.138.112.34]:25: Connection timed out)
    Jul 25 20:38:49 mail postfix/smtp[2993]: connect to mailhubs.talkinternet.co.uk[80.74.241.5]:25: Connection timed out
    Jul 25 20:38:49 mail postfix/smtp[2994]: connect to mta7.am0.yahoodns.net[66.196.118.33]:25: Connection timed out
    Jul 25 20:38:49 mail postfix/smtp[2993]: 2731B140CD3: to=<[email protected]>, relay=none, delay=150, delays=0.08/0.01/150/0, dsn=4.4.1, status=deferred (connect to mailhubs.talkinternet.co.uk[80.74.241.5]:25: Connection timed out)
    Jul 25 20:38:50 mail postfix/smtp[2984]: B8E6A140BBD: to=<[email protected]>, relay=none, delay=653, delays=503/0.04/150/0, dsn=4.4.1, status=deferred (connect to mailhubs.talkinternet.co.uk[80.74.241.6]:25: Connection timed out)
    Jul 25 20:38:50 mail postfix/smtp[2994]: 2731B140CD3: to=<[email protected]>, relay=none, delay=151, delays=0.08/0.02/150/0, dsn=4.4.1, status=deferred (connect to mta7.am0.yahoodns.net[66.196.118.33]:25: Connection timed out)
    Jul 25 20:39:01 mail CRON[3038]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
    Jul 25 20:39:01 mail CRON[3037]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete)
    Jul 25 20:39:01 mail pure-ftpd: ([email protected]) [INFO] New connection from 127.0.0.1
    Jul 25 20:39:01 mail pure-ftpd: ([email protected]) [INFO] Logout.
    Jul 25 20:39:01 mail postfix/smtpd[2612]: connect from localhost.localdomain[127.0.0.1]
    Jul 25 20:39:01 mail postfix/smtpd[2612]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
    Jul 25 20:39:01 mail postfix/smtpd[2612]: disconnect from localhost.localdomain[127.0.0.1]
    Jul 25 20:39:01 mail dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 20:39:01 mail dovecot: pop3-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 20:40:01 mail CRON[3058]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /dev/null)
    Jul 25 20:40:01 mail CRON[3061]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
    Jul 25 20:40:02 mail pure-ftpd: ([email protected]) [INFO] New connection from 127.0.0.1
    Jul 25 20:40:02 mail pure-ftpd: ([email protected]) [INFO] Logout.
    Jul 25 20:40:02 mail postfix/smtpd[2612]: connect from localhost.localdomain[127.0.0.1]
    Jul 25 20:40:02 mail postfix/smtpd[2612]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
    Jul 25 20:40:02 mail postfix/smtpd[2612]: disconnect from localhost.localdomain[127.0.0.1]
    Jul 25 20:40:02 mail dovecot: pop3-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 20:40:02 mail dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 20:40:02 mail pure-ftpd: ([email protected]) [INFO] New connection from 127.0.0.1
    Jul 25 20:40:02 mail pure-ftpd: ([email protected]) [INFO] Logout.
    Jul 25 20:40:02 mail postfix/smtpd[2612]: connect from localhost.localdomain[127.0.0.1]
    Jul 25 20:40:02 mail postfix/smtpd[2612]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
    Jul 25 20:40:02 mail postfix/smtpd[2612]: disconnect from localhost.localdomain[127.0.0.1]
    Jul 25 20:40:02 mail dovecot: pop3-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 20:40:02 mail dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 20:41:01 mail CRON[3109]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
    Jul 25 20:41:02 mail pure-ftpd: ([email protected]) [INFO] New connection from 127.0.0.1
    Jul 25 20:41:02 mail pure-ftpd: ([email protected]) [INFO] Logout.
    Jul 25 20:41:02 mail postfix/smtpd[2612]: connect from localhost.localdomain[127.0.0.1]
    Jul 25 20:41:02 mail postfix/smtpd[2612]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
    Jul 25 20:41:02 mail postfix/smtpd[2612]: disconnect from localhost.localdomain[127.0.0.1]
    Jul 25 20:41:02 mail dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 20:41:02 mail dovecot: pop3-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 20:41:19 mail postfix/smtpd[2990]: timeout after END-OF-MESSAGE from localhost.localdomain[127.0.0.1]
    Jul 25 20:41:19 mail postfix/smtpd[2990]: disconnect from localhost.localdomain[127.0.0.1]
    Jul 25 20:42:01 mail CRON[3121]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
    Jul 25 20:42:01 mail pure-ftpd: ([email protected]) [INFO] New connection from 127.0.0.1
    Jul 25 20:42:01 mail pure-ftpd: ([email protected]) [INFO] Logout.
    Jul 25 20:42:01 mail postfix/smtpd[2612]: connect from localhost.localdomain[127.0.0.1]
    Jul 25 20:42:01 mail postfix/smtpd[2612]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
    Jul 25 20:42:01 mail postfix/smtpd[2612]: disconnect from localhost.localdomain[127.0.0.1]
    Jul 25 20:42:01 mail dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 20:42:01 mail dovecot: pop3-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 20:42:21 mail dovecot: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=192.168.1.34, lip=192.168.1.5, mpid=3145, TLS
    Jul 25 20:42:21 mail dovecot: pop3([email protected]): Disconnected: Logged out top=0/0, retr=0/0, del=0/25, size=380432
    Jul 25 20:43:01 mail CRON[3160]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
    Jul 25 20:43:02 mail pure-ftpd: ([email protected]) [INFO] New connection from 127.0.0.1
    Jul 25 20:43:02 mail pure-ftpd: ([email protected]) [INFO] Logout.
    Jul 25 20:43:02 mail postfix/smtpd[2612]: connect from localhost.localdomain[127.0.0.1]
    Jul 25 20:43:02 mail postfix/smtpd[2612]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
    Jul 25 20:43:02 mail postfix/smtpd[2612]: disconnect from localhost.localdomain[127.0.0.1]
    Jul 25 20:43:02 mail dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 20:43:02 mail dovecot: pop3-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 20:44:01 mail CRON[3169]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
    Jul 25 20:44:01 mail pure-ftpd: ([email protected]) [INFO] New connection from 127.0.0.1
    Jul 25 20:44:01 mail pure-ftpd: ([email protected]) [INFO] Logout.
    Jul 25 20:44:01 mail postfix/smtpd[2612]: connect from localhost.localdomain[127.0.0.1]
    Jul 25 20:44:01 mail postfix/smtpd[2612]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
    Jul 25 20:44:01 mail postfix/smtpd[2612]: disconnect from localhost.localdomain[127.0.0.1]
    Jul 25 20:44:01 mail dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 20:44:01 mail dovecot: pop3-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 20:44:28 mail postfix/postfix-script[3184]: refreshing the Postfix mail system
    Jul 25 20:44:28 mail postfix/master[2438]: reload -- version 2.9.6, configuration /etc/postfix
    Jul 25 20:44:28 mail postfix/qmgr[3189]: 2731B140CD3: from=<[email protected]>, size=3147, nrcpt=2 (queue active)
    Jul 25 20:44:58 mail postfix/smtp[3194]: connect to mail.ortusuk.com[217.41.48.1]:25: Connection timed out
    Jul 25 20:44:58 mail postfix/smtp[3195]: connect to mta5.am0.yahoodns.net[66.196.118.33]:25: Connection timed out
    Jul 25 20:45:01 mail CRON[3201]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /dev/null)
    Jul 25 20:45:01 mail CRON[3202]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
    Jul 25 20:45:02 mail pure-ftpd: ([email protected]) [INFO] New connection from 127.0.0.1
    Jul 25 20:45:02 mail pure-ftpd: ([email protected]) [INFO] Logout.
    Jul 25 20:45:02 mail dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
    Jul 25 20:45:02 mail postfix/smtpd[3226]: warning: database /var/lib/mailman/data/virtual-mailman.db is older than source file /var/lib/mailman/data/virtual-mailman
    Jul 25 20:45:02 mail dovecot: pop3-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
     
  12. sharkutz

    sharkutz New Member

    tcp 0 0 *:ftp *:* LISTEN 2460/pure-ftpd (SER
    tcp 0 0 mail.neoziv.com:domain *:* LISTEN 889/named
    tcp 0 0 localhost.locald:domain *:* LISTEN 889/named
    tcp 0 0 *:ssh *:* LISTEN 697/sshd
    tcp 0 0 *:smtp *:* LISTEN 2438/master
    tcp 0 0 localhost.localdoma:953 *:* LISTEN 889/named
    tcp 0 0 *:https *:* LISTEN 2523/apache2
    tcp 0 0 *:imaps *:* LISTEN 864/dovecot
    tcp 0 0 *:pop3s *:* LISTEN 864/dovecot
    tcp 0 0 localhost.localdom:9000 *:* LISTEN 2337/php-fpm.conf)
    tcp 0 0 localhost.localdo:10024 *:* LISTEN 1366/amavisd (maste
    tcp 0 0 localhost.localdo:10025 *:* LISTEN 2438/master
    tcp 0 0 *:mysql *:* LISTEN 871/mysqld
    tcp 0 0 *:submission *:* LISTEN 2438/master
    tcp 0 0 *:pop3 *:* LISTEN 864/dovecot
    tcp 0 0 *:imap2 *:* LISTEN 864/dovecot
    tcp 0 0 *:http-alt *:* LISTEN 2523/apache2
    tcp 0 0 *:http *:* LISTEN 2523/apache2
    tcp 0 0 *:tproxy *:* LISTEN 2523/apache2
    tcp 0 0 *:ssmtp *:* LISTEN 2438/master
    tcp6 0 0 [::]:ftp [::]:* LISTEN 2460/pure-ftpd (SER
    tcp6 0 0 [::]:domain [::]:* LISTEN 889/named
    tcp6 0 0 [::]:ssh [::]:* LISTEN 697/sshd
    tcp6 0 0 [::]:smtp [::]:* LISTEN 2438/master
    tcp6 0 0 ip6-localhost:953 [::]:* LISTEN 889/named
    tcp6 0 0 [::]:imaps [::]:* LISTEN 864/dovecot
    tcp6 0 0 [::]:pop3s [::]:* LISTEN 864/dovecot
    tcp6 0 0 [::]:submission [::]:* LISTEN 2438/master
    tcp6 0 0 [::]:pop3 [::]:* LISTEN 864/dovecot
    tcp6 0 0 [::]:imap2 [::]:* LISTEN 864/dovecot
    tcp6 0 0 [::]:ssmtp [::]:* LISTEN 2438/master
     
  13. sharkutz

    sharkutz New Member

    FIXED (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
    Restarted amavis and postfix ...conects
     
  14. sharkutz

    sharkutz New Member

    I just reinstalled everything and it's still doesn't send externally.
    I've check the blacklist with mxtools and it's clear .
    What could be the problem , any ideas? It's all most morning and I'm tired and can't think strait. Any idea ? SPF records ? ISP block, Router block ?

    SMTP Reverse DNS Mismatch Warning - Reverse DNS does not match SMTP Banner from MXTOOLBOX
     
  15. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    You have a lot of connection refused messages in the mail log.
    Have you checked if maybe port 25 is blocked?

    Have you tried doing a
    Code:
    telnet xxx.xxxx.xxx 25
    (where xxx.xxx.xxx is an external mail server that you know).

    If this fails to connect, too, did you have a look in the iptables?
    Code:
    iptables -L -n

    The Reverse DNS mismatch could be serious as well - many servers block mails coming from those sending servers.
    Check that your server's mail name and host name match the RDNS entry of the server's sending ip address.
     
  16. sharkutz

    sharkutz New Member

    Chain INPUT (policy ACCEPT)
    target prot opt source destination
    fail2ban-dovecot-pop3imap tcp -- 0.0.0.0/0 0.0.0.0/0 multiport dports 110,995,143,993
    fail2ban-pureftpd tcp -- 0.0.0.0/0 0.0.0.0/0 multiport dports 21
    fail2ban-ssh tcp -- 0.0.0.0/0 0.0.0.0/0 multiport dports 22

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination

    Chain fail2ban-dovecot-pop3imap (1 references)
    target prot opt source destination
    RETURN all -- 0.0.0.0/0 0.0.0.0/0

    Chain fail2ban-pureftpd (1 references)
    target prot opt source destination
    RETURN all -- 0.0.0.0/0 0.0.0.0/0

    Chain fail2ban-ssh (1 references)
    target prot opt source destination
    RETURN all -- 0.0.0.0/0 0.0.0.0/0


    Shouldn't port 25 be listed hear ??. The thing is that I did a clean format of the servers HDD and new install.

    Telnet to yahoo or google mail server => Connection timed out
     
  17. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Ok, seems that something is blocking your port 25.
    Does a telnet from outside TO your server work or does it time out, too?
     
  18. sharkutz

    sharkutz New Member

    220 mail.neoziv.com ESMTP Postfix (Ubuntu) [842 ms]
    EHLO please-read-policy.mxtoolbox.com
    250-mail.neoziv.com
    250-PIPELINING
    250-SIZE
    250-VRFY
    250-ETRN
    250-STARTTLS
    250-AUTH PLAIN LOGIN
    250-AUTH=PLAIN LOGIN
    250-ENHANCEDSTATUSCODES
    250-8BITMIME
    250 DSN [780 ms]
    MAIL FROM: <[email protected]>
    250 2.1.0 Ok [780 ms]
    RCPT TO: <[email protected]>
    554 5.7.1 <[email protected]>: Relay access denied [780 ms]
    QUIT

    SendSMTPCommand: You hung up on us after we connected. Please whitelist us. (connection lost)

    MXTB-PWS3v2 4992ms
     
  19. sharkutz

    sharkutz New Member

    root@mail:/# netstat -an | grep "LISTEN "
    tcp 0 0 192.168.1.5:53 0.0.0.0:* LISTEN
    tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
    tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN
    tcp 0 0 127.0.0.1:10024 0.0.0.0:* LISTEN
    tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN
    tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:8081 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN
    tcp6 0 0 :::53 :::* LISTEN
    tcp6 0 0 :::21 :::* LISTEN
    tcp6 0 0 :::22 :::* LISTEN
    tcp6 0 0 :::25 :::* LISTEN
    tcp6 0 0 ::1:953 :::* LISTEN
    tcp6 0 0 :::993 :::* LISTEN
    tcp6 0 0 :::995 :::* LISTEN
    tcp6 0 0 :::587 :::* LISTEN
    tcp6 0 0 :::110 :::* LISTEN
    tcp6 0 0 :::143 :::* LISTEN
    tcp6 0 0 :::465 :::* LISTEN
     
  20. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Ok, so you can connect in on port 25 but not connect out. Weird.
    May it be that your server was used by a different client before (especially the ip address)?
    Some times when a server (ip) sends a lot of spam the hoster blocks it's outgoing mail traffic. You could ask your provider's support if the port 25 is blocked for outgoing traffic of your server inside the provider's network.
     

Share This Page