• [^] # Re: Détails

    Posté par . En réponse à la dépêche SFRswallow, envoyer des SMS en ligne de commande. Évalué à 5.

    Postfix transport
    -----------------
    You can use sfrswallow as a postfix transport. You need a running postfix
    installation, and a domain name you can use to build fake e-mail addresses,
    say `sms.example.org` (with its MX on your server).
    1. Put sfrswallow.py somwhere on your serveur, with right login settings.
    2. In your /etc/postfix/master.cf, add:
    sfrswallow unix - n n - - pipe
     flags=FRD user=username argv=/usr/bin/python /path/to/sfrswallow.py $recipient -m
    where `username` is your user name, and `/path/to/sfrswallow.py` is where you
    put the script.
    3. In your /etc/postfix/main.cf, add (or modifiy):
    relay_domains = sms.example.org
    sfrswallow_destination_recipient_limit = 1
    transport_maps = hash:/etc/postfix/transport
    4. In your /etc/postfix/transport, add:
    sms.example.org sfrswallow:
    5. Don't forget to run `postmap transport`.
    6. Read the `OpenPGP authentication` part below
    That's it. Try to send an sms to 0600000042@sms.example.org!
    
    

    C'était dans le README ...