Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[ScreenOS] Unexpected error from e-mail server (state=2): 501 : domain literals not allowed

0

0

Article ID: KB28898 KB Last Updated: 19 Mar 2014Version: 1.0
Summary:

An SMTP server is rejecting emails with the following error message because a host name and domain have not been configured for this device.

Unexpected error from e-mail server (state=2): 501

This article provides a procedure for configuring them.

Symptoms:

A user has configured email alerts to be sent from a firewall to an SMTP server. However, the SMTP server is rejecting those emails and logging the following error in the event log of the firewall:

Unexpected error from e-mail server (state=2): 501 <netscreen_admin@[x.x.x.x]>: domain literals not allowed.
Cause:

By default, if a hostname and domain name have not been configured on the firewall, the firewall will send out an email alert from "hostname@x.x.x.x", where x.x.x.x is IP address of the untrust interface connected to the Internet. However, if the SMTP server is configured to block domain literals (x.x.x.x), the following error message will be generated in the event log of the firewall :

Unexpected error from e-mail server (state=2): 501 <netscreen_admin@[x.x.x.x]>: domain literals not allowed

Solution:
Configure a host name and domain name for your security device. The domain setting is used when email alert is configured. Email alerts will be sent out from the firewall with "from:hostname@domain".

Hostname is the parameter configured by the command set hostname and domain is the parameter configured by the command set domain:

set hostname admin
set domain juniper.net

In this example, alerts will be sent out from the firewall with "from: admin@juniper.net".


Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search