Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
syno:dsm7inst [2026/09/03 21:37] – [Migrate MailPlus Server to new NAS] Bernard Condrausyno:dsm7inst [2026/10/01 12:47] (current) – [Check MailPlus Server connectivity] Bernard Condrau
Line 11: Line 11:
   * How to setup a [[deb13:kmip_server_pykmip|KMIP Server (PyKMIP)]] on Debian 13   * How to setup a [[deb13:kmip_server_pykmip|KMIP Server (PyKMIP)]] on Debian 13
  
- +===== Encrypted shared folders ===== 
- +  * On a NAS where encrypting the entire ''/volume1'' is not necessary or not advisable (no sensitive data, or performance concerns) you can encrypt single shared folders. 
- +  * To avoid data in encrypted shared folders get into the wrong hands follow my guide [[deb9:encrypted|Encrypted partitions/folders with auto-mount]]. <color red>This guide is outdated, but principles still apply. I will update the guide in due time.</color>
  
  
Line 79: Line 78:
  
 exit 0</code> exit 0</code>
 +  - Check basic TCP connectivity:<code>telnet [smtp_host] [port] (e.g., telnet smtp.gmail.com 587)</code>
   - Check certificate assignment in Synology DSM<code>openssl s_client -connect mail.yourdomain.tld:465 -showcerts   - Check certificate assignment in Synology DSM<code>openssl s_client -connect mail.yourdomain.tld:465 -showcerts
 openssl s_client -connect mail.yourdomain.tld:993 -showcerts openssl s_client -connect mail.yourdomain.tld:993 -showcerts
Line 87: Line 87:
     - Stop and restart //Synology MailPlus Server// and //Synology MailPlus (Client)//.     - Stop and restart //Synology MailPlus Server// and //Synology MailPlus (Client)//.
   - You can also enter ''cat /var/packages/MailPlus-Server/target/etc/main.cf | grep .pem'' and check whether ''fullchain.pem'' is referenced.   - You can also enter ''cat /var/packages/MailPlus-Server/target/etc/main.cf | grep .pem'' and check whether ''fullchain.pem'' is referenced.
 +  - Re-check the certificate assignment.
 +  - Open **MailPlus Server** and go to **Mail Delivery --> General**. //Enable SMTP authentication// and disable external postmaster in //External Postmaster//.
 +  - Disable //SMTP-SSL/TLS (port 465)// in **Synology MailPlus Server --> Service**
 +
 +===== Check MailPlus Server connectivity =====
 +  * Use the following command from an external source and from within your LAN:<code>openssl s_client -starttls smtp -connect smtp.example.com:587</code>
 +  * If external access works, but LAN access does not, then you have likely run into DNS/hairpin NAT issues. You best solve this by adding your mail host to the host overrides table. In [[pfsense:pfsense|pfSense firewall]] this is at //Services --> DNS Resolver --> General Settings//, scroll down to the bottom of the page.
 +  * You can check this by accessing your SMTP Server from within your LAN by IP address instead of the mail domain name.
 +  * Another good tool to check SMTP accessability is [[https://github.com/keny-studio/terminal-c/blob/main/Swaks%20-%20SMTP%20Testing%20tool.md|swaks]]:<code>sudo apt update
 +sudo apt install swaks
 +swaks --to recipient@example.com \
 +      --from sender@example.com \
 +      --server smtp.example.com \
 +      --port 587 \
 +      --tls \
 +      --auth LOGIN \
 +      --auth-user your_username \
 +      --auth-password your_password</code>
 +  * Make sure your web server who uses your SMTP Server will not get blocked by DSM or MailPlus Server. Go to //MailPlus Server --> Mail Delivery --> Security --> Block/Allow List// and //Control Panel --> Security --> Protection//, check //Block List// and add the web server's IP address to the //Allow List//.
 +
 +===== Developer Guide =====
 +  * [[https://help.synology.com/developer-guide/|Package Developer Guide]]
 +  * [[https://github.com/vletroye/SynoPackages|GitHub SynoPackages]]
 ==== Links ==== ==== Links ====
   * [[https://kb.synology.com/en-id/DSM/tutorial/How_to_migrate_MailPlus_to_another_NAS|How do I migrate MailPlus to another Synology NAS?]]   * [[https://kb.synology.com/en-id/DSM/tutorial/How_to_migrate_MailPlus_to_another_NAS|How do I migrate MailPlus to another Synology NAS?]]