Koozali.org: home of the SME Server

smtpd_check_rules is not updated?

Drew

smtpd_check_rules is not updated?
« on: March 31, 2003, 01:36:48 PM »
Hello all,

I deleted a user acccount on my SME v 5.1.2 server which is running Darrell's excellent contrib 'dmc-mitel-smtpdcheckrules-0.0.1-5'.  BUT, the 'smtpd_check_rules' file doesn't get updated, so mail to this deleted user is still getting into my server creating bounce messages, etc.

Is there a way to get this file to update automatically?  Or do I have to go in an manually change the file?

Thanks,
Drew

Drew

answer Re: smtpd_check_rules is not updated?
« Reply #1 on: March 31, 2003, 01:49:35 PM »
okay...so I answered my own question after digging around on Darrell's site.

I ran the following two commands (below) which updated the 'smtpd_check_rules' file in /var/spool/smtpd/etc.

/sbin/e-smith/expand-template /var/spool/smtpd/etc/smtpd_check_rules
/sbin/e-smith/signal-event email-update

is there a way to have this done automatically when a user account is removed from the SME server?

Charlie Brady

Re: answer Re: smtpd_check_rules is not updated?
« Reply #2 on: March 31, 2003, 08:36:32 PM »
Drew wrote:

> /sbin/e-smith/expand-template
> /var/spool/smtpd/etc/smtpd_check_rules
> /sbin/e-smith/signal-event email-update
>
> is there a way to have this done automatically when a user
> account is removed from the SME server?

Yes, Darrell could do that by fixing his contrib to add a symlink to the appropriate action in the user-delete event directory.

If you can find the script which expands the smtpd_check_rules template, just drop a symlink to it in the /etc/e-smith/events/user-delete directory.

Charlie