Skip to content

updaterules.8

Manvendra Bhangui edited this page Sep 4, 2022 · 1 revision

NAME

clearopensmtp - remove stale IP's authorized for pop before SMTP

updaterules - Rebuild tcp.smtp.cdb with list of static ip stored in tcprules

SYNOPSYS

clearopensmtp

updaterules

DESCRIPTION

clearopensmtp removes old IP's added after pop authentication. These IP's are maintained in the table relay by default. IndiMail can be configured to allow POP3/IMAP users IP's to be added to the list of IP's which are allowed to relay through the smtp server. This is done with the --enable-roaming-users=y option while configuring IndiMail before compilation. With this option, users IP's who authenticate via POP3/IMAP are added to the list of IP's which can relay through the smtp server. qmail-smtpd(8) must be run with tcpserver(1) -x option. If the host is a clustered domain, clearopensmtp uses the DBINFO structure to cycle through all the mailstores and clear the relay tables.

updaterules rebuilds the cdb (tcp.smtp.cdb) file with the list of static IP's stored in tcprules (tcp.smtp) file and the list of IP's in open-smtp or relay table. This rebuilding is needed only if IndiMail's qmail-smtpd(8) has not been installed, and one is running some other version of smtpd daemon. updaterules may also be needed if one is running a version of smtpd on some foreign hosts (e.g. Relay servers) which do not have access to IndiMail's authentication databases. IndiMail's qmail-smtpd(8) gets the authenticated user list at run time from the relay table and hence does not require the IP's in the tcp.smtp.cdb file.

Each authenticated pop users IP is added with a time stamp. Every time clearopensmtp is run, this list is checked for time stamps which are older than the --enable-relay-clear-minutes option. The default is 30 minutes. Any IP with a time stamp older than this number are removed from the list.

OPTIONS

These options are for clearopensmtp only.

-C
Connect to cluster. Allows clearopensmtp to operate on all hosts defined in dbinfo Mail Cluster Definition (MCD) File. This option causes relay table to be cleared on all hosts defined in the MCD file.

-t
Rebuild the cdb only.

-s
Clear the table relay** in MySQL only.**

RETURN VALUE

0 if all steps were successful, non-zero otherwise.

Clone this wiki locally