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;
FS::svc_acct_sm is depreciated. This class is only included for migration purposes. See the FS::svc_forward manpage.
An FS::svc_acct_sm object represents a virtual mail alias. FS::svc_acct_sm 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 L<FS::Conf>) 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 L<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.3 2002-01-29 17:42:46 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.