MAILTOOL FAQ

Does MAILTOOL work with Google (GMail), Yahoo Mail, Microsoft Office 365, Microsoft Outlook and other Cloud Servers that require SSL, TLS and Authentication?

Yes!  We have worked with many customers to help them set up their systems using MAILTOOL and MAILTOOL Plus to interact with a variety of cloud based servers including Google, Microsoft and Yahoo.  We personally use Google Apps email so our IBM i requires this as well!

See this article for descriptions and examples.

I executed the MAILTOOL command but no email was sent. What did I do wrong?

For users of MAILTOOL Plus, see this article on what we need to help you diagnose a problem.  

If you are using the base MAILTOOL product that uses the IBM SMTP server to deliver emails, you should contact IBM for support.  We can help as much as possible but we do not support the IBM SMTP product itself.

I'm receiving the following error running MAILTOOL: "Error during initializing SSL. Permission Denied. RC(10) errno(3401)" or "Error initializing SSL Environment. RC(6003) Access to the key database is not allowed". What do I need to do to fix this?

This is because the user that is making the request does not have the proper authorities to the SSL keyring files and/or directory that are located in the IFS. The keyring files (on most systems) can be found by using the following command:

WRKLNK '/QIBM/UserData/ICSS/Cert/Server/*'

Normally running the following commands will fix this issue:

CHGAUT OBJ('/QIBM/UserData/ICSS/Cert/Server') USER(*PUBLIC) DTAAUT(*RX)

CHGAUT OBJ('/QIBM/UserData/ICSS/Cert/Server/*') USER(*PUBLIC) DTAAUT(*R)

I got a File Full Error Message when running MAILTOOL.  Are there log files that need to be maintained?

Yes, there are log files used by MAILTOOL that by default are not set up as size of *NOMAX.  We've covered the files and how you should maintain them in our newsletters and we've recently put together an article on this subject which can be seen here.

How do you force a new line or a paragraph using MAILTOOL and the Message Parameter?

Using the \n character sequence will force a new line, so using two of them can also force a new paragraph. This only applys to text that is entered on the message parameter of the MAILTOOL command.

When I send an email to Yahoo, AOL or other accounts the email is rejected. Why is this?

AOL and other ISPs are now requiring reverse DNS entries to accept email. If you're using MAILTOOL and/or MAILTOOL Plus! and you're not using a mail router, this is most likely the issue. If you are running MAILTOOL Plus! you can specify DEBUG(*YES) on the MAILTOOL command. This will create a file named /tmp/mailtoolsmtp.txt that will show the communications trace and any errors you are getting.

If it is a reverse DNS issue, you can fix it by either specifying a mail router on the command or setting up reverse DNS. Here are some informational links on the subject:

AOL Reverse DNS

Reverse DNS Explained

Is it possible to call MAILTOOL from an RPG program?

Yes!  See this article for examples!