User Tools

Site Tools


picoenterprise:mta-mailstore-centos

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
picoenterprise:mta-mailstore-centos [2017/04/07 00:35]
Luc Nieland
picoenterprise:mta-mailstore-centos [2017/04/07 17:03] (current)
Luc Nieland
Line 138: Line 138:
 In: /​etc/​postfix/​virtual In: /​etc/​postfix/​virtual
 <​code>​ <​code>​
 +# e-mail addr.: ​        ​username @ servername (of the Dovecot-server):​
 +
 info@example.com ​      ​sv@vps2.laboratory.local info@example.com ​      ​sv@vps2.laboratory.local
 sv@example.com ​        ​sv@vps2.laboratory.local sv@example.com ​        ​sv@vps2.laboratory.local
-# + 
-info@example.com       ​ln@vps2.laboratory.local +info@example2.com      ln@vps2.laboratory.local 
-ln@example.com         ​ln@vps2.laboratory.local+ln@example2.com        ln@vps2.laboratory.local
 </​code>​ </​code>​
  
Line 164: Line 166:
  
 ===== Dovecot ===== ===== Dovecot =====
 +
 +//The SE-Linux configuration is out of the scope of this howto.//
 +
  
 Hostname: vps2.laboratory.local Hostname: vps2.laboratory.local
 +
 +firewall:
 +  firewall-cmd --add-port={24/​tcp,​143/​tcp,​993/​tcp,​4190/​tcp,​12345/​tcp} --permanent
 +  firewall-cmd --reload
  
 Software: Software:
Line 172: Line 181:
 En voeg toe voor Sieve: En voeg toe voor Sieve:
   yum install dovecot-pigeonhole   yum install dovecot-pigeonhole
- 
-Make x509 certs: 
-  openssl req -utf8 -newkey rsa:2048 -keyout /​var/​dovecot/​conf/​tls.key -nodes -x509 -days 3650 -out /​var/​dovecot/​conf/​tls.crt -set_serial 0 
- 
- 
  
  
Line 190: Line 194:
   touch /​var/​log/​dovecot.log   touch /​var/​log/​dovecot.log
   chown dovecot:​dovecot /​var/​log/​dovecot.log   chown dovecot:​dovecot /​var/​log/​dovecot.log
 +
 +Make x509 certs:
 +  openssl req -utf8 -newkey rsa:2048 -keyout /​var/​dovecot/​conf/​tls.key -nodes -x509 -days 3650 -out /​var/​dovecot/​conf/​tls.crt -set_serial 0
 +
  
  
Line 198: Line 206:
   doveadm pw -s SHA512-CRYPT   doveadm pw -s SHA512-CRYPT
  
-The result in /​var/​dovecot/​conf/​users will be:+The result in /​var/​dovecot/​conf/​users will be like:
  
   ...   ...
Line 332: Line 340:
  
  
-Make a connection with each mailbox with a MUA (mutt or Thunderbird) first **before** sending mail to the LMTP-connection. This will create the mailfolder structure for the mailbox. 
  
 +Enable and start the Dovecot:
 +  systemctl start dovecot
 +  systemctl enable dovecot
 +
 +
 +Make a connection with each mailbox with a MUA (mutt or Thunderbird) first **before** sending mail to the LMTP-connection. This will let Dovecot create the mailfolder structure for the mailbox to be stored. See: /​var/​dovecot/​data/​ (each username has it's own directory here).
 +
 +Connect info for the MUA:
 +  IMAP host:port = vps2.laboratory.local : 993
 +  SMTP host:port = vps1.laboratory.local : 587
 +  loginname = sv
 +
 +
 +Test with:
 +  telnet ​ vps1.laboratory.local 25
  
  
  
picoenterprise/mta-mailstore-centos.1491518117.txt.gz · Last modified: 2017/04/07 00:35 by Luc Nieland