Re: Cannot mail from DMZ to Intranet using mail command

From: Mr. Johan Andersson (johan_at_solace.mh.se)
Date: 03/24/04


Date: Wed, 24 Mar 2004 08:33:46 +0100


On Wed, 23 Mar 2004, Shyamsunder Haldar wrote:

> Hi,
>
> I am running Solaris 7 on one of my servers on the DMZ, and my Mail
> server is MS Exchange.
> I am not able to send mail from my DMZ to the Intranet.
> The SMTP ports have been opened on the firewall for the Solaris Server
> to talk to the Mail Server on the Intranet.
> The DNS ports have also been opened for the DMZ servers to talk ro the
> DNS Servers on the Intranet.

kk

> When I use the mail command, I am not able to receive the mails...
> $ echo "Test Message" | mailx -s "Test Subject" web.ops@geasn.ge.com
>
> When I snoop for the above command, I get...

<snip>

> amermsx.med.ge.com -> tlt01_hme0 SMTP R port=36519
> 250-USWAUMSXBHMEDGE.

<snip>

>
> But, when I use telnet to connect to the SMTP port and use the SMTP
> commands, I am able to send mails.
>
> $ telnet amermsx.med.ge.com smtp
> 250-uswaumsxb3medge.med.ge.com Hello [uswaucs03]

<snip>

> I am also attaching the snoop output for the above Telnet Session...

<snip>

> amermsx.med.ge.com -> tlt01_hme0 SMTP R port=36556
> 250-uswaumsxb3medge.

<snip>

> When I run the mail command to check for mails, I get the following...
>
> From MAILER-DAEMON Mon Mar 22 17:28:38 2004
> Date: Mon, 22 Mar 2004 17:28:38 +1100 (EST)
> From: Mail Delivery Subsystem <MAILER-DAEMON>
> Message-Id: <200403220628.i2M6Oq902469@tlt01_hme0.med.ge.com>
> To: shaldar
> Subject: Warning: could not send message for past 4 hours
> Content-Length: 1673

<snip>

>
> I am not sure where the problem is nor been able to find any solution
> on this.
> Any help on this would be greatly appreciated.
>
> Thanks in advance.
>
> Regards
> Shyam.
>

As you can see from the logs, different servers seems to respond...
Check you config files.

In your telnet example, your answer comes from uswaumsxb3medge
in your mailx example from USWAUMSXBHMEDGE

I dont know what makes the difference, but I would start there.

/Johan A



Relevant Pages