Technical
Note 1808
Last
Update:
POP/IMAP-before-SMTP
on Caldera Volution Messaging Server
(tested
on: VMS 1.0 with maintenance pack 2 on Caldera OpenLinux 3.1.1)
Note that this document is obsolete with respect to newer versions of VMS and SCOoffice Mail Server, since they implement a different mechanism for relay authentication. However, we continue to make it available in case it may be useful to someone implementing a Postfix mail server.
General reference: http://www.stahl.bau.tu-bs.de/~hildeb/postfix/pop-before-smtp_en.shtml
Download the pop-before-smtp.pl RPM from here: http://popbsmtp.sourceforge.net/
At the time of this writing, the current version was 1.30, and the downloaded file was pop-before-smtp-1.30-2.noarch.rpm.
Install the RPM.
Install essential Perl modules as follows:
$ perl -MCPAN -e shell;
cpan> install File::Tail
cpan> install Net::Netmask
cpan> install Date::Parse
Replace the default perl script pop-before-smtp-conf.pl:
$ cp /etc/pop-before-smtp-conf.pl /etc/pop-before-smtp-conf.pl.default
$ cp /usr/share/doc/pop-before-smtp-1.30/pop-before-smtp-conf.pl /etc
Edit /etc/pop-before-smtp-conf.pl:
Set the log file: $file_tail{'name'} = '/var/log/messages';
Choose the log-file pattern by uncommenting the lines provided for Cyrus.
Start the daemon:
# nohup pop-before-smtp &
(Remember to add an rc script to start this at the next system restart.)
Add to /etc/postfix/main.cf (or make appropriate modifications to your existing file):
smtpd_recipient_restrictions =
permit-mynetworks,
check_client_access hash:/etc/postfix/pop-before-smtp,
check_relay_domains
Reload postfix with the new configuration:
# postfix reload
Test relaying from an outside network. After you read your mail, your IP address should be added to the pop-before-smtp database, /etc/postfix/pop-before-smtp.db. The command “strings /etc/postfix/pop-before-smtp.db” will show what, if any, addresses have been added.
-###-
Comments and corrections: tnfeedback@m-whitaker.com