This commit is contained in:
Iwan Clement
2020-06-12 20:18:05 +02:00
parent 8304f81bdc
commit 38adf25d18
2 changed files with 88 additions and 1 deletions

View File

@@ -5,6 +5,16 @@ MG_URL="https://api.mailgun.net/v3/routes"
MG_APIKEY="api:key-6e4b01ba0681141a509c1c462fca40f4"
MG_ORDER="GET /routes"
curl -s --user $MG_APIKEY -X PUT \
"$MG_URL/5ce18c92629574000195c8de" \
-F priority=2 \
-F description='Tout ce qui arrive sur le domaine pour mg.iwanclement.eu' \
-F expression='match_recipient(".*@mg.iade-lyon.eu")' \
-F action='forward("iwan.pubclement@gmx.fr")' \
-F action='stop()'
exit 0
curl -s --user $MG_APIKEY -X PUT \
"$MG_URL/5c726e2f8b3cd70001237ee5" \
-F priority=2 \
@@ -13,7 +23,6 @@ curl -s --user $MG_APIKEY -X PUT \
-F action='forward("nadineclement@mail.fr")' \
-F action='stop()'
exit 0
curl -s --user $MG_APIKEY -G \
$MG_URL \
-d skip=1 \