Configuring the mail server
Before running the S/MIME sample applications.
Install and configure a mail server.
To use your PKI infrastructure, create an Entrust Profile (.epf file) for both the sender and the recipient.
Copy the etjava/lib/mailcap.default file into the the lib folder of your Java installation.
Copy the etjava/lib/mailcap file into the the lib folder of your Java installation.
Edit the etjava/examples/data/smime/smime_example.ini file.
Set the following file content.
[SMimeSend]; Host name of the mail serverhost=localhost; Email address of the message recipientto=RSAUser2@javatkexamples.entrust.com; Email address of the message senderfrom=RSAUser1@javatkexamples.entrust.com; Path to epf file for message senderProfile=data/userdata/RSAUser1.epf; Entrust password for message senderpassword=~Sample7~; path to an entrust.ini file, if you have your own infrastructureinifile=Entrust.ini; The following three porperties are only used if the specified; inifile is loaded.; The attribute that contains a user's certificate, do not change.attrToFind=userCertificate; Directory Search Base for retrieving certificates; e.g. ou=PKI7,o=Java Toolkit Samples,c=CAsearchbase=<X500 searchbase>; Directory Search expression for retrieving certificates; e.g. cn=*searchexpr=<LDAP search expression>; a file that contains the certificate of the recipient, used; if inifile cannot be loaded.recipientCertificate=data/userdata/RSAUser2Encryption.cer;Uncomment the next line to set a path to a different mailcap file;mailcap = /etjava/lib/mailcap[SMimeShow]; Path to epf file for message recipientProfile=examples/data/userdata/RSAUser1.epf; Entrust password for message recipientrecipient_password=~Sample7~; Host name of the mail serverhost=localhost; Mail protocol to useprotocol=pop3; Recipient's user name at the mail serveruser=RSAUser2; Recipient's mail server passworduser_password=mailpassword; Name of mailbox for recipientmbox=INBOXSave the file.