wget http://slackbuilds.org/slackbuilds/14.0/network/dovecot.tar.gz tar xvfz dovecot cd dovecot wget http://www.dovecot.org/releases/2.2/dovecot-2.2.12.tar.gz ./dovecot.SlackBuild groupadd -g 202 dovecot useradd -d /dev/null -s /bin/false -u 202 -g 202 dovecot groupadd -g 248 dovenull useradd -d /dev/null -s /bin/false -u 248 -g 248 dovenull installpkg /tmp/dovecot-2.2.12-x86_64-2_SBo.tgz cp /usr/share/doc/dovecot-2.2.25/example-config/* /etc/dovecot/Disable inetd imap and pop3 port and restart rc.inetd
protocols = imap pop3 listen = *, :: base_dir = /var/run/dovecot/ instance_name = dovecot login_greeting = Ready. shutdown_clients = yes/etc/dovecot/conf.d/10-auth.conf
disable_plaintext_auth = yes auth_mechanisms = plain login/etc/dovecot/conf.d/auth-system.conf.ext
passdb { driver = shadow } userdb { driver = passwd }/etc/dovecot/conf.d/10-mail.conf
mail_location = mbox:~/:INBOX=/var/spool/mail/%u auth_socket_path = /var/run/dovecot/auth-userdb namespace inbox { type = private separator = / } mail_access_groups = mail/etc/dovecot/conf.d/10-master.conf
default_login_user = dovenull default_internal_user = dovecot service imap-login { inet_listener imap { port = 143 } inet_listener imaps { port = 993 ssl = yes } }/etc/dovecot/conf.d/10-ssl.conf
ssl = yes ssl_cert = <imap.ineta.si.crt ssl_key = <imap.ineta.si.key/etc/dovecot/conf.d/10-logging.conf
auth_debug = no verbose_ssl = no # Disable IMAP info logging info_log_path = /dev/null/etc/dovecot/conf.d/15-mailboxes.conf
namespace inbox { mailbox Drafts { auto = subscribe special_use = \Drafts } mailbox Junk { auto = subscribe special_use = \Junk } mailbox Trash { auto = subscribe special_use = \Trash } mailbox Sent { auto = subscribe special_use = \Sent } }
LogFileMaxSize 5M LogTime yes LogSyslog yes LocalSocketGroup amavis AllowSupplementaryGroups yes
touch /var/log/amavisd.log chown amavis.amavis /var/log/amavisd.log mkdir /var/amavis mkdir /var/amavis/tmp mkdir /var/amavis/db mkdir /var/amavis/var mkdir /var/virusmails chown amavis.amavis /var/amavis -R chown amavis.amavis /var/virusmails -R chmod 0750 amavis -R/etc/amavasid.conf
$mydomain = 'bravogroup.org' # enable $quarantine_subdir_levels = 1; $db_home = "$MYHOME/db"; $helpers_home = "$MYHOME/var"; $lock_file = "$MYHOME/var/amavisd.lock"; $pid_file = "$MYHOME/var/amavisd.pid"; # add list of local domains read_hash(\%local_domains, '/etc/mail/local-host-names'); # disable #$mailfrom_notify_admin = "virusalert\@$mydomain"; #$mailfrom_notify_recip = "virusalert\@$mydomain"; #$mailfrom_notify_spamadmin = "spam.police\@$mydomain"; $myhostname = 'bravo.bravogroup.org'; $forward_method = undef; $final_virus_destiny = D_DISCARD; $final_banned_destiny = D_DISCARD; $final_spam_destiny = D_DISCARD; #!!! D_DISCARD / D_REJECT $final_bad_header_destiny = D_PASS; $virus_quarantine_to = undef; # fix socket extenstion name # ### http://www.clamav.net/ ['ClamAV-clamd', \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd.socket"], qr/\bOK$/m, qr/\bFOUND$/m, qr/^.*?: (?!Infected Archive)(.*) FOUND$/m ], # disable ### http://www.clamav.net/ - backs up clamd or Mail::ClamAV # ['ClamAV-clamscan', 'clamscan', # "--stdout --no-summary -r --tempdir=$TEMPBASE {}", # [0], qr/:.*\sFOUND$/m, qr/^.*?: (?!Infected Archive)(.*) FOUND$/m ],
tar xvfz amavis-milter.tar.gz cd amavis-milter ./configure make make install
tar xvfz roundcubemail.tar.gz mv roundcubemail /var/www/htdocs/ssl/roundcube chown apache.apache /var/www/htdocs/ssl/roundcube -R cd /var/www/htdocs/ssl/roundcube/config mv config.inc.php.sample config.inc.phpEdit configuration file config.inc.php
$config['db_dsnw'] = 'mysql://roundcube:pass@localhost/roundcubemail'; $rcmail_config['default_host'] = 'bravogroup.org'; $rcmail_config['smtp_server'] = 'bravogroup.org'; $rcmail_config['support_url'] = 'mailto:support@ineta.si'; $rcmail_config['product_name'] = 'iNeta Webmail'; $rcmail_config['des_key'] = '61c?f1605d13f08%f29c#a92'; $config['plugins'] = array( 'archive', 'zipdownload', 'new_user_dialog', 'markasjunk', 'password', 'userinfo', 'vacation', 'vcard_attachments', 'chbox', ); // These cols are shown in the message list. Available cols are: // subject, from, to, fromto, cc, replyto, date, size, status, flag, attachment $config['list_cols'] = array('chbox','subject', 'status', 'fromto', 'date', 'size', 'flag', 'attachment'); $rcmail_config['date_format'] = 'd.m.Y'; $rcmail_config['date_long'] = 'd.m.Y H:i'; $rcmail_config['default_charset'] = 'UTF-8'; $rcmail_config['prefer_html'] = true; $rcmail_config['show_images'] = 1; $rcmail_config['htmleditor'] = 2; // default setting if preview pane is enabled $rcmail_config['preview_pane'] = true; // Clear Trash on logout $rcmail_config['logout_purge'] = true; // Compact INBOX on logout $rcmail_config['logout_expunge'] = true; // 'Delete always' // This setting reflects if mail should be always deleted // when moving to Trash fails. This is necessary in some setups // when user is over quota and Trash is included in the quota. $rcmail_config['delete_always'] = true;Configure and edit password plugin
cp plugins/password/config.inc.php.dist plugins/password/config.inc.php
// A driver to use for password change. Default: "sql". // See README file for list of supported driver names. $rcmail_config['password_driver'] = 'poppassd'; // Require the new password to be a certain length. // set to blank to allow passwords of any length $rcmail_config['password_minimum_length'] = 8; // Enables logging of password changes into logs/password $rcmail_config['password_log'] = true;Download chbox plugin (https://github.com/6ec123321/chbox.git)
tar xvfz sendmailanalyzer.tar.gz cd sendmailanalyzer perl Makefile.PL make && make installAdd to apache virtual host file
Alias /sendmail /usr/local/sendmailanalyzer/www <Directory /usr/local/sendmailanalyzer/www> Options ExecCGI AddHandler cgi-script .cgi DirectoryIndex sa_report.cgi Order deny,allow Deny from all Allow from 84.255.203.228 84.255.243.53 </Directory>
© 2003-24 iNeta d.o.o. | Koroška cesta 31, SI-4000 Kranj | info@ineta.si | Pravno obvestilo
Powered by BravoCMS