On Monday 23 July 2001 12:17, Franki wrote:
> Hi peoples,
>
>
> I have setup a dialup mail router, using postfix and fetchmail....
>
> that all works fine, postfix is setup to defer delivery of mail until the
> conection is active....
>
> to do this, I added /usr/sbin/sendmail -q to the ip-up.local file...
> so it gets run on connection..
>
> now I have added an ip-down.local to kill fetchmail deamon and stuff... and
> I want to send postfix something to stop it trying to deliver (ie defer
> delivery) as the connection wouldn't be active any more..
>
> is there a command for postfix with this? or should I just issue a restart
> to postfix so that it is waiting for the sendmail -q again.??
>
>
> regards
>
> Frank
I am using the same configuration as you. My /etc/ppp/ip-down.local only has
the fetchmail --quit command. Fetchmail actually talks to your isp mailbox so
needs to be stopped one the connection has been dropped. You get lots of DNS
errors otherwise, well I did anyway.
Postfix however can be left running, this is just the mail 'spooler' as it
were, the system will still send messages to the root account regarding
'cron' etc. I only have sendmail -q in the ip-up to send mail thats queued
while the ppp is down.
Dave.