GETMAIL.NLM ------------- Program GETMAIL sends SMTP command ETRN to request queued mail from another SMTP server. It works on NetWare 386 file server (see Notes section of this file for version details). Syntax: LOAD GETMAIL {/m|/d} [/p] [/t] [/n[:]] [/l] [/o] [now|only] [/b] {/s}* Where: ServerAddress IP number or name of provider SMTP server. I use my internal WinGate address (192.168....) MyMailerName Name of my server, to which mail is to be sent If MyMailerName contains space, enclose it into "" e.g. "/mMy Mailer@3net.cz" MyDomainName Name of my domain, to which mail is to be sent. This parameter enforce using QSND as "get mail" command. PortNum SMTP server port number. Default is 125, as I didn't want a collision with wingate proxy. now getmail does its job immediatelly and quits only as NOW, but quits without keypress (suitable for CRON) Etrns number of ETRN per one session. Default is 4 times. delay delay between ETRNs (QSNDs) in session. Default is 5 minutes. hh:mm start time of ETRNing (default is 00:35) There can be none to TEN /s parameters LogName Name of log file. If empty (i.e. "/L"), no log will be created. Default is SYS:SYSTEM\\GETMAIL.LOG . opt ETRN option character. Usually # or @. It depends on configuration of your backup SMTP server. Do not use without consultation with administrator of that server. timeout SMTP timeout in seconds (default is 120 sec) Hints: ServerAddress I use my internal firewall address (192.168....) here because of address translating. Program needs IP number if NW server has no standard DNS resolution installed. GetMail supports NetDB interface for DNS. PortNum Without firewall with SMTP proxy, you should use standard SMTP port 25. ETRN/QSND Program supports both methods. ETRN command is sent, when /M parameter is given, QSND when /D is given. GetMail wait until start time and then sends specified number of ETRN to every 5 (or minutes. This is done for every /s parameter. When /B is used, program launches GETMAIL.NCF (after successfull call only). You can use it for another action e.g. actions after establishing dialup line by GETMAIL. Program termination: GETMAIL terminates if you unload GETMAIL.NLM . Example: LOAD GETMAIL 192.168.1.12 /mmail.main.com /p25 /s8:00 /s16:12 /s0:0 In this example, GETMAIL will three times in day (at 0:00, 8:00 and 16:12) send four ETRN to host 192.168.2.12 with mail.main.com as target for mail. In other words, ETRN would be sent at: 0:00 0:05 0:10 0:15 8:00 8:05 8:10 8:15 16:12 16:17 16:22 16:27 (but exact time can differ as establishing connection can take some time, e.g. for dialing up). ----------------------------------------------------------------- Notes: - GETMAIL is cardware. See file LICENSE for conditions. - program was made (and tested) in NW 4.1x. It should work on NW 3.1x or NW 5 but ... History: 980216 0.10: port & myMailer as parameters 980217 0.20: several send times 980306 0.21: ETRN sends per session is optional; max sends is 7 980319 0.23: 4xETRN, 'now' may be uppercase 981002 0.24: Added support for QSND 981003 0.25: increased max time (/s) parameters to 10 981005 0.26: added ONLY parameter for CRON use 981130 0.27: added ETRN option character (/o) 981208 0.28: added timeout parameter (/t) with default to 120 sec 990709 0.30: added delay parameter to /n, changed time control (/n1 should work now) 990712 0.31: log filename as parameter 990715 0.31a: doc file correction 990805 0.31b: change from freeware to cardware 990908 0.32: corrected "SMTP Status 1" error message 000918 0.41: starting GETMAIL.NCF after session; DNS name resolution and several internal changes ----------------------------------------------------------------- If you have any problem or any suggestion concerning the further development of the program, please contact Petr Jaklin: email: jaklin@3net.cz fax +420 417 26859 New versions and other utilities are available at URL: http://www.3net.cz/software/