Learn about Centmin Mod LEMP Stack today
Become a Member

Install Mail Server on Centminmod

Discussion in 'Add Ons' started by brijendrasial, Aug 16, 2019.

  1. eva2000

    eva2000 Administrator Staff Member

    44,186
    10,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,572
    Local Time:
    11:42 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    One of downsides of hosting own email is with anti-virus/malware scanning of emails etc, you can potentially use a lot more memory even up to 4-8GB more memory. That's why I don't host my own email anyway and use 3rd party services like Gmail/Gsuite and Zoho :)
     
  2. gamal

    gamal Member

    89
    8
    8
    Jan 31, 2018
    Ratings:
    +10
    Local Time:
    11:42 PM
    1.13.8
    this is completly true, my website went down like 6 times in the past 24 hours, i wish there was other solutions cause i need to send 10000's of mails for my website newsletter, which is really costly through zoho or Gsuite
     
  3. eva2000

    eva2000 Administrator Staff Member

    44,186
    10,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,572
    Local Time:
    11:42 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    You're using the wrong tool. Transactional mass emails should be sent via transactional email providers like Amazon SES Amazon AWS - Amazon AWS SES SMTP Transactional Email Info
     
  4. gamal

    gamal Member

    89
    8
    8
    Jan 31, 2018
    Ratings:
    +10
    Local Time:
    11:42 PM
    1.13.8
  5. adzkii

    adzkii New Member

    25
    0
    1
    Apr 15, 2020
    Ratings:
    +2
    Local Time:
    2:42 PM
    Code:
    SMTP Error (535): Authentication failed.
    Code:
    Apr 20 00:00:34 vultr postfix/submission/smtpd[1701]: warning: cannot get RSA certificate from file /root/.acme.sh/mail.domain1.com/fullchain.cer: disabling TLS support
    Apr 20 00:00:34 vultr postfix/submission/smtpd[1701]: warning: TLS library problem: 1701:error:02001002:system library:fopen:No such file or directory:bss_file.c:402:fopen('/root/.acme.sh/mail.domain1.com/fullchain.cer','r'):
    Apr 20 00:00:34 vultr postfix/submission/smtpd[1701]: warning: TLS library problem: 1701:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:404:
    Apr 20 00:00:34 vultr postfix/submission/smtpd[1701]: warning: TLS library problem: 1701:error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib:ssl_rsa.c:701:
    Apr 20 00:01:15 vultr postfix/smtpd[2047]: warning: cannot get RSA certificate from file /root/.acme.sh/mail.domain1.com/fullchain.cer: disabling TLS support
    
    getting the same error.

    and when uninstaling everything using option 7, i get that error
    Code:
    Job for postfix.service failed because the control process exited with error code. See "systemctl status postfix.service" and "journalctl -xe" for details
     
  6. brijendrasial

    brijendrasial Active Member

    113
    91
    28
    Mar 21, 2018
    Ratings:
    +139
    Local Time:
    7:12 PM
    1.13.9
    10.0.22-MariaDB
    Your ssl ccertificate didnt get generated. Check in the folder and also see if your hostnname is pointed to the server.
     
  7. brijendrasial

    brijendrasial Active Member

    113
    91
    28
    Mar 21, 2018
    Ratings:
    +139
    Local Time:
    7:12 PM
    1.13.9
    10.0.22-MariaDB
    and when uninstaling everything using option 7, i get that error
    Code:
    Job for postfix.service failed because the control process exited with error code. See "systemctl status postfix.service" and "journalctl -xe" for details
    [/QUOTE]

    post

    Code:
    systemctl status postfix.service
    also post

    Code:
    postconf -f
     
    Last edited: Apr 20, 2020
  8. marcostutu

    marcostutu New Member

    3
    0
    1
    May 19, 2020
    Ratings:
    +0
    Local Time:
    9:42 AM
    1.17
    10.4
    In my VPS I am having the following problem, Roundcube works well, however my IPS application is unable to configure SMTP.

    Code:
    A test email could not be sent. Check the settings entered are correct or[ contact your hosting or SMTP provider for more information.
    
    535 5.7.8 Error: authentication failed: Invalid authentication mechanism

    Code:
    [17:38][root@vmi390198.contaboserver.net tools]# systemctl status postfix
    ● postfix.service - Postfix Mail Transport Agent
       Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)
       Active: active (running) since Thu 2020-05-21 17:09:16 UTC; 35min ago
      Process: 30066 ExecStop=/usr/sbin/postfix stop (code=exited, status=1/FAILURE)
      Process: 30377 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS)
      Process: 30372 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)
      Process: 30367 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)
     Main PID: 30448 (master)
       CGroup: /system.slice/postfix.service
               ├─30448 /usr/libexec/postfix/master -w
               ├─30449 pickup -l -t unix -u
               ├─30450 qmgr -l -t unix -u
               ├─30558 tlsmgr -l -t unix -u
               ├─32957 smtpd -n submission -t inet -u -c -o stress= -o syslog_name=postfix/submission -o smtpd_tls_security_level=encrypt -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_aut...
               ├─32959 anvil -l -t unix -u
               ├─33256 trivial-rewrite -n rewrite -t unix -u
               └─33257 proxymap -t unix -u
    
    May 21 17:42:31 vmi390198.contaboserver.net postfix/submission/smtpd[32957]: connect from unknown[95.111.245.79]
    May 21 17:42:31 vmi390198.contaboserver.net postfix/submission/smtpd[32957]: warning: unknown[95.111.245.79]: SASL LOGIN authentication failed: Invalid authentication mechanism
    May 21 17:42:31 vmi390198.contaboserver.net postfix/submission/smtpd[32957]: disconnect from unknown[95.111.245.79]
    May 21 17:42:51 vmi390198.contaboserver.net postfix/submission/smtpd[32957]: connect from unknown[183.89.59.66]
    May 21 17:42:55 vmi390198.contaboserver.net postfix/submission/smtpd[32957]: warning: unknown[183.89.59.66]: SASL PLAIN authentication failed:
    May 21 17:42:55 vmi390198.contaboserver.net postfix/submission/smtpd[32957]: disconnect from unknown[183.89.59.66]
    May 21 17:44:11 vmi390198.contaboserver.net postfix/submission/smtpd[32957]: connect from unknown[95.111.245.79]
    May 21 17:44:11 vmi390198.contaboserver.net postfix/submission/smtpd[32957]: warning: unknown[95.111.245.79]: SASL LOGIN authentication failed: Invalid authentication mechanism
    May 21 17:44:11 vmi390198.contaboserver.net postfix/submission/smtpd[32957]: NOQUEUE: reject: RCPT from unknown[95.111.245.79]: 450 4.4.4 <binha.maria36@hotmail.com>: Recipient address rejected: Un...server.net>
    May 21 17:44:11 vmi390198.contaboserver.net postfix/submission/smtpd[32957]: disconnect from unknown[95.111.245.79]
     
  9. brijendrasial

    brijendrasial Active Member

    113
    91
    28
    Mar 21, 2018
    Ratings:
    +139
    Local Time:
    7:12 PM
    1.13.9
    10.0.22-MariaDB
    Well can you try this
    Code:
    vi /etc/dovecot/conf.d/10-auth.conf
    Find
    Code:
    auth_mechanisms = plain
    Replace With
    Code:
    auth_mechanisms = plain login
    Restart postfix and dovecot
    Code:
    systemctl restart postfix
    systemctl restart dovecot
    Let me know if this helps.
     
  10. marcostutu

    marcostutu New Member

    3
    0
    1
    May 19, 2020
    Ratings:
    +0
    Local Time:
    9:42 AM
    1.17
    10.4
    He continued with the problem.

    Code:
    A test email could not be sent. Check the settings entered are correct or contact your hosting or SMTP provider for more information.
    
    535 5.7.8 Error: authentication failed: Invalid authentication mechanism
     
  11. brijendrasial

    brijendrasial Active Member

    113
    91
    28
    Mar 21, 2018
    Ratings:
    +139
    Local Time:
    7:12 PM
    1.13.9
    10.0.22-MariaDB
    Please use port 465 for outgoing and incomming 993 and choose as ssl/tls and check if its working or not.
     
  12. brijendrasial

    brijendrasial Active Member

    113
    91
    28
    Mar 21, 2018
    Ratings:
    +139
    Local Time:
    7:12 PM
    1.13.9
    10.0.22-MariaDB
    Update: Added trusted ssl certificate in dovecot.
     
  13. Dnyan

    Dnyan Member

    73
    17
    8
    Sep 16, 2017
    Ratings:
    +22
    Local Time:
    7:12 PM
    1.17.8
    10.3.22
    Posting a Tutorial on how to install your addon will help many in understanding, what is what and how to use it.

    You can atleast post command lines like how they are posted in this document
    Addon phpmyadmin.sh - CentminMod.com LEMP Nginx web stack for CentOS

    Considering every user here is having same caliper like you may not be a true thing.
    There may be peoples having no knowledge of programming and wish to do it, some might be having moderate and some might be far beyond you.
    Its my request to you, kindly do consider posting steps for installation of every feature and some briefer detailing about it.

    It will not only help peoples from all level but also it will make you stand respectfully in their eyes for such a great help.

    Your addons are good and i am using them, off course you only told me in past on how to install.
    Now doing a update to addon will become a tedious task due to no understanding of it.

    Thank You
     
  14. brijendrasial

    brijendrasial Active Member

    113
    91
    28
    Mar 21, 2018
    Ratings:
    +139
    Local Time:
    7:12 PM
    1.13.9
    10.0.22-MariaDB
    Whenever you download new project file from github and run it will ask you what new have been added and your mail server is lacking. You will be prompted for that and if you want you can install it.

    I will try to make but I dont think will spend that much time in that