[freeside] Vpopmailrestart

ivan at 420.am ivan at 420.am
Wed Sep 25 18:11:23 PDT 2002


On Tue, Sep 24, 2002 at 03:17:43PM -0500, Kevin Ragsdale wrote:
> >-----Original Message-----
> >From: ivan at 420.am [mailto:ivan at 420.am]
> >Sent: Monday, September 23, 2002 8:53 PM
> >To: ivan-freeside at sisd.com
> >Subject: Re: [freeside] Vpopmailrestart
> >
> >
> >On Mon, Sep 23, 2002 at 11:56:50AM -0500, Kevin Ragsdale wrote:
> >> Hello,
> >> 
> >> I was wondering if I could get some help on the 
> >vpopmailrestart section of
> >> Configuration.
> >
> >Relic from the old exports.  Doesn't do anything.  Thanks for the
> >heads-up; I've moved it to the `deprecated' section.
> >
> >>  I'm not sure what to put in there.  I have tried the script
> >> from the /eg directory, but can't get it to work, so I must 
> >be entering this
> >> incorrectly.  I have to manually run the vmkpasswd command 
> >after adding a
> >> user.
> >
> >Yes, you've told us that before.  I like patches.
> 
> Sorry for the repetition - getting old, I guess.  We modified vpopmail.pm so
> that after the rsync, the freeside server connects to the mail server via
> SSH and runs the command.  I doubt this is the best way to do it, but we
> added this line to the end of sub vpopmail_sync:
> 
> system('ssh -l vpopmail Host_IP /home/vpopmail/bin/vmkpasswd
> nationsnetwork.net');

Some suggestions:

- make the command configurable
- use Net::SSH like the other exports, not system()
- send a patch as a unified diff (diff -u)

-- 
_ivan



More information about the freeside-users mailing list