Hi,
I configured postfix such that it relays mail through another server. Unfortunately, which relayserver is reachable depends on where I am:
On my previous Linux notebook I had a script that was automatically executed whenever eth0 got a new IP address. (I did not use the wireless interface with my previous machine.) Based on this IP address, the script decided whether I am within the university's network and modified /etc/postfix/main.cf accordingly.
Can anyone explain how I can achieve the same with MacOS X Tiger? It does not suffice to run such a script in ~/.bashrc or similar, because I don't log out when I go home but simply put the machine to sleep.
To make things a bit more complicated, I now use both miscellaneous wireless networks and the ethernet interface.
Thanks for any hint
Christoph
I configured postfix such that it relays mail through another server. Unfortunately, which relayserver is reachable depends on where I am:
- In my office, I have to go though the university's mail server, since all outgoing traffic on the smtp port is blocked by the university's administrators.
- At home or while traveling, I have to send my mails through a third party's server, since the university's mail server refuses to relay.
On my previous Linux notebook I had a script that was automatically executed whenever eth0 got a new IP address. (I did not use the wireless interface with my previous machine.) Based on this IP address, the script decided whether I am within the university's network and modified /etc/postfix/main.cf accordingly.
Can anyone explain how I can achieve the same with MacOS X Tiger? It does not suffice to run such a script in ~/.bashrc or similar, because I don't log out when I go home but simply put the machine to sleep.
To make things a bit more complicated, I now use both miscellaneous wireless networks and the ethernet interface.
Thanks for any hint
Christoph