Get the most out of your Centmin Mod LEMP stack
Become a Member

Install Mail Server on Centminmod

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

  1. brijendrasial

    brijendrasial Member

    60
    57
    18
    Mar 21, 2018
    Ratings:
    +78
    Local Time:
    7:48 PM
    1.13.9
    10.0.22-MariaDB
    This is because clamav is not installed and amavisd is unable to check with scanner. All component must be installed to make email work correctly.
     
  2. Dnyan

    Dnyan Member

    65
    9
    8
    Sep 16, 2017
    Ratings:
    +11
    Local Time:
    7:48 PM
    1.17.2
    10.1.41
    I did
    yum -y remove epel-release and

    yum -y install epel-release

    this made clamav to get install
     
  3. Dnyan

    Dnyan Member

    65
    9
    8
    Sep 16, 2017
    Ratings:
    +11
    Local Time:
    7:48 PM
    1.17.2
    10.1.41
    After installing addons at end, i see an error
    Code:
    Redirecting to /bin/systemctl restart [email protected]
    error reading information on service [email protected]: No such file or directory
     
  4. brijendrasial

    brijendrasial Member

    60
    57
    18
    Mar 21, 2018
    Ratings:
    +78
    Local Time:
    7:48 PM
    1.13.9
    10.0.22-MariaDB
    did you install clamav-scanner
     
  5. EckyBrazzz

    EckyBrazzz Active Member

    699
    139
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +258
    Local Time:
    11:18 AM
    1.17.x Cluster
    10.3.x Cluster & Redis
    Got same error when using option 2. Used the Centmin addon ./maldet.sh
    Code (Text):
    ClamAV update process started at Wed Oct  9 01:55:24 2019
    main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
    daily.cld is up to date (version: 25596, sigs: 1806683, f-level: 63, builder: raynman)
    bytecode.cvd is up to date (version: 331, sigs: 94, f-level: 63, builder: anvilleg)
    Redirecting to /bin/systemctl start spamassassin.service
    Note: Forwarding request to 'systemctl enable spamassassin.service'.
    Created symlink from /etc/systemd/system/multi-user.target.wants/spamassassin.service to /usr/lib/systemd/system/spamassassin.service.
    Redirecting to /bin/systemctl restart amavisd.service
    Note: Forwarding request to 'systemctl enable amavisd.service'.
    Created symlink from /etc/systemd/system/multi-user.target.wants/amavisd.service to /usr/lib/systemd/system/amavisd.service.
    Redirecting to /bin/systemctl restart [email protected]
    error reading information on service [email protected]: No such file or directory
    Redirecting to /bin/systemctl restart postfix.service
    


    But keep up this excellent work! Like it

    EDIT:

    Code (Text):
    yum install --enablerepo=epel clamav
    Loaded plugins: fastestmirror, priorities, versionlock
    Loading mirror speeds from cached hostfile
    <<SNIPPED>>
    317 packages excluded due to repository priority protections
    Package clamav-0.101.4-1.el7.x86_64 already installed and latest version
    Nothing to do
    
     
    Last edited: Oct 9, 2019
  6. brijendrasial

    brijendrasial Member

    60
    57
    18
    Mar 21, 2018
    Ratings:
    +78
    Local Time:
    7:48 PM
    1.13.9
    10.0.22-MariaDB
    can you please check if clamav-scanner is installed

    yum install clamav-scanner -y
     
  7. EckyBrazzz

    EckyBrazzz Active Member

    699
    139
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +258
    Local Time:
    11:18 AM
    1.17.x Cluster
    10.3.x Cluster & Redis
    Sure,

    Code (Text):
    Package clamd-0.101.4-1.el7.x86_64 already installed and latest version
    Nothing to do
    


    Better put some more info in your READ.md
     
  8. EckyBrazzz

    EckyBrazzz Active Member

    699
    139
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +258
    Local Time:
    11:18 AM
    1.17.x Cluster
    10.3.x Cluster & Redis
    @brijendrasial is there a quick fix? Not receive system mails after I tried to install it. (yesterday)
     
  9. EckyBrazzz

    EckyBrazzz Active Member

    699
    139
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +258
    Local Time:
    11:18 AM
    1.17.x Cluster
    10.3.x Cluster & Redis
    @brijendrasial sorry that I made a phone call to you. I didn't know it was nighttime over there, just saw that it was 10AM in Australia.

    Thanks for the info provided and keep in touch.
     
  10. brijendrasial

    brijendrasial Member

    60
    57
    18
    Mar 21, 2018
    Ratings:
    +78
    Local Time:
    7:48 PM
    1.13.9
    10.0.22-MariaDB
    script is now only compatible with centos 7 and few bug fixes have been done.
     
    • Like Like x 3
  11. EckyBrazzz

    EckyBrazzz Active Member

    699
    139
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +258
    Local Time:
    11:18 AM
    1.17.x Cluster
    10.3.x Cluster & Redis
    Great work! Thanks again for the fix last night! Just download it from GitHub and install it again?
     
  12. EckyBrazzz

    EckyBrazzz Active Member

    699
    139
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +258
    Local Time:
    11:18 AM
    1.17.x Cluster
    10.3.x Cluster & Redis
    Hi,

    Some news.

    Got is working under all domains with HTTPS.
    Trick is to create a symlink from the /usr/local/nginx/html/roundcube to one of the domains
    I renamed Roundcube to webmail, for a user it's a bit easier to remember (I do it for a non-governmental organization, as volunteer savings peoples lives with the risk to take a bullet if I enter the wrong favalla here)

    Then you have to edit each domain.vhost.ssl and do a rewrite to the domain where you have made the symlink
    Example:

    Code (Text):
    server {
      listen 443 ssl http2;
    
      server_name domain.org.br www.domain.org.br;
    rewrite ^(/webmail.*) https://domain.com/$1 permanent;
    


    You can change them all to have Roundcube working that way. They redirect to the domain were you created the symlink, with HTTPS

    Add password change for users is not included now, manual add it.

    edit file config.inc.php of Roundcube and add at the end of the file
    Code (Text):
    $config['plugins'] = array('xskin', 'password');


    Guess there are more hacks/add-ons to come.

    And you can even download the application for Android to have it on your cellphone. iOS don't know.
    @eva2000 new option 24 in Centmin and 25 to exit?
     
    • Like Like x 2
  13. brijendrasial

    brijendrasial Member

    60
    57
    18
    Mar 21, 2018
    Ratings:
    +78
    Local Time:
    7:48 PM
    1.13.9
    10.0.22-MariaDB
    Very nice.. Thumbsup
     
  14. EckyBrazzz

    EckyBrazzz Active Member

    699
    139
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +258
    Local Time:
    11:18 AM
    1.17.x Cluster
    10.3.x Cluster & Redis
    People / users of Centmin should do a like to all post you made here @brijendrasial

    You created this very nice add-on! The same for the nice Backup script. So all credits for you!

    And you seem to be special, we never had a user that had almost same number of posts and likes! 60 post and 57 likes at the moment. Even @eva2000 with many posts don't get near to that. :)
    Project_CMM_7326.png Project_CMM_7327.png
     
    Last edited: Oct 19, 2019 at 5:14 AM