how to set my ispconfig3 and roundcube to work on my local IP server ?

Discussion in 'Installation/Configuration' started by jungsf, Feb 19, 2021.

  1. jungsf

    jungsf New Member

    hi,
    I installed roundcube on a local server 192.168.20.20 and combined it to the same IP, with ispconfig3,the domain jungsf.tv, when I try to send from my normal email from my pc 192.168.20.21 it says domain not found, altough the domain jungsf.tv can be pinged from my pc, when I try to send from roundcube it says SMTP Error, please, how can I make it work i.e let my round cube which is combined with the local adress 192.168.20.20 sends and recieves from pc 192.168.20.21 which are on the same LAN, and can ping to eachother , and the lan has internet connection.
    I use apache2
    Code:
      GNU nano 4.8                                                          /var/log/mail.log                                                           Modified
    Feb 19 12:20:08 serverubuntu dovecot: imap-login: Disconnected (disconnected before auth was ready, waited 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, se>
    Feb 19 12:20:08 serverubuntu dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<WSwOea+>
    Feb 19 12:20:18 serverubuntu postfix/smtpd[6274]: fatal: unexpected command-line argument: submission
    Feb 19 12:20:19 serverubuntu postfix/master[1365]: warning: process /usr/lib/postfix/sbin/smtpd pid 6274 exit status 1
    Feb 19 12:20:19 serverubuntu postfix/master[1365]: warning: /usr/lib/postfix/sbin/smtpd: bad command startup -- throttling
    Feb 19 12:26:00 serverubuntu dovecot: master: Dovecot v2.3.7.2 (3c910f64b) starting up for imap, pop3 (core dumps disabled)
    Feb 19 12:26:13 serverubuntu postgrey[1033]: Process Backgrounded
    Feb 19 12:26:13 serverubuntu postgrey[1033]: 2021/02/19-12:26:13 postgrey (type Net::Server::Multiplex) starting! pid(1033)
    Feb 19 12:26:13 serverubuntu postgrey[1033]: Resolved [localhost]:10023 to [127.0.0.1]:10023, IPv4
    Feb 19 12:26:14 serverubuntu postgrey[1033]: Binding to TCP port 10023 on host 127.0.0.1 with IPv4
    Feb 19 12:26:14 serverubuntu postgrey[1033]: Setting gid to "125 125"
    Feb 19 12:26:14 serverubuntu postgrey[1033]: Setting uid to "118"
    Feb 19 12:26:22 serverubuntu postfix/postfix-script[1159]: warning: symlink leaves directory: /etc/postfix/./smtpd.key-20210209093613.bak
    Feb 19 12:26:22 serverubuntu postfix/postfix-script[1162]: warning: symlink leaves directory: /etc/postfix/./smtpd.cert-20210209093613.bak
    Feb 19 12:26:22 serverubuntu postfix/postfix-script[1165]: warning: symlink leaves directory: /etc/postfix/./smtpd.key-20210209083911.bak
    Feb 19 12:26:22 serverubuntu postfix/postfix-script[1168]: warning: symlink leaves directory: /etc/postfix/./makedefs.out
    Feb 19 12:26:22 serverubuntu postfix/postfix-script[1171]: warning: symlink leaves directory: /etc/postfix/./smtpd.cert-20210209083911.bak
    Feb 19 12:26:22 serverubuntu postfix/postfix-script[1174]: warning: symlink leaves directory: /etc/postfix/./smtpd.key-20210209124210.bak
    Feb 19 12:26:22 serverubuntu postfix/postfix-script[1177]: warning: symlink leaves directory: /etc/postfix/./smtpd.key
    Feb 19 12:26:22 serverubuntu postfix/postfix-script[1180]: warning: symlink leaves directory: /etc/postfix/./smtpd.cert-20210209124210.bak
    Feb 19 12:26:22 serverubuntu postfix/postfix-script[1183]: warning: symlink leaves directory: /etc/postfix/./smtpd.cert
    Feb 19 12:26:23 serverubuntu postfix/postfix-script[1354]: starting the Postfix mail system
    Feb 19 12:26:23 serverubuntu postfix/master[1356]: daemon started -- version 3.4.13, configuration /etc/postfix
    Feb 19 12:26:51 serverubuntu dovecot: imap-login: Disconnected (disconnected before auth was ready, waited 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, se>
    Feb 19 12:26:52 serverubuntu dovecot: pop3-login: Disconnected (no auth attempts in 1 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<HS4lka+>
    Feb 19 12:26:52 serverubuntu postfix/smtpd[1556]: fatal: unexpected command-line argument: submission
    Feb 19 12:26:53 serverubuntu postfix/master[1356]: warning: process /usr/lib/postfix/sbin/smtpd pid 1556 exit status 1
    Feb 19 12:26:53 serverubuntu postfix/master[1356]: warning: /usr/lib/postfix/sbin/smtpd: bad command startup -- throttling
    Feb 19 12:27:05 serverubuntu dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=1583, secured, session=<zvfmka>
    Feb 19 12:27:05 serverubuntu dovecot: imap([email protected])<1583><zvfmka+7/qh/AAAB>: Logged out in=12 out=453 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_byt>
    Feb 19 12:27:14 serverubuntu dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=1585, secured, session=<LY53kq>
    Feb 19 12:27:14 serverubuntu dovecot: imap([email protected])<1585><LY53kq+7AKl/AAAB>: Logged out in=44 out=635 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_byt>
    Feb 19 12:27:27 serverubuntu dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=1592, secured, session=<6zA3k6>
    Feb 19 12:27:27 serverubuntu dovecot: imap([email protected])<1592><6zA3k6+7Aql/AAAB>: Logged out in=70 out=676 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_byt>
    Feb 19 12:27:27 serverubuntu dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=1595, secured, session=<EwQ9k6>
    Feb 19 12:27:27 serverubuntu dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=1596, secured, session=<FzA9k6>
    Feb 19 12:27:27 serverubuntu dovecot: imap([email protected])<1595><EwQ9k6+7BKl/AAAB>: Logged out in=76 out=589 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_byt>
    Feb 19 12:27:27 serverubuntu dovecot: imap([email protected])<1596><FzA9k6+7Bql/AAAB>: Logged out in=233 out=1101 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_b>
    Feb 19 12:27:50 serverubuntu dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=1601, secured, session=<YgiVlK>
    Feb 19 12:27:50 serverubuntu dovecot: imap([email protected])<1601><YgiVlK+7CKl/AAAB>: Logged out in=89 out=937 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_byt>
    Feb 19 12:27:57 serverubuntu dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=1603, secured, session=<530Mla>
    Feb 19 12:27:57 serverubuntu dovecot: imap([email protected])<1603><530Mla+7Cql/AAAB>: Logged out in=44 out=627 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_byt>
    Feb 19 12:29:27 serverubuntu dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=192.168.20.2, lip=192.168.20.20, mpid=1640, TLS, session=<ASR>
    Feb 19 12:29:36 serverubuntu dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=1643, secured, session=<8iXymq>
    Feb 19 12:29:36 serverubuntu dovecot: imap([email protected])<1643><8iXymq+7DKl/AAAB>: Logged out in=89 out=927 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_byt>
    Feb 19 12:30:08 serverubuntu dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<g17RnK+>
    Feb 19 12:30:08 serverubuntu dovecot: pop3-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<W4PRnK+>
    Feb 19 12:30:08 serverubuntu postfix/smtpd[1753]: fatal: unexpected command-line argument: submission
    Feb 19 12:30:09 serverubuntu postfix/master[1356]: warning: process /usr/lib/postfix/sbin/smtpd pid 1753 exit status 1
    Feb 19 12:30:09 serverubuntu postfix/master[1356]: warning: /usr/lib/postfix/sbin/smtpd: bad command startup -- throttling
    
    ^G Get Help      ^O Write Out     ^W Where Is      ^K Cut Text      ^J Justify       ^C Cur Pos       M-U Undo         M-A Mark Text    M-] To Bracket
    ^X Exit          ^R Read File     ^\ Replace       ^U Paste Text    ^T To Spell      ^_ Go To Line    M-E Redo         M-6 Copy Text    ^Q Where Was
    
     

    Attached Files:

    Last edited: Feb 19, 2021
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

  3. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    You'll need at least a static / fixed public ip with an opened port 25 for your mail server (some other opened ports are also needed) but normally local servers, at home or office, does not have this.

    If you do have the said prerequisites, then your postfix and RC configuration could be the issue but you will have to provide the info needed as linked in @Th0m post above.

    If you do not have the prerequisites, you may configure an email relay to achieve a working email service from your server, but this will however, subject to the relay server limit and capability itself.
     
  4. jungsf

    jungsf New Member

    what i am doing , I tried the best to clear, with pic also.
    but why i am doing, it is just practicing, I am new at work and those equipment gaven to me at work,i can't use the company's public IP to try my roundcube mailserver,ISPCONFIG3, that is why I am trying/combining/installing it to a private IP, i am whole new to this practical experience
     
  5. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Please read the read before posting.
     
  6. jungsf

    jungsf New Member

  7. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    If you did read it, why didn't you run the test script and share the output?
     
  8. jungsf

    jungsf New Member

    yes, I tried
     
  9. jungsf

    jungsf New Member

    sorry i am new to this thread, now it is done I guess, yes, i restarted the server again, still same error
     
  10. jungsf

    jungsf New Member

    Code:
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Ubuntu 20.04.2 LTS
     
    [INFO] uptime:  13:19:33 up 55 min,  1 user,  load average: 0.20, 0.25, 0.27
     
    [INFO] memory:
                  total        used        free      shared  buff/cache   available
    Mem:          3.7Gi       1.5Gi       1.2Gi        19Mi       1.0Gi       2.0Gi
    Swap:            0B          0B          0B
     
    [INFO] systemd failed services status:
      UNIT                      LOAD   ACTIVE SUB    DESCRIPTION                   
              
    ● amavis.service            loaded failed failed LSB: Starts amavisd-new mailfil
    ter       
    ● snap.lxd.activate.service loaded failed failed Service for snap application lx
    d.activate
    
    LOAD   = Reflects whether the unit definition was properly loaded.
    ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
    SUB    = The low-level unit activation state, values depend on unit type.
    
    2 loaded units listed.
    
    [INFO] ISPConfig is installed.
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.2.2
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 7.4.3
    
    ##### 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 1034)
    [INFO] I found the following mail server(s):
        Postfix (PID 1356)
    [INFO] I found the following pop3 server(s):
        Dovecot (PID 510)
    [INFO] I found the following imap server(s):
        Dovecot (PID 510)
    [INFO] I found the following ftp server(s):
        PureFTP (PID 1402)
    
    ##### LISTENING PORTS #####
    (only        ()
    Local        (Address)
    [localhost]:10023        (1033/postgrey)
    [localhost]:10025        (1356/master)
    [localhost]:10027        (1356/master)
    [localhost]:11211        (522/memcached)
    [anywhere]:110        (510/dovecot)
    [anywhere]:143        (510/dovecot)
    [anywhere]:21        (1402/pure-ftpd)
    ***.***.***.***:53        (526/named)
    [localhost]:53        (526/named)
    ***.***.***.***:53        (469/systemd-resolve)
    [anywhere]:22        (621/sshd:)
    [anywhere]:25        (1356/master)
    [localhost]:953        (526/named)
    [anywhere]:993        (510/dovecot)
    [anywhere]:995        (510/dovecot)
    *:*:*:*::*:3306        (701/mysqld)
    [localhost]10        (510/dovecot)
    [localhost]43        (510/dovecot)
    *:*:*:*::*:8080        (1034/apache2)
    *:*:*:*::*:80        (1034/apache2)
    *:*:*:*::*:8081        (1034/apache2)
    *:*:*:*::*:21        (1402/pure-ftpd)
    *:*:*:*::*ba97:5aff:fe8f:53        (526/named)
    *:*:*:*::*:53        (526/named)
    *:*:*:*::*:22        (621/sshd:)
    *:*:*:*::*:25        (1356/master)
    *:*:*:*::*:953        (526/named)
    *:*:*:*::*:443        (1034/apache2)
    *:*:*:*::*:993        (510/dovecot)
    *:*:*:*::*:995        (510/dovecot)
    
    
    
    
    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination         
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination         
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination 
     
  11. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    The mailserver check shows a issue with your master.cf file for Postfix. Go through the perfect server setup for your OS and make sure you modify it correctly.
     
    jungsf likes this.
  12. jungsf

    jungsf New Member

    thank you for the answer, I rechecked the master.cf and here it is :

    Code:
    #
    # Postfix master process configuration file.  For details on the format
    # of the file, see the master(5) manual page (command: "man 5 master" or
    # on-line: http://www.postfix.org/master.5.html).
    #
    # Do not forget to execute "postfix reload" after editing this file.
    #
    # ==========================================================================
    # service type  private unpriv  chroot  wakeup  maxproc command + args
    #               (yes)   (yes)   (no)    (never) (100)
    # ==========================================================================
    smtp      inet  n       -       y       -       -       smtpd
    #smtp      inet  n       -       y       -       1       postscreen
    #smtpd     pass  -       -       y       -       -       smtpd
    #dnsblog   unix  -       -       y       -       0       dnsblog
    #tlsproxy  unix  -       -       y       -       0       tlsproxy
     submission inet n       -       y       -       -       smtpd
       -o syslog_name=postfix/submission
       -o smtpd_tls_security_level=encrypt
       -o smtpd_sasl_auth_enable=yes
       -o smtpd_tls_auth_only=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
    #628       inet  n       -       y       -       -       qmqpd
    pickup    unix  n       -       y       60      1       pickup
    cleanup   unix  n       -       y       -       0       cleanup
    qmgr      unix  n       -       n       300     1       qmgr
    #qmgr     unix  n       -       n       300     1       oqmgr
    tlsmgr    unix  -       -       y       1000?   1       tlsmgr
    rewrite   unix  -       -       y       -       -       trivial-rewrite
    bounce    unix  -       -       y       -       0       bounce
    defer     unix  -       -       y       -       0       bounce
    # Do not forget to execute "postfix reload" after editing this file.
    #
    # ==========================================================================
    # service type  private unpriv  chroot  wakeup  maxproc command + args
    #               (yes)   (yes)   (no)    (never) (100)
    # ==========================================================================
    smtp      inet  n       -       y       -       -       smtpd
    #smtp      inet  n       -       y       -       1       postscreen
    #smtpd     pass  -       -       y       -       -       smtpd
    #dnsblog   unix  -       -       y       -       0       dnsblog
    #tlsproxy  unix  -       -       y       -       0       tlsproxy
     submission inet n       -       y       -       -       smtpd
       -o syslog_name=postfix/submission
       -o smtpd_tls_security_level=encrypt
       -o smtpd_sasl_auth_enable=yes
       -o smtpd_tls_auth_only=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
    #628       inet  n       -       y       -       -       qmqpd
    pickup    unix  n       -       y       60      1       pickup
    cleanup   unix  n       -       y       -       0       cleanup
    qmgr      unix  n       -       n       300     1       qmgr
    #qmgr     unix  n       -       n       300     1       oqmgr
    tlsmgr    unix  -       -       y       1000?   1       tlsmgr
    rewrite   unix  -       -       y       -       -       trivial-rewrite
    bounce    unix  -       -       y       -       0       bounce
    defer     unix  -       -       y       -       0       bounce
    trace     unix  -       -       y       -       0       bounce
    verify    unix  -       -       y       -       1       verify
    flush     unix  n       -       y       1000?   0       flush
    proxymap  unix  -       -       n       -       -       proxymap
    proxywrite unix -       -       n       -       1       proxymap
    smtp      unix  -       -       y       -       -       smtp
    relay     unix  -       -       y       -       -       smtp
            -o syslog_name=postfix/$service_name
    #       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
    showq     unix  n       -       y       -       -       showq
    error     unix  -       -       y       -       -       error
    retry     unix  -       -       y       -       -       error
    discard   unix  -       -       y       -       -       discard
    local     unix  -       n       n       -       -       local
    virtual   unix  -       n       n       -       -       virtual
    lmtp      unix  -       -       y       -       -       lmtp
    anvil     unix  -       -       y       -       1       anvil
    scache    unix  -       -       y       -       1       scache
    postlog   unix-dgram n  -       n       -       1       postlogd
    #
    # ====================================================================
    # Interfaces to non-Postfix software. Be sure to examine the manual
    # pages of the non-Postfix software to find out what options it wants.
    #
    # Many of the following services use the Postfix pipe(8) delivery
    # agent.  See the pipe(8) man page for information about ${recipient}
    # and other message envelope options.
    # ====================================================================
    #
    # maildrop. See the Postfix MAILDROP_README file for details.
    # Also specify in main.cf: maildrop_destination_recipient_limit=1
    #
    
    maildrop  unix  -       n       n       -       -       pipe
      flags=DRhu user=vmail argv=/usr/bin/maildrop -d vmail ${extension} ${recipient} ${user} ${nexthop} ${sender}
    #
    # ====================================================================
    #
    # Recent Cyrus versions can use the existing "lmtp" master.cf entry.
    #
    # Specify in cyrus.conf:
    #   lmtp    cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
    #
    # Specify in main.cf one or more of the following:
    #  mailbox_transport = lmtp:inet:localhost
    #  virtual_transport = lmtp:inet:localhost
    #
    # ====================================================================
    #
    # Cyrus 2.1.5 (Amos Gouaux)
    # Also specify in main.cf: cyrus_destination_recipient_limit=1
    #
    #cyrus     unix  -       n       n       -       -       pipe
    # See the Postfix UUCP_README file for configuration details.
    #
    uucp      unix  -       n       n       -       -       pipe
      flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
    #
    # Other external delivery methods.
    #
    ifmail    unix  -       n       n       -       -       pipe
      flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
    bsmtp     unix  -       n       n       -       -       pipe
      flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
    scalemail-backend unix  -       n       n       -       2       pipe
      flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
    mailman   unix  -       n       n       -       -       pipe
      flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
      ${nexthop} ${user}
    
    dovecot   unix  -       n       n       -       -       pipe
      flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop}
    
    
    amavis unix - - - - 2 smtp
            -o smtp_data_done_timeout=1200
            -o smtp_send_xforward_command=yes
                    -o smtp_bind_address=
    
    
    127.0.0.1:10025 inet n - n - - smtpd
            -o content_filter=
            -o local_recipient_maps=
            -o relay_recipient_maps=
            -o smtpd_restriction_classes=
            -o smtpd_client_restrictions=
            -o smtpd_helo_restrictions=
            -o smtpd_sender_restrictions=
            -o smtpd_recipient_restrictions=permit_mynetworks,reject
            -o smtpd_end_of_data_restrictions=
            -o mynetworks=127.0.0.0/8
            -o strict_rfc821_envelopes=yes
            -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
            -o smtp_send_xforward_command=yes
            -o disable_dns_lookups=yes
    
    
    127.0.0.1:10027 inet n - n - - smtpd
            -o content_filter=
            -o local_recipient_maps=
            -o relay_recipient_maps=
            -o smtpd_restriction_classes=
     -o smtpd_client_restrictions=
            -o smtpd_helo_restrictions=
            -o smtpd_sender_restrictions=
            -o smtpd_recipient_restrictions=permit_mynetworks,reject
            -o smtpd_end_of_data_restrictions=
            -o mynetworks=127.0.0.0/8
            -o strict_rfc821_envelopes=yes
            -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
            -o smtp_send_xforward_command=yes
                -o milter_default_action=accept
            -o milter_macro_daemon_name=ORIGINATING
            -o disable_dns_lookups=yes
    
    I am not sure, but I guess it is modified correctly, at least as tutorial , by lines :
    Code:
    submission inet n       -       y       -       -       smtpd
       -o syslog_name=postfix/submission
    smtps     inet  n       -       y       -       -       smtpd
       -o syslog_name=postfix/smtps
    
    cuz I see server check asks for smtp,submission
    https://www.howtoforge.com/tutorial...l-pureftpd-bind-postfix-doveot-and-ispconfig/
     
  13. till

    till Super Moderator Staff Member ISPConfig Developer

    Remove the whitespace in front of these lines:

    Code:
    submission inet n       -       y       -       -       smtpd
    and

    Code:
    smtps     inet  n       -       y       -       -       smtpd
    and restart postfix. Postfix is very picky when it comes to whitespaces in front of lines, while there must be whitespace in front of the -o lines, there may be no whitespace in front of the smtps and submission line.
     
  14. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    And iirc there should only be one whitespace in front of the -o lines.
     
  15. jungsf

    jungsf New Member

    I did,but still not working,here is the new test :
    Code:
    ##### SCRIPT FINISHED #####
    Results can be found in htf_report.txt
    To view results use your favourite text editor or type 'cat htf_report.txt | more' on the server console.
    
    If you want to see the non-anonymized output start the script with --debug as parameter (php -q htf-common-issues.php --debug).
    
    root@serverubuntu:/home/server# cat htf_report.txt | more
    
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Ubuntu 20.04.2 LTS
     
    [INFO] uptime:  14:23:09 up 10 min,  1 user,  load average: 0.03, 0.56, 0.53
     
    [INFO] memory:
                  total        used        free      shared  buff/cache   available
    Mem:          3.7Gi       1.4Gi       1.6Gi        11Mi       755Mi       2.1Gi
    Swap:            0B          0B          0B
     
    [INFO] systemd failed services status:
      UNIT                      LOAD   ACTIVE SUB    DESCRIPTION                             
    ● amavis.service            loaded failed failed LSB: Starts amavisd-new mailfilter       
    ● snap.lxd.activate.service loaded failed failed Service for snap application lxd.activate
    
    LOAD   = Reflects whether the unit definition was properly loaded.
    ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
    SUB    = The low-level unit activation state, values depend on unit type.
    
    2 loaded units listed.
    
    [INFO] ISPConfig is installed.
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.2.2
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 7.4.3
    
    ##### PORT CHECK #####
    
    
    ##### MAIL SERVER CHECK #####
    
    
    ##### RUNNING SERVER PROCESSES #####
    
    [INFO] I found the following web server(s):
        Apache 2 (PID 1111)
    [INFO] I found the following mail server(s):
        Postfix (PID 1343)
    [INFO] I found the following pop3 server(s):
        Dovecot (PID 512)
    [INFO] I found the following imap server(s):
        Dovecot (PID 512)
    [INFO] I found the following ftp server(s):
        PureFTP (PID 1401)
    
    ##### LISTENING PORTS #####
    (only        ()
    Local        (Address)
    [anywhere]:993        (512/dovecot)
    [anywhere]:995        (512/dovecot)
    [localhost]:10023        (1081/postgrey)
    [localhost]:10025        (1343/master)
    [localhost]:10027        (1343/master)
    [anywhere]:587        (1343/master)
    [localhost]:11211        (527/memcached)
    [anywhere]:110        (512/dovecot)
    [anywhere]:143        (512/dovecot)
    [anywhere]:465        (1343/master)
    [anywhere]:21        (1401/pure-ftpd)
    ***.***.***.***:53        (538/named)
    [localhost]:53        (538/named)
    ***.***.***.***:53        (469/systemd-resolve)
    [anywhere]:22        (644/sshd:)
    [anywhere]:25        (1343/master)
    [localhost]:953        (538/named)
    *:*:*:*::*:443        (1111/apache2)
    *:*:*:*::*:993        (512/dovecot)
    *:*:*:*::*:995        (512/dovecot)
    *:*:*:*::*:3306        (691/mysqld)
    *:*:*:*::*:587        (1343/master)
    [localhost]10        (512/dovecot)
    [localhost]43        (512/dovecot)
    *:*:*:*::*:8080        (1111/apache2)
    *:*:*:*::*:80        (1111/apache2)
    *:*:*:*::*:465        (1343/master)
    *:*:*:*::*:8081        (1111/apache2)
    *:*:*:*::*:21        (1401/pure-ftpd)
    *:*:*:*::*ba97:5aff:fe8f:53        (538/named)
    *:*:*:*::*:53        (538/named)
    *:*:*:*::*:22        (644/sshd:)
    *:*:*:*::*:25        (1343/master)
    *:*:*:*::*:953        (538/named)
    
    
    
    
    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination         
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination         
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination 
    I can put log file if needed again.
     
  16. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Amavis is not running, try starting it:
    Code:
    systemctl start amavis
    and if it fails, see why with
    Code:
    systemctl status amavis
     
  17. jungsf

    jungsf New Member

    it showed me first that my hostname is serverubuntu and should be a right domain name like mail.example.com in the file
    /etc/amavis/conf.d/05-node_id so I edited it like :
    Code:
    use strict;
    
    # $myhostname is used by amavisd-new for node identification, and it is
    # important to get it right (e.g. for ESMTP EHLO, loop detection, and so on).
    
    chomp($myhostname = `hostname --fqdn`);
    
    # To manually set $myhostname, edit the following line with the correct Fully
    # Qualified Domain Name (FQDN) and remove the # at the beginning of the line.
    #
    $myhostname = "mail.jungsf.tv";
    
    1;  # ensure a defined return
    
    now the amavis could start, and the status is :
    Code:
     amavis.service - LSB: Starts amavisd-new mailfilter
         Loaded: loaded (/etc/init.d/amavis; generated)
         Active: active (running) since Tue 2021-02-23 07:50:50 UTC; 4h 31min ago
           Docs: man:systemd-sysv-generator(8)
        Process: 1955 ExecStart=/etc/init.d/amavis start (code=exited, status=0/SUC>
          Tasks: 3 (limit: 4500)
         Memory: 194.1M
         CGroup: /system.slice/amavis.service
                 ├─1982 /usr/sbin/amavisd-new (master)
                 ├─1985 /usr/sbin/amavisd-new (ch1-avail)
                 └─1986 /usr/sbin/amavisd-new (virgin child)
    
    Feb 23 07:50:50 serverubuntu amavis[1982]: No decoder for       .jar
    Feb 23 07:50:50 serverubuntu amavis[1982]: No decoder for       .lha
    Feb 23 07:50:50 serverubuntu amavis[1982]: No decoder for       .lrz
    Feb 23 07:50:50 serverubuntu amavis[1982]: No decoder for       .rar
    Feb 23 07:50:50 serverubuntu amavis[1982]: No decoder for       .rpm
    Feb 23 07:50:50 serverubuntu amavis[1982]: No decoder for       .swf
    Feb 23 07:50:50 serverubuntu amavis[1982]: No decoder for       .zoo
    Feb 23 07:50:50 serverubuntu amavis[1982]: Using primary internal av scanner co>
    Feb 23 07:50:50 serverubuntu amavis[1982]: Found secondary av scanner ClamAV-cl>
    Feb 23 08:45:21 serverubuntu amavis[1985]: (01985-01) Passed CLEAN {RelayedInbo>
    lines 1-22/22 (END)...skipping...
    ● amavis.service - LSB: Starts amavisd-new mailfilter
         Loaded: loaded (/etc/init.d/amavis; generated)
         Active: active (running) since Tue 2021-02-23 07:50:50 UTC; 4h 31min ago
           Docs: man:systemd-sysv-generator(8)
        Process: 1955 ExecStart=/etc/init.d/amavis start (code=exited, status=0/SUCCESS)
          Tasks: 3 (limit: 4500)
         Memory: 194.1M
         CGroup: /system.slice/amavis.service
                 ├─1982 /usr/sbin/amavisd-new (master)
                 ├─1985 /usr/sbin/amavisd-new (ch1-avail)
                 └─1986 /usr/sbin/amavisd-new (virgin child)
    
    Feb 23 07:50:50 serverubuntu amavis[1982]: No decoder for       .jar
    Feb 23 07:50:50 serverubuntu amavis[1982]: No decoder for       .lha
    Feb 23 07:50:50 serverubuntu amavis[1982]: No decoder for       .lrz
    Feb 23 07:50:50 serverubuntu amavis[1982]: No decoder for       .rar
    Feb 23 07:50:50 serverubuntu amavis[1982]: No decoder for       .rpm
    Feb 23 07:50:50 serverubuntu amavis[1982]: No decoder for       .swf
    Feb 23 07:50:50 serverubuntu amavis[1982]: No decoder for       .zoo
    Feb 23 07:50:50 serverubuntu amavis[1982]: Using primary internal av scanner code for ClamAV-clamd
    Feb 23 07:50:50 serverubuntu amavis[1982]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan
    Feb 23 08:45:21 serverubuntu amavis[1985]: (01985-01) Passed CLEAN {RelayedInbound}, [127.0.0.1] <[email protected]> -> <[email protected]>, Message-ID: <2>
    ~
    
    but still the mail didn't work, and the new test is :
    Code:
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Ubuntu 20.04.2 LTS
     
    [INFO] uptime:  14:23:09 up 10 min,  1 user,  load average: 0.03, 0.56, 0.53
     
    [INFO] memory:
                  total        used        free      shared  buff/cache   available
    Mem:          3.7Gi       1.4Gi       1.6Gi        11Mi       755Mi       2.1Gi
    Swap:            0B          0B          0B
     
    [INFO] systemd failed services status:
      UNIT                      LOAD   ACTIVE SUB    DESCRIPTION                            
    ● amavis.service            loaded failed failed LSB: Starts amavisd-new mailfilter      
    ● snap.lxd.activate.service loaded failed failed Service for snap application lxd.activate
    
    LOAD   = Reflects whether the unit definition was properly loaded.
    ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
    SUB    = The low-level unit activation state, values depend on unit type.
    
    2 loaded units listed.
    
    [INFO] ISPConfig is installed.
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.2.2
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 7.4.3
    
    ##### PORT CHECK #####
    
    
    ##### MAIL SERVER CHECK #####
    
    
    ##### RUNNING SERVER PROCESSES #####
    
    [INFO] I found the following web server(s):
        Apache 2 (PID 1111)
    [INFO] I found the following mail server(s):
        Postfix (PID 1343)
    [INFO] I found the following pop3 server(s):
        Dovecot (PID 512)
    [INFO] I found the following imap server(s):
        Dovecot (PID 512)
    [INFO] I found the following ftp server(s):
        PureFTP (PID 1401)
    
    ##### LISTENING PORTS #####
    (only        ()
    Local        (Address)
    [anywhere]:993        (512/dovecot)
    [anywhere]:995        (512/dovecot)
    [localhost]:10023        (1081/postgrey)
    [localhost]:10025        (1343/master)
    [localhost]:10027        (1343/master)
    [anywhere]:587        (1343/master)
    [localhost]:11211        (527/memcached)
    [anywhere]:110        (512/dovecot)
    [anywhere]:143        (512/dovecot)
    [anywhere]:465        (1343/master)
    [anywhere]:21        (1401/pure-ftpd)
    ***.***.***.***:53        (538/named)
    [localhost]:53        (538/named)
    ***.***.***.***:53        (469/systemd-resolve)
    [anywhere]:22        (644/sshd:)
    [anywhere]:25        (1343/master)
    [localhost]:953        (538/named)
    *:*:*:*::*:443        (1111/apache2)
    *:*:*:*::*:993        (512/dovecot)
    *:*:*:*::*:995        (512/dovecot)
    *:*:*:*::*:3306        (691/mysqld)
    *:*:*:*::*:587        (1343/master)
    [localhost]10        (512/dovecot)
    [localhost]43        (512/dovecot)
    *:*:*:*::*:8080        (1111/apache2)
    *:*:*:*::*:80        (1111/apache2)
    *:*:*:*::*:465        (1343/master)
    *:*:*:*::*:8081        (1111/apache2)
    *:*:*:*::*:21        (1401/pure-ftpd)
    *:*:*:*::*ba97:5aff:fe8f:53        (538/named)
    *:*:*:*::*:53        (538/named)
    *:*:*:*::*:22        (644/sshd:)
    *:*:*:*::*:25        (1343/master)
    *:*:*:*::*:953        (538/named)
    
    
    
    
    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination        
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination        
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination 
    i would like to mention that i get to the webinterface through
    http://jungsf.tv/webmail/ and not mail.jungsf.tv, the SMTP Error is 220.
     
  18. till

    till Super Moderator Staff Member ISPConfig Developer

    The wrong hostname is the cause, but your solution is not correct.

    1) Undo the changes you made in the amavis file.
    2) Now set the hostname correctly by editing the files /etc/hostname and /etc/hosts, then restart the server and check that the command:

    hostname -f

    now returns the correct fqdn hostname like mail.example.com
     
    jungsf likes this.
  19. jungsf

    jungsf New Member

    I did that,and it gave a full host name, then I changed the hostname to the full host name given by hostname -f, bascially in /etc/postfix/main.cf and in /etc/amavis/conf.d/05-node_id , and now it works in thunderbird where I put my jungsf.tv email..thank you so much guys.
     
    Last edited: Feb 25, 2021

Share This Page