ispconfig mailjet smtp relay error

Discussion in 'General' started by lindu, Sep 19, 2021.

  1. lindu

    lindu Member

    hi , i setting smtp relay to mail jet and become error . vps using upcloud.com

    my email can't receive and send.

    Sep 19 18:58:28 cloud dovecot: imap([email protected]): Logged out in=70 out=633
    Sep 19 18:58:29 cloud dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=2097, secured, session=<xlwDwF3MhL9/AAAB>
    Sep 19 18:58:29 cloud dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=2099, secured, session=<KocDwF3Mhr9/AAAB>
    Sep 19 18:58:29 cloud dovecot: imap([email protected]): Logged out in=120 out=770
    Sep 19 18:58:29 cloud dovecot: imap([email protected]): Logged out in=324 out=29270
    Sep 19 18:58:32 cloud dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=2101, secured, session=<5Rs8wF3MiL9/AAAB>
    Sep 19 18:58:32 cloud dovecot: imap([email protected]): Logged out in=32 out=485
    Sep 19 18:58:32 cloud dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=2103, secured, session=<jnU9wF3Mir9/AAAB>
    Sep 19 18:58:32 cloud dovecot: imap([email protected]): Logged out in=44 out=592
    Sep 19 18:58:46 cloud postfix/smtps/smtpd[2110]: connect from localhost[127.0.0.1]
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  3. lindu

    lindu Member

    hi this my error code
    Code:
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Ubuntu 18.04.6 LTS
     
    [INFO] uptime:  10:15:59 up 15:23,  1 user,  load average: 0.07, 0.02, 0.00
     
    [INFO] memory:
                  total        used        free      shared  buff/cache   available
    Mem:           3.9G        2.8G        170M        130M        868M        668M
    Swap:            0B          0B          0B
     
    [INFO] ISPConfig is installed.
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.2.6
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 7.2.24-0ubuntu***.***.***.***
    [INFO] php-cgi (used for cgi php in default vhost!) is version 7.2.24
    
    ##### PORT CHECK #####
    
    [WARN] Port 465 (SMTP server SSL) seems NOT to be listening
    
    ##### MAIL SERVER CHECK #####
    
    [WARN] I found no "submission" entry in your postfix master.cf
    [INFO] this is not critical, but if you want to offer port 587 for smtp connections you have to enable this.
    [WARN] I found no "smtps" entry in your postfix master.cf
    [INFO] this is not critical, but if you want to offer SSL for smtp (not TLS) connections you have to enable this.
    
    ##### RUNNING SERVER PROCESSES #####
    
    [INFO] I found the following web server(s):
        Apache 2 (PID 2600)
    [INFO] I found the following mail server(s):
        Postfix (PID 2784)
    [INFO] I found the following pop3 server(s):
        Dovecot (PID 1000)
    [INFO] I found the following imap server(s):
        Dovecot (PID 1000)
    [INFO] I found the following ftp server(s):
        PureFTP (PID 1230)
    
    ##### LISTENING PORTS #####
    (only        ()
    Local        (Address)
    [localhost]:10023        (1180/postgrey)
    [localhost]:10024        (1354/amavisd-new)
    [localhost]:10025        (2784/master)
    [localhost]:10026        (1354/amavisd-new)
    [localhost]:3306        (1022/mysqld)
    [localhost]:10027        (2784/master)
    [localhost]:11211        (947/memcached)
    [anywhere]:110        (1000/dovecot)
    [anywhere]:143        (1000/dovecot)
    [anywhere]:21        (1230/pure-ftpd)
    ***.***.***.***:53        (944/named)
    ***.***.***.***:53        (944/named)
    [localhost]:53        (944/named)
    ***.***.***.***:53        (692/systemd-resolve)
    [anywhere]:22        (1012/sshd)
    [anywhere]:25        (2784/master)
    [localhost]:953        (944/named)
    [anywhere]:993        (1000/dovecot)
    [anywhere]:995        (1000/dovecot)
    *:*:*:*::*:10024        (1354/amavisd-new)
    *:*:*:*::*:10026        (1354/amavisd-new)
    [localhost]10        (1000/dovecot)
    [localhost]43        (1000/dovecot)
    *:*:*:*::*:8080        (2600/apache2)
    *:*:*:*::*:80        (2600/apache2)
    *:*:*:*::*:8081        (2600/apache2)
    *:*:*:*::*:21        (1230/pure-ftpd)
    *:*:*:*::*:53        (944/named)
    *:*:*:*::*:22        (1012/sshd)
    *:*:*:*::*:25        (2784/master)
    *:*:*:*::*:953        (944/named)
    *:*:*:*::*:443        (2600/apache2)
    *:*:*:*::*:993        (1000/dovecot)
    *:*:*:*::*:995        (1000/dovecot)
    
    
    
    
    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination         
    f2b-sshd   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 f2b-sshd (1 references)
    target     prot opt source               destination         
    REJECT     all  --  ***.***.***.***        [anywhere]/0            reject-with icmp-port-unreachable
    REJECT     all  --  ***.***.***.***       [anywhere]/0            reject-with icmp-port-unreachable
    REJECT     all  --  ***.***.***.***        [anywhere]/0            reject-with icmp-port-unreachable
    REJECT     all  --  ***.***.***.***       [anywhere]/0            reject-with icmp-port-unreachable
    REJECT     all  --  ***.***.***.***       [anywhere]/0            reject-with icmp-port-unreachable
    REJECT     all  --  ***.***.***.***           [anywhere]/0            reject-with icmp-port-unreachable
    REJECT     all  --  ***.***.***.***       [anywhere]/0            reject-with icmp-port-unreachable
    REJECT     all  --  ***.***.***.***         [anywhere]/0            reject-with icmp-port-unreachable
    RETURN     all  --  [anywhere]/0            [anywhere]/0           
    
    
    
    
    ##### LET'S ENCRYPT #####
    Certbot is installed in /usr/bin/letsencrypt
    
    
    
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Which tutorial did you use to install the server? Seems as if postfix master.cf has not been edited correctly.
     
  5. lindu

    lindu Member

  6. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    That tutorial states at the beginning:
    You have Ubuntu 18.04.
    There is tutorial for manual installation: https://www.ispconfig.org/documentation/ for Ubuntu 18.04, both NGinx and Apache.
     
  7. lindu

    lindu Member

    hi, i fix my self . but if i send from web apps to my email accout at server. smtp connection failed. from web mail success.
    Code:
    submission inet n - y - - smtpd
    -o syslog_name=postfix/submission
    -o smtpd_tls_security_level=encrypt
    -o smtpd_sasl_auth_enable=yes
    -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    # -o smtpd_reject_unlisted_recipient=no
    # -o smtpd_client_restrictions=$mua_client_restrictions
    # -o smtpd_helo_restrictions=$mua_helo_restrictions
    # -o smtpd_sender_restrictions=$mua_sender_restrictions
    # -o smtpd_recipient_restrictions=
    # -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
    # -o milter_macro_daemon_name=ORIGINATING
    
    smtps inet n - y - - smtpd
    -o syslog_name=postfix/smtps
    -o smtpd_tls_wrappermode=yes
    -o smtpd_sasl_auth_enable=yes
    -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    # -o smtpd_reject_unlisted_recipient=no
    # -o smtpd_client_restrictions=$mua_client_restrictions
    # -o smtpd_helo_restrictions=$mua_helo_restrictions
    # -o smtpd_sender_restrictions=$mua_sender_restrictions
    # -o smtpd_recipient_restrictions=
    # -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
    # -o milter_macro_daemon_name=ORIGINATING
    ERROR CODE FROM WEB APPS
    Code:
    AB>
    Sep 20 11:05:00 cloud dovecot: imap([email protected]**ruf.com): Logged out in=125 out=2563
    Sep 20 11:05:01 cloud postfix/smtpd[31378]: connect from localhost[127.0.0.1]
    Sep 20 11:05:01 cloud postfix/smtpd[31378]: lost connection after CONNECT from localhost[127.0.0.1]
    Sep 20 11:05:01 cloud postfix/smtpd[31378]: disconnect from localhost[127.0.0.1] commands=0/0
    Sep 20 11:05:01 cloud dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<rNamQGvM6KN/AAAB>
    Sep 20 11:05:01 cloud dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<A9qmQGvMntJ/AAAB>
     
  8. lindu

    lindu Member

    Code:
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Ubuntu 18.04.6 LTS
     
    [INFO] uptime:  11:07:51 up 16:14,  2 users,  load average: 0.00, 0.01, 0.00
     
    [INFO] memory:
                  total        used        free      shared  buff/cache   available
    Mem:           3.9G        2.9G        150M        134M        807M        591M
    Swap:            0B          0B          0B
     
    [INFO] ISPConfig is installed.
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.2.6
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 7.2.24-0ubuntu***.***.***.***
    [INFO] php-cgi (used for cgi php in default vhost!) is version 7.2.24
    
    ##### PORT CHECK #####
    
    
    ##### MAIL SERVER CHECK #####
    
    
    ##### RUNNING SERVER PROCESSES #####
    
    [INFO] I found the following web server(s):
        Apache 2 (PID 2600)
    [INFO] I found the following mail server(s):
        Postfix (PID 29748)
    [INFO] I found the following pop3 server(s):
        Dovecot (PID 1000)
    [INFO] I found the following imap server(s):
        Dovecot (PID 1000)
    [INFO] I found the following ftp server(s):
        PureFTP (PID 1230)
    
    ##### LISTENING PORTS #####
    (only        ()
    Local        (Address)
    [localhost]:10023        (1180/postgrey)
    [localhost]:10024        (1354/amavisd-new)
    [localhost]:10025        (29748/master)
    [localhost]:10026        (1354/amavisd-new)
    [localhost]:3306        (1022/mysqld)
    [localhost]:10027        (29748/master)
    [anywhere]:587        (29748/master)
    [localhost]:11211        (947/memcached)
    [anywhere]:110        (1000/dovecot)
    [anywhere]:143        (1000/dovecot)
    [anywhere]:465        (29748/master)
    [anywhere]:21        (1230/pure-ftpd)
    ***.***.***.***:53        (944/named)
    ***.***.***.***:53        (944/named)
    [localhost]:53        (944/named)
    ***.***.***.***:53        (692/systemd-resolve)
    [anywhere]:22        (1012/sshd)
    [anywhere]:25        (29748/master)
    [localhost]:953        (944/named)
    [anywhere]:993        (1000/dovecot)
    [anywhere]:995        (1000/dovecot)
    *:*:*:*::*:10024        (1354/amavisd-new)
    *:*:*:*::*:10026        (1354/amavisd-new)
    *:*:*:*::*:587        (29748/master)
    [localhost]10        (1000/dovecot)
    [localhost]43        (1000/dovecot)
    *:*:*:*::*:8080        (2600/apache2)
    *:*:*:*::*:80        (2600/apache2)
    *:*:*:*::*:465        (29748/master)
    *:*:*:*::*:8081        (2600/apache2)
    *:*:*:*::*:21        (1230/pure-ftpd)
    *:*:*:*::*:53        (944/named)
    *:*:*:*::*:22        (1012/sshd)
    *:*:*:*::*:25        (29748/master)
    *:*:*:*::*:953        (944/named)
    *:*:*:*::*:443        (2600/apache2)
    *:*:*:*::*:993        (1000/dovecot)
    *:*:*:*::*:995        (1000/dovecot)
    
    
    
    
    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination         
    f2b-sshd   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 f2b-sshd (1 references)
    target     prot opt source               destination         
    REJECT     all  --  ***.***.***.***       [anywhere]/0            reject-with icmp-port-unreachable
    REJECT     all  --  ***.***.***.***       [anywhere]/0            reject-with icmp-port-unreachable
    REJECT     all  --  ***.***.***.***       [anywhere]/0            reject-with icmp-port-unreachable
    REJECT     all  --  ***.***.***.***       [anywhere]/0            reject-with icmp-port-unreachable
    REJECT     all  --  ***.***.***.***        [anywhere]/0            reject-with icmp-port-unreachable
    REJECT     all  --  ***.***.***.***        [anywhere]/0            reject-with icmp-port-unreachable
    REJECT     all  --  ***.***.***.***       [anywhere]/0            reject-with icmp-port-unreachable
    RETURN     all  --  [anywhere]/0            [anywhere]/0           
    
    
    
    
    ##### LET'S ENCRYPT #####
    Certbot is installed in /usr/bin/letsencrypt
    
    
    
     
  9. lindu

    lindu Member

    hi. now, if i send to my email accout from web apps , SMTP Error: Could not connect to SMTP host.
    but if i send email from web mail . success. good condition with relay mailjet.
     
  10. lindu

    lindu Member

    web mail domain -> mail relay -> success
    web apps ->email account -> mail relay-> failed

    Code:
    Sep 20 11:25:01 cloud dovecot: imap-login: Disconnected (disconnected before auth was ready, waited 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<+G0viGvMUNN/AAAB>
    Sep 20 11:25:01 cloud postfix/smtpd[32623]: connect from localhost[127.0.0.1]
    Sep 20 11:25:01 cloud dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<Z5wviGvMmqR/AAAB>
    Sep 20 11:25:01 cloud postfix/smtpd[32623]: lost connection after CONNECT from localhost[127.0.0.1]
    Sep 20 11:25:01 cloud postfix/smtpd[32623]: disconnect from localhost[127.0.0.1] commands=0/Sep 20 11:26:00 cloud postfix/submission/smtpd[32651]: connect from 95-111-**-*.[***.***.***.***]
    Sep 20 11:26:00 cloud postfix/submission/smtpd[32651]: SSL_accept error from 95-111-**-**t[****]: -1
    Sep 20 11:26:00 cloud postfix/submission/smtpd[32651]: warning: TLS library problem: error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca:../ssl/record/rec_layer_s3.c:1528:SSL alert number 48:
    Sep 20 11:26:00 cloud postfix/submission/smtpd[32651]: lost connection after STARTTLS from 9***[*****]
    Sep 20 11:26:00 cloud postfix/submission/smtpd[32651]: disconnect from ****[****] ehlo=1 starttls=0/1 commands=1/2
    please help
     

Share This Page