We help IT Professionals succeed at work.

Sending email outbound using AS400

j_powers asked
Last Modified: 2013-12-06
So we have an Exchange 2003 solution installed. Works very well. We also have an AS400 that emails out Invoices, other stuff. I can connect the AS400 to exchange, and it works well if I need to send something internally. However if I try to send something to an external email address, it sends, but my external address does not recieve, nor do I get an Admin message.

I talked to my AS400 provider about it, they say it's an exchange issue, which I agree. However after running through all the settings, I am not seeing an answer on how to fix the problem. Maybe I am missing it.

Anyway, does anyone know what needs to be done to allow the AS400 to send email to Exchange so it can be sent out?

Watch Question


Please prompt the CHGSMTPA command on your AS/400 and review both the <help> and the setting for the FIREWALL() parameter. This setting should be fully reviewed in addition to the MAILROUTER() parameter, but I would expect that one to be correct already. I'd look to see if FIREWALL(*YES) is set.

If the FIREWALL() setting is correct for you, then the first place to look on Exchange would be its 'relay' settings/restrictions.

After that...?



Yes, both the mail router and the Firewall are set properly. Problem is I believe our interface program overrides those settings with their own, and those are also set correctly.

If we leave the mail server off and let the AS/400 send mail, it works just fine. But we really want to route this stuff through Exchange.

Relay settings?
Unlock this solution and get a sample of our free trial.
(No credit card required)


"Open Relay" is the key word I needed. I went into Exchange System Manager and set an Open Relay for my AS400. It then sent out emails internally and externally. Best part is when the email was bad, I got a SysAdmin message in my email box.


Glad it was that easy. Now, make sure you log that info along with the CHGSMTPA attributes somewhere! Sooner or later, an update to Exchange or i5/OS or TCP/IP on either of those or your network will happen and e-mail will inexplicably stop. CYA now and keep it handy.



Like I said, our interface program overwrites those settings. But I will keep an eye on it.


Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.