Friday, April 23, 2021

Mail Server Configuration - openSUSE

  1. install debian with GUI
  2. set static id address with nds 8.8.8.8
  3. set hostname
    1. root# cp /etc/hostname /etc/hostname.bak
    2. root# vi /etc/hostname
    3. debian8
  4. set hosts
    1. root# cp /etc/hosts /etc/hosts.bak
    2. root# vi /etc/hosts
    3. 10.64.204.8         opensuse8.sus8.com      opensuse8
  5. close firewall
    1. root# systemctl disable firewalld
    2. root# systemctl stop firewalld
  6. install bind9
    1. root# zypper install -y bind9
    2. root# systemctl enable named
    3. root# systemctl start named
  7. after install DNS server, we modify setting of DNS.
    1. vi /etc/named.conf
    2. listen-on port 53 { 10.64.204.X; };
    3. dnssec-validateion no;
    4. add recursion yes;

 

 

  1. go to webmin.com to install webmin
  2. open webmin by https://fedora8:10000
  3. webmin fix in openSUSE to control bind as below pic:
  4. create master zoons(sus8.com and sus8.ca), and A records, and MX records.
  5. In ‘zoon option’ allow zoon transfer to class dns server.
  6. Create secondary zoon in class dns server to transfer dns zoons.
  7. After these DNS setting, we change back DNS from 8.8.8.8 to local 10.64.204.8
  8. Install postfix for openSUSE.
  9. zypper install postfix
  10. After installed postfix, we need to modify main.cf
  11. root# vi /etc/postfix/main.cf
  12. Make sure the settings:
  13. myhostname = opensuse8.sus8.com
  14. mydestination add deb8.com, deb8.ca
  15. mydomain = sus8.com (Not find the place to put)
  16. mynetworks add 10.64.0.0/12 (Not find the place to put)
  17. Install alpine
  18. zypper install alpine
  19. Install Dovecot
  20. Install dovecot
  21. zypper install -y dovecot
  22. Vi /etc/dovecot/dovecot.conf
  23. #listen = *,;; àlisten = *
  24. #login_trusted_networks = à login_trusted_networks = 10.64.0.0/12
  25. Add the end of following at the bottom
  26. pop3_uidl_format = %08Xu%08Xv
  27. mail_location = mbox:~/mail:INBOX=/var/mail/%u
  28. chmod 600 /var/spool/mail/*
  29. systemctl restart postfix
  30. vi /etc/dovecot/conf.d/10-mail.conf
  31. remove the # to indicate the mail location.
  32. SOLUTION FOR ERROR WITH OUTLOOK CONNECTING TO POP3 (Not yet test)
  33. cd /etc/dovecot/conf.d
  34. vi 10-auth.conf
  35. disable_plaintext_auth = no
  36. save the file, Restart the service
  37. In outlook turn of secure authentication SPA
  38. And under the advanced tab uncheck the pop3 ssl authentication
  39. Now we can setup the client email using outlook
  40. add new pop and imap account in outlook

 

No comments: