Professional Web Applications Themes

Panther, Postfix, PPP - Mac Networking

Merry Christmas, everybody! I'm wondering how to execute "postfix flush" (as root) automatically when a Modem connection is established? Thanks! -Andre...

  1. #1

    Default Panther, Postfix, PPP

    Merry Christmas, everybody!

    I'm wondering how to execute "postfix flush" (as root) automatically
    when a Modem connection is established?

    Thanks!

    -Andre
    Andre Guest

  2. #2

    Default Re: Panther, Postfix, PPP

    On 2003-12-25, Andre Berger <de> wrote: 

    I believe that if the file /etc/ppp/ip-up exists, it will be executed
    whenever a ppp connection is successfully established. If you create
    that file as an executable shell script, you should be to do your
    postfix hack there.

    I haven't used this mechanism myself in OSX, so I can't say for sure
    it works there. But I used to use it in Linux (for ppp-specific
    routing) and it's mentioned in the OSX/BSD man page.





    Hugh Guest

  3. #3

    Default Re: Panther, Postfix, PPP

    * Hugh Wolf <lieder.de>, 2003-12-25 23:02 +0100: 
    >
    > I believe that if the file /etc/ppp/ip-up exists, it will be executed
    > whenever a ppp connection is successfully established. If you create
    > that file as an executable shell script, you should be to do your
    > postfix hack there.
    >
    > I haven't used this mechanism myself in OSX, so I can't say for sure
    > it works there. But I used to use it in Linux (for ppp-specific
    > routing) and it's mentioned in the OSX/BSD man page.[/ref]

    Thanks! I'm still having dificulties though, /etc/ppp/ip-up doesn't
    seem to be executed here. Could you possibly tell me which man page
    you were talking about?

    -Andre
    Andre Guest

  4. #4

    Default Re: Panther, Postfix, PPP

    On 2003-12-26, Andre Berger <de> wrote: 

    man pppd. Look at the SCRIPTS section, which is near the end.

    Parts of this man page are definitely valid (eg the description of
    /etc/ppp/options), but in some cases these bsd man pages don't
    completely correspond to what the osx version of the program actually
    does. That might be the case here.

    Hugh Guest

  5. #5

    Default Re: Panther, Postfix, PPP

    * Hugh Wolf <lieder.de>, 2003-12-26 22:37 +0100: 
    >
    > man pppd. Look at the SCRIPTS section, which is near the end.[/ref]

    Argh. Sure.
     

    Actually, after some testing, I can say for sure that
    "/usr/sbin/postfix flush" in /etc/ppp/ip-up works fine here. I guess
    I was too ambitious at first, using the "run-parts" command. Now that
    I know the mechanism itself works, I can take it from here.

    Thanks Hugh!

    -Andre

    Andre Guest

Similar Threads

  1. Postfix - Help on configuration
    By Jean-Louis Vill in forum Linux Setup, Configuration & Administration
    Replies: 4
    Last Post: October 8th, 02:40 PM
  2. Postfix - Help on configuratio
    By Jean-Louis Vill in forum Linux Setup, Configuration & Administration
    Replies: 0
    Last Post: August 22nd, 05:09 AM
  3. Postfix
    By Florian Ernst in forum Debian
    Replies: 1
    Last Post: July 30th, 12:20 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139