Problem to send email by smtp

Discussion in 'Installation/Configuration' started by estreetz, Dec 29, 2014.

  1. estreetz

    estreetz New Member

    Hello,

    I got problem to send email with iSPConfig 3.0.5.4p5 on Ubuntu 14.04
    in mail.log i got connection refused
    I received email by webmail

    Can you help me please ?

    Thank You

    root@ns1:~# cat htf_report.txt | more

    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    IP-address(es) (as per ifconfig): ***.***.***.***
    [WARN] ip addresses from hostname differ from ifconfig output. Please check your ip settings.
    [INFO] ISPConfig is installed.

    ##### ISPCONFIG #####
    ISPConfig version is 3.0.5.4p5


    ##### VERSION CHECK #####

    [INFO] php (cli) version is 5.5.9-1ubuntu4.5

    ##### PORT CHECK #####

    [WARN] Port 443 (Webserver SSL) seems NOT to be listening

    ##### MAIL SERVER CHECK #####


    ##### RUNNING SERVER PROCESSES #####

    [INFO] I found the following web server(s):
    Nginx (PID 1819)
    [INFO] I found the following mail server(s):
    Postfix (PID 30631)
    [INFO] I found the following pop3 server(s):
    Dovecot (PID 778)
    [INFO] I found the following imap server(s):
    Dovecot (PID 778)
    [INFO] I found the following ftp server(s):
    PureFTP (PID 3024)

    ##### LISTENING PORTS #####
    (seulement ()
    Adresse (distante)
    [anywhere]:465 (30631/master)
    [anywhere]:8081 (1819/nginx)
    [anywhere]:21 (3024/pure-ftpd)
    ***.***.***.***:53 (836/named)
    [localhost]:53 (836/named)
    [anywhere]:22 (767/sshd)
    [anywhere]:25 (30631/master)
    [localhost]:953 (836/named)
    [anywhere]:993 (778/dovecot)
    [anywhere]:995 (778/dovecot)
    [localhost]:10024 (1262/amavisd-new)
    [localhost]:10025 (30631/master)
    [localhost]:3306 (873/mysqld)
    [anywhere]:587 (30631/master)
    [anywhere]:110 (778/dovecot)
    [anywhere]:143 (778/dovecot)
    [anywhere]:80 (1819/nginx)
    [anywhere]:8080 (1819/nginx)
    *:*:*:*::*:465 (30631/master)
    *:*:*:*::*:21 (3024/pure-ftpd)
    *:*:*:*::*:53 (836/named)
    *:*:*:*::*:22 (767/sshd)
    *:*:*:*::*:25 (30631/master)
    *:*:*:*::*:953 (836/named)
    *:*:*:*::*:993 (778/dovecot)
    *:*:*:*::*:995 (778/dovecot)
    *:*:*:*::*:587 (30631/master)
    [localhost]10 (778/dovecot)
    [localhost]43 (778/dovecot)
    *:*:*:*::*:80 (1819/nginx)




    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target prot opt source destination
    fail2ban-postfix-sasl tcp -- [anywhere]/0 [anywhere]/0 multiport dports 25
    fail2ban-dovecot-pop3imap tcp -- [anywhere]/0 [anywhere]/0 multiport dports 110,995,143,993
    fail2ban-pureftpd tcp -- [anywhere]/0 [anywhere]/0 multiport dports 21
    fail2ban-ssh tcp -- [anywhere]/0 [anywhere]/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 -- [anywhere]/0 [anywhere]/0

    Chain fail2ban-postfix-sasl (1 references)
    target prot opt source destination
    RETURN all -- [anywhere]/0 [anywhere]/0

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

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

    mail.log

    Mail - Log (Serveur : ns1.cafe-guadeloupe.fr)

    Séquence de rafraichissement:
    Données du : 29-12-2014 00:30
    Dec 29 00:17:07 ns1 postfix/smtpd[29313]: warning: hostname client-adsl-93-121-227-120.mediaserv.net does not resolve to address 93.121.227.120: Name or service not known
    Dec 29 00:17:07 ns1 postfix/smtpd[29313]: connect from unknown[93.121.227.120]
    Dec 29 00:17:15 ns1 postfix/smtpd[29314]: warning: hostname client-adsl-93-121-227-120.mediaserv.net does not resolve to address 93.121.227.120: Name or service not known
    Dec 29 00:17:15 ns1 postfix/smtpd[29314]: connect from unknown[93.121.227.120]
    Dec 29 00:17:28 ns1 dovecot: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=93.121.227.120, lip=192.168.1.4, mpid=29316, session=<lbQn9k4LyABdeeN4>
    Dec 29 00:17:28 ns1 dovecot: pop3([email protected]): Disconnected: Logged out top=0/0, retr=0/0, del=0/3, size=7137
    Dec 29 00:17:31 ns1 dovecot: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=93.121.227.120, lip=192.168.1.4, mpid=29319, TLS, session=<tzxV9k4LygBdeeN4>
    Dec 29 00:17:31 ns1 dovecot: pop3([email protected]): Disconnected: Logged out top=0/0, retr=0/0, del=0/3, size=7137
    Dec 29 00:18:29 ns1 dovecot: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=93.121.227.120, lip=192.168.1.4, mpid=31356, TLS, session=<3hTF+U4L5QBdeeN4>
    Dec 29 00:18:29 ns1 dovecot: pop3([email protected]): Disconnected: Logged out top=0/0, retr=0/0, del=0/3, size=7137
    Dec 29 00:19:29 ns1 dovecot: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=93.121.227.120, lip=192.168.1.4, mpid=965, TLS, session=<mmxX/U4L7gBdeeN4>
    Dec 29 00:19:29 ns1 dovecot: pop3([email protected]): Disconnected: Logged out top=0/0, retr=0/0, del=0/3, size=7137
    Dec 29 00:20:01 ns1 dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<55lC/04LBAAAAAAAAAAAAAAAAAAAAAAB>
    Dec 29 00:20:01 ns1 dovecot: imap-login: Disconnected (disconnected before auth was ready, waited 0 secs): user=<>, rip=::1, lip=::1, secured, session=<SqpC/04LRAAAAAAAAAAAAAAAAAAAAAAB>
    Dec 29 00:20:01 ns1 postfix/smtpd[1114]: connect from localhost[::1]
    Dec 29 00:20:01 ns1 postfix/smtpd[1114]: lost connection after CONNECT from localhost[::1]
    Dec 29 00:20:01 ns1 postfix/smtpd[1114]: disconnect from localhost[::1]
    Dec 29 00:20:37 ns1 dovecot: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=93.121.227.120, lip=192.168.1.4, mpid=3072, TLS, session=<c/VkAU8L9QBdeeN4>
    Dec 29 00:20:37 ns1 dovecot: pop3([email protected]): Disconnected: Logged out top=0/0, retr=0/0, del=0/3, size=7137
    Dec 29 00:21:29 ns1 dovecot: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=93.121.227.120, lip=192.168.1.4, mpid=5105, TLS, session=<ZWp9BE8L+wBdeeN4>
    Dec 29 00:21:29 ns1 dovecot: pop3([email protected]): Disconnected: Logged out top=0/0, retr=0/0, del=0/3, size=7137
    Dec 29 00:21:31 ns1 postfix/qmgr[30635]: D3E7D2501627: from=<[email protected]>, size=2899, nrcpt=1 (queue active)
    Dec 29 00:21:31 ns1 postfix/qmgr[30635]: D5A312501647: from=<[email protected]>, size=2026, nrcpt=1 (queue active)
    Dec 29 00:21:31 ns1 postfix/qmgr[30635]: 689382501629: from=<[email protected]>, size=2042, nrcpt=1 (queue active)
    Dec 29 00:21:31 ns1 postfix/smtp[5107]: connect to mx4.hotmail.com[65.55.37.104]:25: Connection refused
    Dec 29 00:21:31 ns1 postfix/smtp[5107]: connect to mx2.hotmail.com[65.54.188.94]:25: Connection refused
    Dec 29 00:21:31 ns1 postfix/smtp[5107]: connect to mx2.hotmail.com[65.55.37.72]:25: Connection refused
    Dec 29 00:21:31 ns1 postfix/smtp[5107]: connect to mx1.hotmail.com[207.46.8.199]:25: Connection refused
    Dec 29 00:21:31 ns1 postfix/smtp[5107]: connect to mx2.hotmail.com[65.54.188.110]:25: Connection refused
    Dec 29 00:21:31 ns1 postfix/error[5106]: D3E7D2501627: to=<[email protected]>, relay=none, delay=8957, delays=8957/0.02/0/0.07, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[74.125.136.27]:25: Connection refused)
    Dec 29 00:21:31 ns1 postfix/smtp[5107]: D5A312501647: to=<[email protected]>, relay=none, delay=2331, delays=2331/0.03/0.02/0, dsn=4.4.1, status=deferred (connect to mx2.hotmail.com[65.54.188.110]:25: Connection refused)
    Dec 29 00:21:31 ns1 postfix/error[5108]: 689382501629: to=<[email protected]>, relay=none, delay=8559, delays=8559/0.02/0/0.11, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[74.125.136.27]:25: Connection refused)
    Dec 29 00:21:57 ns1 postfix/smtpd[27282]: timeout after AUTH from unknown[93.121.227.120]
    Dec 29 00:21:57 ns1 postfix/smtpd[27282]: disconnect from unknown[93.121.227.120]
    Dec 29 00:22:07 ns1 postfix/smtpd[29313]: timeout after MAIL from unknown[93.121.227.120]
    Dec 29 00:22:07 ns1 postfix/smtpd[29313]: disconnect from unknown[93.121.227.120]
    Dec 29 00:22:16 ns1 postfix/smtpd[29314]: timeout after MAIL from unknown[93.121.227.120]
    Dec 29 00:22:16 ns1 postfix/smtpd[29314]: disconnect from unknown[93.121.227.120]
    Dec 29 00:22:35 ns1 dovecot: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=93.121.227.120, lip=192.168.1.4, mpid=7146, TLS, session=<LkRzCE8LCgBdeeN4>
    Dec 29 00:22:35 ns1 dovecot: pop3([email protected]): Disconnected: Logged out top=0/0, retr=0/0, del=0/3, size=7137
    Dec 29 00:23:29 ns1 dovecot: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=93.121.227.120, lip=192.168.1.4, mpid=9172, TLS, session=<rVykC08LEABdeeN4>
    Dec 29 00:23:29 ns1 dovecot: pop3([email protected]): Disconnected: Logged out top=0/0, retr=0/0, del=0/3, size=7137
    Dec 29 00:24:29 ns1 dovecot: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=93.121.227.120, lip=192.168.1.4, mpid=11200, TLS, session=<oiU4D08LFwBdeeN4>
    Dec 29 00:24:29 ns1 dovecot: pop3([email protected]): Disconnected: Logged out top=0/0, retr=0/0, del=0/3, size=7137
    Dec 29 00:25:01 ns1 dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, secured, session=<OoknEU8LFgAAAAAAAAAAAAAAAAAAAAAB>
     
  2. kwickcut

    kwickcut Member HowtoForge Supporter

    i would start by checking this... looks like it is not pointing to your ip

    Dec 29 00:17:07 ns1 postfix/smtpd[29313]: warning: hostname client-adsl-93-121-227-120.mediaserv.net does not resolve to address 93.121.227.120: Name or service not known
     
    Last edited: Dec 29, 2014
  3. estreetz

    estreetz New Member

    This is my dig

    What do you means ?

    dig @localhost ns1.cafe-guadeloupe.fr

    ; <<>> DiG 9.9.5-3ubuntu0.1-Ubuntu <<>> @localhost ns1.cafe-guadeloupe.fr
    ; (2 servers found)
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9557
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

    ;; OPT PSEUDOSECTION:
    ; EDNS: version: 0, flags:; udp: 4096
    ;; QUESTION SECTION:
    ;ns1.cafe-guadeloupe.fr. IN A

    ;; ANSWER SECTION:
    ns1.cafe-guadeloupe.fr. 86400 IN A 93.121.227.120

    ;; AUTHORITY SECTION:
    cafe-guadeloupe.fr. 3600 IN NS ns1.cafe-guadeloupe.fr.
    cafe-guadeloupe.fr. 3600 IN NS ns2.cafe-guadeloupe.fr.

    ;; ADDITIONAL SECTION:
    ns2.cafe-guadeloupe.fr. 86400 IN A 93.121.227.120

    ;; Query time: 2 msec
    ;; SERVER: ::1#53:):1)
    ;; WHEN: Mon Dec 29 02:42:22 CET 2014
    ;; MSG SIZE rcvd: 115
     
  4. estreetz

    estreetz New Member

    Hello,
    Please, someone can explain me the problem
    Thanks You
     
  5. estreetz

    estreetz New Member

    Mxtoolbox.com
    this is result
    SMTP Banner Check OK - 93.121.227.120 resolves to client-adsl-93-121-227-120.mediaserv.net
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Is the server hosted in a datacenter or is it hosted at home or in office? All larger providers like gmail, hotmail, yahoo etc. will not accepst email from servers taht are hosted on a dls line or cable line as they are subject to spam. So if you host te server on such a internet connection, then you cant send mail directly, you will have to relay all outgoing emails trough the smtp gateway server of the mail server of your access provider. Many access providers block also incoming mail on port 25, so if you cant receive mail and host the server at home, then ask your isp if they block port 25 incoming.
     
  7. estreetz

    estreetz New Member

    Thanks you for your help Till,
    I was treat my smtp problem with add in relayhost my isp IP with login and password
     

Share This Page