NethServer Version: ns7
Module: Email
Hello,
How can I change the value of the “Relay to another server” field. When I modify it it gives me an error:
Thank you
NethServer Version: ns7
Module: Email
Hello,
How can I change the value of the “Relay to another server” field. When I modify it it gives me an error:
Thank you
Hi @mundor ,
I think it is like it says, you try to relay your local mailbox. For me it sounds like you can only relay a mailbox synced to a mail provider.
Perhaps @davidep has more information about it.
Michael
Thank you @m.traeumner
I just need to change the value of the “Relay to another server” field that now has “smtp.mundo-r.com” to “smtp.cloud.mundo-r.com”. In some version of Nethserver it could be created/changed but now it gives an error.
Is the value of “Relay to another server” saved in a file that cannot be edited by commands or otherwise???
I would appreciate any help.
Did you recently install the mail-server component? Once you install it the main mailbox domain cannot be relayed externally.
Hello @davidep,
No, the mail server component was installed along with Nethserver from the beginning around 2019.
I think there has to be some way to change this value. It makes no sense that it cannot be changed when it is a value of the mail ISP provider and they can change it.
Thank you.
I didn’t setup a relay server, but you may have a look at /etc/e-smith/templates if you can find some directory with template files for your relay.
You can try to create a custom template. If you didn’t know how to do this, please let me know, I can help you.
@m.traeumner is back??
Thanks @m.traeumner
I was checking the /etc/e-smith/templates path but I didn’t see anything about the relay.
Since I needed to fix the problem quickly, I did a trick. I created a DNS route that redirects smtp.mundo-r.com to the IP of the new server and that’s how it worked without touching the relay configuration that I cannot modify.
Thanks for your help.
In ssh terminal:
db domains setprop domain.tld TransportType Relay RelayHost new.relay.host
signal-event domain-modify domain.tld
Where:
domain.tld is your principal domain
new.relay.host is your new relay host address or name
perfect @saitobenkei, thank you very much