GO Client to manage mail redirection from OVH
This project is a go client to manage email redirection for OVH Provider.
Create a configuration file in one of these path :
- /etc/ovh/ovh.yaml
- $HOME/.config/ovh/ovh.yaml
- same direction as binary
The configuration file must have the format below :
Endpoint: your_endpoint (ie. ovh-eu)
ApplicationKey: your_application_key
ApplicationSecret: your_application_secret
ConsumerKey: your_consumer_key
Domain:
- yourdomain.com
- yourotherdomain.com
To create your APIKeys, follow the link : https://eu.api.ovh.com/createToken/
You have to give the rights below :
- GET
/email/domain/*/redirection
- POST
/email/domain/*/redirection
- GET
/email/domain/*/redirection/*
- DELETE
/email/domain/*/redirection/*
go build -o govh-mrm main.go
To list current redirection
govh-mrm list
You can filter the list by source and destination mail
govh-mrm list --from <redirection mail> --to <destination mail>
To add a new redirection
govh-mrm add <redirection mail> <destination mail>
To remove a redirection
govh-mrm remove <redirection mail>
Note : The redirection's mail and the destination's mail must belong to domain arrays in configuration file.
Julien Vinet julien@vinet.dev
The source and documentation in this project are released under the GNU general public license