Server BIND installato su lpr2
File di configurazione /etc/named.conf di lpr2.fis.unipr.it
(vedi http://www.centos.org/docs/2/rhl-rg-en-7.2/s1-bind-configuration.html )
listen-on port 53 { 127.0.0.1; 192.168.0.1; }; // allow-query { localhost; }; zone "lpr.fis.unipr.it" { type master; file "lpr.soa"; }; zone "0.168.192.IN-ADDR.ARPA" { type master; file "192_168_0.soa"; }; zone "1.168.192.IN-ADDR.ARPA" { type master; file "192_168_1.soa"; }; //zone "lpr.fis.unipr.it" { type slave; file "slaves/lpr.sec"; masters 192.168.0.1; }; //zone "0.168.192.IN-ADDR.ARPA" { type slave; file "slaves/192_168_0.sec"; masters 192.168.0.1; };
Creati i 2 file /var/named/lpr.soa (risoluzione diretta) e /var/named/192_168_0.soa (risoluzione inversa).
lpr.soa
; AUTHORITATIVE DATA FOR: LPR.FIS.UNIPR.IT. ; ; RR owner class type origin person ; $TTL 86400 ;24H (default TTL dei RR) ; @ IN SOA server.fis.unipr.it. alfieri.fis.unipr.it. ( 20131128; Serial version YYYYMMDD 8H ; Refresh secondary (>2*retry) 2H ; Retry refresh 1W ; Expire 1D ) ; Minimum TTL ;; ;; Authoritative name server(s) for this domain ;; @ IN NS netlab.fis.unipr.it. @ IN NS netlab1.netlab.fis.unipr.it. ;; ; netlab1 IN A 192.168.0.101 netlab2 IN A 192.168.0.102 netlab3 IN A 192.168.0.103 netlab4 IN A 192.168.0.104 netlab5 IN A 192.168.0.105 netlab0 1h IN A 192.168.0.254 ; netlab.fis.unipr.it. IN MX 10 netlab.fis.unipr.it.
192_168_0.soa
$ttl 86400 ;24H ; @ IN SOA server.fis.unipr.it. alfieri.fis.unipr.it. ( 20131211 ; Serial yyyy/mm/dd 8H ; Refresh every 24 hr. 2H ; Retry every 2 hr. 1W ; Expire in 14 days. 1D ) ; Minimum life is 24 hr. ; ; Authoritative servers for this domain ; @ IN NS lpr-bastion.fis.unipr.it. @ IN NS lpr1.lpr.fis.unipr.it. $origin 0.168.192.in-addr.arpa. 1 IN PTR lpr1.lpr.fis.unipr.it. 2 IN PTR lpr2.lpr.fis.unipr.it. 3 IN PTR lpr3.lpr.fis.unipr.it. 4 IN PTR lpr4.lpr.fis.unipr.it. 5 IN PTR lpr5.lpr.fis.unipr.it.
dig @lpr-bastion.fis.unipr.it -x 192.168.0.2
Creato il dominio di quarto livello lpr.fis.unipr.it
Configurazione del server del dominio di terzo livello (fis.unipr.it). File /etc/named.conf di server.fis.unipr.it:
lpr IN NS lpr-bastion.fis.unipr.it.
dig lpr5.lpr.fis.unipr.it #da una macchina con indirizzo pubblico: dig lpr5.lpr.fis.unipr.it +trace
Postfix e' un demone di posta SMTP
myhostname = DESKTOP-6S1L16J #mydomain = localdomain inet_interfaces = all compatibility_level=2 alias_maps = hash:/etc/aliases # Domini accettati come destinazione finale: mydestination = $myhostname, localhost #i client locali possono inviare a tutti i server remoti: mynetworks = 192.168.0.0/16, 127.0.0.0/8, 192.135.11.0/24, 172.22.99.195/20 ## destinazioni ammesse da client remoti: relay_domains = $mydestination, pr.infn.it, gmail.com, unipr.it, studenti.unipr.it
smtp inet n - n - - smtpd submission inet n - n - - smtpd
Verifica con comando mailx:
echo "ciao" | mail -s subj --debug-level=7 ubuntu@DESKTOP-6S1L16J echo "ciao" | mail -s subj --debug-level=7 alfieri@pr.infn.it
Verifica con telnet
lpr-bastion ~]# telnet localhost 25
Invio di allegati MIME con mailx (se supportato dalla versione mailx )
mailx -v ubuntu@localhost -a attacched_file
Per creare un alias editare il file /etc/aliases Ad esempio:
nome.cognome: ubuntu
Quindi eseguire "newaliases"
Dovecot e' un server IMAP/POP per linux.
Configurazione per CentOS: https://support.rackspace.com/how-to/dovecot-installation-and-configuration-on-centos/