Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Servidor
de correu
A01:
Servidor
deelectrnic
correu- Jugalo
electrnic
http://jugalo.info/wiki/index.php/ASIX/M08/UF3/A01
De Jugalo
(/wiki/index.php/Fitxer:Font.png)
1 de 7
/etc/postfix/main.cf
08/01/15 15:40
A01:
Servidor
de correu
- Jugalo
# line
75: uncomment
and electrnic
specify hostname
http://jugalo.info/wiki/index.php/ASIX/M08/UF3/A01
myhostname = mail03.server.world
# line 83: uncomment and specify domain name
mydomain = server.world
# line 99: uncomment
myorigin = $mydomain
# line 116: change
inet_interfaces = all
# line 164: add
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
# line 264: uncomment and specify your LAN
mynetworks = 127.0.0.0/8,10.0.0.0/24
# line 419: uncomment (use Maildir)
home_mailbox = Maildir/
# line 545: uncomment, line 546: add
header_checks = regexp:/etc/postfix/header_checks
body_checks = regexp:/etc/postfix/body_checks
# line 571: add
smtpd_banner = $myhostname ESMTP
# add at the last line
# limit an email size 10M
message_size_limit = 10485760
# limit mailbox 1G
mailbox_size_limit = 1073741824
# for SMTP-Auth settings
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
smtpd_client_restrictions = permit_mynetworks,reject_unknown_client,permit
smtpd_recipient_restrictions = permit_mynetworks,permit_auth_destination,permit_sasl_authenticated,reject
(/wiki/index.php/Fitxer:Font.png)
/etc/postfix/header_checks
# add at the head
# reject if email address is empty
/^From:.*<#.*@.*>/ REJECT
/^Return-Path:.*<#.*@.*>/ REJECT
(/wiki/index.php/Fitxer:Font.png)
/etc/postfix/body_checks
# reject if includes 'example.com' in mail body
2 de 7
/^(|[^>].*)example.com/ REJECT
08/01/15 15:40
http://jugalo.info/wiki/index.php/ASIX/M08/UF3/A01
(/wiki/index.php/Fitxer:Fontres.png)
OK
OK
]
]
Command
----------------------------------------------*+ 1
2
/usr/sbin/sendmail.sendmail
/usr/sbin/sendmail.postfix
(/wiki/index.php/Fitxer:Font.png)
(/wiki/index.php/Fitxer:Fontres.png)
Starting postfix:
[
OK
chkconfig postfix on
(/wiki/index.php/Fitxer:Font.png)
/etc/dovecot/conf.d/10-auth.conf
# line 9: uncomment and change ( allow plain text auth )
disable_plaintext_auth =no
# line 97: add
auth_mechanisms = plain login
(/wiki/index.php/Fitxer:Font.png)
/etc/dovecot/conf.d/10-mail.conf
# line 30: uncomment and add
mail_location =maildir:~/Maildir
3 de 7
/etc/dovecot/conf.d/10-master.conf
08/01/15 15:40
(/wiki/index.php/Fitxer:Font.png)
A01:
Servidor de correu electrnic
- Jugalo
# line 84-86:
uncomment
http://jugalo.info/wiki/index.php/ASIX/M08/UF3/A01
and add
# Postfix smtp-auth
unix_listener /var/spool/postfix/private/auth {
mode = 0666
user = postfix # add
group = postfix # add
}
(/wiki/index.php/Fitxer:Font.png)
(/wiki/index.php/Fitxer:Fontres.png)
OK
chkconfig dovecot on
/etc/postfix/main.cf
# add at the last line
smtpd_use_tls = yes
smtpd_tls_cert_file = /etc/pki/tls/certs/server.crt
smtpd_tls_key_file = /etc/pki/tls/certs/server.key
smtpd_tls_session_cache_database = btree:/etc/postfix/smtpd_scache
(/wiki/index.php/Fitxer:Font.png)
/etc/postfix/master.cf
# line 17-18: uncomment
smtps
inet
smtpd
-o smtpd_tls_wrappermode=yes
(/wiki/index.php/Fitxer:Font.png)
/etc/dovecot/conf.d/10-ssl.conf
# line 6: uncomment
ssl = yes
# line 12,13: uncomment and specify certificate
ssl_cert = <
/etc/pki/tls/certs/server.crt
ssl_key = <
/etc/pki/tls/certs/server.key
(/wiki/index.php/Fitxer:Font.png)
(/wiki/index.php/Fitxer:Fontres.png)
4 de 7
08/01/15 15:40
http://jugalo.info/wiki/index.php/ASIX/M08/UF3/A01
(/wiki/index.php/Fitxer:Fontres.png)
4 Install RoundCube
4.1 Installaci
Per installar roundcubemail:
cd /usr/share/doc/roundcubemail-0.3.1/SQL
mysql -u roundcube -p roundcube < mysql.initial.sql
Enter password:
cd
/etc/roundcubemail/db.inc.php
# line 21: change like follows ( replace your password for 'password' )
(/wiki/index.php/Fitxer:Font.png)
5 de 7
/etc/roundcubemail/main.inc.php
08/01/15 15:40
A01:
Servidor
de correu
electrnic
# line
66: specify
IMAP server
(SSL)- Jugalo
http://jugalo.info/wiki/index.php/ASIX/M08/UF3/A01
(/wiki/index.php/Fitxer:Font.png)
/etc/httpd/conf.d/roundcubemail.conf
# line 5: change
Alias /roundcube /usr/share/roundcubemail
<Directory /usr/share/roundcubemail/>
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 10.0.0.0/24
# IP address you allow
</Directory>
(/wiki/index.php/Fitxer:Font.png)
6 de 7
(/wiki/index.php/Fitxer:Fontres.png)
08/01/15 15:40
A01:
Servidor
de [correu
Stopping
httpd:
OK ] electrnic - Jugalo
http://jugalo.info/wiki/index.php/ASIX/M08/UF3/A01
Starting httpd: [ OK ]
7 de 7
08/01/15 15:40