Want to subscribe to topics you're interested in?
Become a Member

Install Mail Server on Centminmod

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

  1. brijendrasial

    brijendrasial Active Member

    139
    110
    43
    Mar 21, 2018
    Ratings:
    +169
    Local Time:
    5:31 AM
    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

    106
    24
    18
    Sep 16, 2017
    Ratings:
    +36
    Local Time:
    5:31 AM
    1.17.8
    10.3.22
    I did
    yum -y remove epel-release and

    yum -y install epel-release

    this made clamav to get install
     
  3. Dnyan

    Dnyan Member

    106
    24
    18
    Sep 16, 2017
    Ratings:
    +36
    Local Time:
    5:31 AM
    1.17.8
    10.3.22
    After installing addons at end, i see an error
    Code:
    Redirecting to /bin/systemctl restart clamd@amavisd.service
    error reading information on service clamd@amavisd: No such file or directory
     
  4. brijendrasial

    brijendrasial Active Member

    139
    110
    43
    Mar 21, 2018
    Ratings:
    +169
    Local Time:
    5:31 AM
    1.13.9
    10.0.22-MariaDB
    did you install clamav-scanner
     
  5. EckyBrazzz

    EckyBrazzz Active Member

    901
    189
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +353
    Local Time:
    9:01 PM
    Latest
    Latest
    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 clamd@amavisd.service
    error reading information on service clamd@amavisd: 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 Active Member

    139
    110
    43
    Mar 21, 2018
    Ratings:
    +169
    Local Time:
    5:31 AM
    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

    901
    189
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +353
    Local Time:
    9:01 PM
    Latest
    Latest
    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

    901
    189
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +353
    Local Time:
    9:01 PM
    Latest
    Latest
    @brijendrasial is there a quick fix? Not receive system mails after I tried to install it. (yesterday)
     
  9. EckyBrazzz

    EckyBrazzz Active Member

    901
    189
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +353
    Local Time:
    9:01 PM
    Latest
    Latest
    @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 Active Member

    139
    110
    43
    Mar 21, 2018
    Ratings:
    +169
    Local Time:
    5:31 AM
    1.13.9
    10.0.22-MariaDB
    script is now only compatible with centos 7 and few bug fixes have been done.
     
  11. EckyBrazzz

    EckyBrazzz Active Member

    901
    189
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +353
    Local Time:
    9:01 PM
    Latest
    Latest
    Great work! Thanks again for the fix last night! Just download it from GitHub and install it again?
     
  12. EckyBrazzz

    EckyBrazzz Active Member

    901
    189
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +353
    Local Time:
    9:01 PM
    Latest
    Latest
    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?
     
  13. brijendrasial

    brijendrasial Active Member

    139
    110
    43
    Mar 21, 2018
    Ratings:
    +169
    Local Time:
    5:31 AM
    1.13.9
    10.0.22-MariaDB
    Very nice.. Thumbsup
     
  14. EckyBrazzz

    EckyBrazzz Active Member

    901
    189
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +353
    Local Time:
    9:01 PM
    Latest
    Latest
    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
  15. pamamolf

    pamamolf Premium Member Premium Member

    3,944
    399
    83
    May 31, 2014
    Ratings:
    +775
    Local Time:
    3:01 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    @brijendrasial

    I just test it on a Centminmod Centos 7 vps installation and using only the first option i was not able to login to roundcube using:
    Code:
    http://serveriphere/roundcube
    I didn't notice any errors at the installation....

    When i add my created email and password and click login i got the Loading... for around a minute and then i got:
    Code:
    Login failed.
    Next i did a check at MariaDB and i can see the roundcube database created but the users table is empty :(

    I used something like: info@mydomain.com

    So it seems that the user creation routine didn't work for a reason?

    So i decide to check the option 2 from the menu and at the end i got this:
    Code:
    Job for clamd@amavisd.service failed because the control process exited with error code. See "systemctl status clamd@amavisd.service" and "journalctl -xe" for details.
    journalctl -xe

    Code:
    Binding to IPv6 address not available since kernel does not support IPv6.
    
    [/etc/systemd/system/systemd-udevd.service.d/override.conf:2] Unknown lvalue 'IPAddressAllow' in section 'Service'
    
    Configuration file /etc/systemd/system/disable-thp.service is marked executable. Please remove executable permission bits. Proceeding anyway.
    
    warning: connect to mysql server 127.0.0.1: Access denied for user 'mail_admin'@'127.0.0.1' (using password: YES)
    
    warning: proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf lookup error for "root@server.mydomain.com"
    
    warning: 365009AD59: virtual_alias_maps map lookup problem for root@server.mydomain.com -- deferring delivery
    Maybe the issue is that i have ipv6 disabled?

    At the end i tried to create a new email from the menu option 4 and i got a message Successfully Added but again i was not able to login :(
     
    Last edited: Dec 22, 2019
  16. EckyBrazzz

    EckyBrazzz Active Member

    901
    189
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +353
    Local Time:
    9:01 PM
    Latest
    Latest
  17. brijendrasial

    brijendrasial Active Member

    139
    110
    43
    Mar 21, 2018
    Ratings:
    +169
    Local Time:
    5:31 AM
    1.13.9
    10.0.22-MariaDB
    I will test and get back.. or if its your test server provide me details via pm.
     
  18. pamamolf

    pamamolf Premium Member Premium Member

    3,944
    399
    83
    May 31, 2014
    Ratings:
    +775
    Local Time:
    3:01 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    @brijendrasial
    I already formatted as it was just a test server to test something else :(

    Don't know if @EckyBrazzz was testing it on a test server and can provide you access on that...

    If not do you have a test server to check it?
     
  19. EckyBrazzz

    EckyBrazzz Active Member

    901
    189
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +353
    Local Time:
    9:01 PM
    Latest
    Latest
    EckyBrazzz says "test in Virtual machine":);)
     
  20. pamamolf

    pamamolf Premium Member Premium Member

    3,944
    399
    83
    May 31, 2014
    Ratings:
    +775
    Local Time:
    3:01 AM
    Nginx-1.17.x
    MariaDB 10.3.x