[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-developers] Qube 3 - relay,block email list entries & .db files



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> I'm having problems adding entries from within
> the GUI interface for the EMAIL SERVER.  Trying
> to input block email from hosts/Domains & block
> email from Users, causes my email server to crash,
> i.e. it'll show status red then 15 mins. later back to
> green, I believe this has to do with the fact that
> the monitor only updates every 15mins from some
> reading somewhere... after each SAVE... but why does
> it go down at all, is sendmail being restarted or ?

Sendmail is being restarted to ensure the config files are being 
re-read properly.

Active Monitor does run every 15 minutes and checks that it can 
connect to each service which is supposed to be running.

What do you see when you do a "tail -f /var/log/maillog" in a root 
shell session?

> -vi access (input all that I need, a@xxxxx and b.com with appended
> 550 Mail rejected due to possible SPAM which is separated by a
> tab).

You're making all your manual changes at the end of the file, correct?  
After the "Cobalt Access Section" ?

> -makemap hash access < access.db
>
> but this command is not 100% sucessful because it comes back
> with some errors about lines being too long when I tried the btree
> switch parameter is comes back with more errors and dbm does not
> seem to be recognized.

"hash" is the correct file type, not dbm or btree.

Also, you have the command "backwards" -- your command is trying to 
build a new access.db file from the old (binary) access.db file, not 
from the "raw" text file. You can just leave off the .db to make sure 
you don't mess it up:

cd /etc/mail; makemap hash access < access

> -now not sure if my access.db is valid or not, since I don't
> know how to view it...

makemap hash -u /etc/mail/access

will list out the contents of the file.

> reading further, I found out that virtusertable also is updated
> whenever I hit the GUI "Save" button after email address entries
> so next I tried adding
>
> -makemap hash virtusertable < virtusertable.db

Also backwards. Just do

makemap hash virtusertable < virtusertable

You can put in the "-v" switch to see what it's doing too:

makemap -v hash access < access
makemap -v hash virtusertable < virtusertable

- -- 
Bruce Timberlake

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+bioLvLA2hUZ9kgwRAlILAJ4qh57WwyfS2h/7ExB5GcLJ8ZHDGQCfXahv
YbD2vxZjnq0fQvmMl42Royo=
=GRCe
-----END PGP SIGNATURE-----