FS::svc_acct_sm - Object methods for svc_acct_sm records
use FS::svc_acct_sm;
$record = new FS::svc_acct_sm \%hash; $record = new FS::svc_acct_sm { 'column' => 'value' };
$error = $record->insert;
$error = $new_record->replace($old_record);
$error = $record->delete;
$error = $record->check;
$error = $record->suspend;
$error = $record->unsuspend;
$error = $record->cancel;
An FS::svc_acct object represents a virtual mail alias. FS::svc_acct inherits from FS::Record. The following fields are currently supported:
The additional fields pkgnum and svcpart (see the FS::cust_svc manpage) should be defined. An FS::cust_svc record will be created and inserted.
If the configuration values (see the FS::Conf manpage) shellmachine and qmailmachines exist, and domuser is `*' (meaning a catch-all mailbox), the command:
[ -e $dir/.qmail-$qdomain-default ] || { touch $dir/.qmail-$qdomain-default; chown $uid:$gid $dir/.qmail-$qdomain-default; }
is executed on shellmachine via ssh (see dot-qmail/``EXTENSION ADDRESSES''). This behaviour can be surpressed by setting $FS::svc_acct_sm::nossh_hack true.
The corresponding FS::cust_svc record will be deleted as well.
Called by the suspend method of FS::cust_pkg (see the FS::cust_pkg manpage).
Called by the unsuspend method of FS::cust_pkg (see the FS::cust_pkg manpage).
Called by the cancel method of FS::cust_pkg (see the FS::cust_pkg manpage).
Sets any fixed values; see the FS::part_svc manpage.
$Id: svc_acct_sm.html,v 1.1 2001-07-30 07:36:03 ivan Exp $
The remote commands should be configurable.
The $recref stuff in sub check should be cleaned up.
the FS::Record manpage, the FS::Conf manpage, the FS::cust_svc manpage, the FS::part_svc manpage, the FS::cust_pkg manpage, the FS::svc_acct manpage, the FS::svc_domain manpage, the Net::SSH manpage, ssh, dot-qmail, schema.html from the base documentation.