Setup to forward ALL incoming emails

Currently reading
Setup to forward ALL incoming emails

Shadow

Subscriber
608
209
NAS
DS216+II, DS118, DS718+
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. Windows
Mobile operating system
  1. Android
Hi all,

I have MailPlus running on my DS216+II. I have a DS118 in another location (can connect to each other via a site-to-site VPN tunnel).

I was wondering if I can install Mail Server on the DS118 and set it up to forward any email it receives to my MailPlus server on the DS216+II . This way, I can set the DS118 as secondairy in my DNS MX records incase my DS216+II goes down so the DS118 can temporarly 'capture and hold' emails untill the DS216+II MailPlus comes back up.

Anyhow has any clue if it's possible to set this up via SSH or something? Thanks.
 

fredbert

Moderator
NAS Support
Subscriber
1,865
760
NAS
DS1520+, DS218+, DS215j
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
Are you thinking to only use the STMP server of Mail Server on the DS118, to relay to the main DS216+II? You need to be careful not to leave this as an open-relay because you’ll likely get added the the anti-spam lists.

Generally you have to define the right domain so that anyone can send mail to thus domain, for all other domains (relaying mail) you should enable access authentication.

So if Mail Server/Mail Station/DSM doesn’t have settings for forwarding mails to another server (I’m lounging on the sofa and not getting up to check!) then you need to manually change Postfix config in main.cf and probably the virtual_hosts files.

Have a look at my catch-all tutorial for Mail Server to see how to try to keep changes after reboots.
 

Shadow

Subscriber
608
209
NAS
DS216+II, DS118, DS718+
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. Windows
Mobile operating system
  1. Android
Thnx. But if I set up a catch-all mailbox, how is is going to relay the mail messages to my primary mailplus server?
 

fredbert

Moderator
NAS Support
Subscriber
1,865
760
NAS
DS1520+, DS218+, DS215j
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
That wasn’t the point I was making. It was having to edit other files with your changes so they persist after restart and reboot. You still need to re-add them when Mail Server is upgraded.

Mail Server uses Postix for SMTP.
 

fredbert

Moderator
NAS Support
Subscriber
1,865
760
NAS
DS1520+, DS218+, DS215j
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
Just thinking about this. The IMAP service uses Dovecot. I’m wondering about running mail services on both NAS as if they are standalone but with the same configs and accounts. Then investigate synchronising the Dovecot databases. Looks like it’s possible but I’ve not done it.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Top