[Mimedefang] mysql mimedefang

David F. Skoll dfs at roaringpenguin.com
Thu Jul 3 12:08:00 EDT 2003


On Thu, 3 Jul 2003, B. Tolka wrote:

> while( $sth->fetch() )
> {
> open(FD, ">> /etc/mail/spam_disabled_users.txt");
> print FD "$username\n";
> }

There are several things wrong:

1) The open is in the loop.
2) You don't check if it succeeds.
3) It most likely _won't_ succeed, because mimedefang runs as "defang",
not "root", and probably doesn't have write permission on the file.

--
David.



More information about the MIMEDefang mailing list