Disabling SMTP Relay

Hello,

I have recently switched my VPS provider to one that does not block the port 25. As i restored my YunoHost completely from a backup all of my settings, apps and data moved over (thanks for making this so easy), but now i have a problem, as i no longer need to use a smtp relay, how can i disable the smtp relay configuration to use the internal SMTP server again?

Thanks.

Hello,

If I remember well, the file to edit is there :

cat /etc/postfix/main.cf

I think you could run this command in order to see the difference between the your configuration tricked and the YunoHost basis one :

sudo yunohost tools regen-conf postfix --dry-run --with-diff

You can overwrite your old backedup configuration by this command :

sudo yunohost tools regen-conf postfix --force

Sorry for my English and the #!@%-?& smartphone keyboard.

ppr

1 Like

The solution is similar to setting up a relay, i.e. you need to define the four setting, but fill them with “empty string”. c.f. Configure SMTP relay | Yunohost Documentation

The empty string is just '' (two simple quotes) so that gives stuff like :

sudo yunohost settings set smtp.relay.host -v ''
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.