I would like to create a step by step howto for basic configuration of a public mail server.
It might be useful for users who configure a mail server for first time
I have an ADSL and Nethserver, how can I create a mail server?
What do you need to start:
- ADSL with static IP. Any other solution (dyndns, noip or similar) not works
- Domain for mail: you have to buy a domain (mydomain.com) from a provider
- Perform basic installation: For simplicity set Nethserver domain as purchased domain (mydomain.com)
Fom NethServer web interface
- Software Center: install E-mail, Groupware SOGo and perform upgrades
- Users: create users, automatically will be created email user@domain (email@example.com)
- Email Address: If necessary, create aliases and assign them to users.
This creates the address alias@domain, additional email address for user@domain
- Group: If required create new group and assign users. Will be created automatically the address group@domain (firstname.lastname@example.org).
the recipients will be all group members
- Email: If Nethserver domain is different than purchased domain, you have to add the purchased domain (mydomain.com)
Server is ready!
Try to open sogo (https://IPNethserver/SOGo) and send / receive LOCAL email .
- Check your public ip
- Set port forwarding (NAT) for TCP Port 25 (SMTP), 443 (https), 465 (SMTPS), 587, 993 (IMAPS) to NethServer IP.
- If required by firewall allow traffic on these ports
The router is ok !!
From an external network try to access via telnet (putty) to your public IP on port 25
This should be done through the tools provided by DNS provider
- Create a HOST with nethserver name (eg. Nethserver.mydomain.com) and your public IP
- Set the HOST just created as MX record
- Optional. If you want to increase security, you can set the TXT record to limit sending servers for your domain. (es. v = spf1 mx ip4:X.Y.Z.K ~all)
This must be requested at adsl provider
- Set PRT record (reverse DNS) for your public IP to nethserver public name (the one entered in the records MX)
DNS changes take several hours to be active.
DNS is configured !!
Try to connect, from external connection, to SOGO (https://nethserver.mydomain.com/SOGo)
Try sending email to your new address.