Re: [foxboro] Send mail from Solaris through firewall

  • From: Michael Toecker <michael.toecker@xxxxxxxxx>
  • To: foxboro@xxxxxxxxxxxxx
  • Date: Wed, 30 Mar 2016 16:20:56 -0400

The new trend in firewall security is to block traffic both inbound and
outbound.  Request that the firewall owner open port 25 from your solaris
box to the SMTP relay.  They may ask what applicaiton you are running, it
would be 'SMTP'
Try testing on the solaris box by attempting to telnet to the SMTP server
on port 25, give it a HELO.

The other thing might be that they've updated their mail server to require
encryption prior to sending.  I don't think your version of sendmail has
the capability to do SSL/TLS SMTP.

Mike

On Wed, Mar 30, 2016 at 3:34 AM, <terry.lloyd@xxxxxxxxxxxxxx> wrote:

Hello Duc,
A number of years ago (doesn't time fly) I had a similar problem and came
up with this solution.  Might not help, but worth a try.
Here's a section of the sendmail.cf file that I altered...

# my official hostname
#Dj$w.$m
# Hashed out line above and replaced with line below
# Mysteriously stopped working when the Exchange Server was changed
# the dot was being appended to the name e.g. 01AW01. and was
# confusing the server.  Though it used to work before.
# $m=domain name and $w=hostname, just need to use hostname.
# Terry Lloyd Aug 2005
Dj$w


Regards
     Terry
Terry Lloyd, Systems Engineer
-------------------------------------------------------------
Building W601,  Mail BA111C     Voice:     +44 (0)1446 723501
Dow Corning Ltd                        Fax:       +44 (0)1446 723674
Cardiff Road                             E-Mail:
terry.lloyd@xxxxxxxxxxxxxx
Barry
Vale of Glamorgan,  CF63 2YL
-------------------------------------------------------------
Dow Corning Limited is a limited liability company registered in England
and Wales, registered number: 00486170, registered office address:  Cardiff
Road, Barry CF63 2YL, UK

This e-mail transmission and any files that accompany it may contain
sensitive information belonging to the sender. The information is intended
only for the use of the individual or entity named. If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution, or the taking of any action in reliance on the contents of
this information is strictly prohibited. Dow Corning's practice statement
for digitally signed messages may be found at www.dowcorning.com/dcps. If
you have received this e-mail transmission in error, please immediately
notify the Security Administrator.

-----Original Message-----
From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx]
On Behalf Of Duc M Do
Sent: 29 March 2016 22:36
To: foxboro@xxxxxxxxxxxxx
Subject: [foxboro] Send mail from Solaris through firewall

​List,
I've spent a good part of three days banging my head against the
(fire)wall on this issue. Please help me before the blood soaks everything.

The situation: AW-D running Solaris 2.5.1 and sendmail 8.6, you know the
ancient version on the stock Sun boxes. I configured /etc/mail/sendmail.cf
years ago to send mail from this Sun box to the corporate e-mail and it's
been working all these years. Recently, we moved all these Sun boxes to
behind a fortified firewall, so fortified that even with a known relay mail
server, I have not been able to send mail to my desktop.

Previously, these are the only edits in my sendmail.cf (with
sendmail.cf.orig being the plain vanilla, stock sendmail.cf that came
with the software install), and it worked splendidly to send system status
reports to my corporate e-mail account:

04AW01# cd /etc/mail
04AW01# diff sendmail.cf.orig sendmail.cf
21c21
< Dj$w.$m
---
Dj04AW01.dowcorning.net
27,28c27,28
< DRmailhost
< CRmailhost
---
DR
CR

I searched the freelists.org archive and found an excellent write up by
Sven Audenaert (thanks, Sven!) from Sept 2006 (
//www.freelists.org/post/foxboro/foxboro-Sendmail-error,2).
Following Sven's procedure, I added the mail relay in the hosts file, also
calling it "mailhost",  and edited sendmail.cf accordingly. But that's
where my progress stopped.

Here's what I try to accomplish:

  04AW01   --->   mailhost   --->   smtp.dowcorning.net
originating     relay server       SMTP server destination

My new sendmail.cf (with sendmail.cf.orig being the plain vanilla, stock
sendmail.cf that came with the software install):

04AW01# diff sendmail.cf.orig sendmail.cf
21c21
< Dj$w.$m
---
Dj04AW01.dowcorning.net
24c24
< DMether
---
DMmailhost

The most relevant part of sendmail.cf:

# my official hostname
Dj04AW01.dowcorning.net

# major relay mailer
DMmailhost

# major relay host
DRmailhost
CRmailhost

Yes, I stopped and started the sendmail daemon as needed after editing
sendmail.cf

When I try to run the test as in Sven's procedure, sendmail just hangs and
times out after 3 minutes or so.


Question: How do I specify the relay host in sendmail.cf to allow me to
send mail through it to the corporate mail server?

Thanks in advance for all the help. And I really need all the help at this
point.

Duc



_________________________________________________________________________
This mailing list is neither sponsored nor endorsed by Schneider Electric
(formerly The Foxboro Company).  Use the info you obtain here at your own
risks.  See the disclaimer at www.thecassandraproject.org/disclaimer.html

foxboro mailing list:               //www.freelists.org/list/foxboro
to subscribe:           mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:        mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave




_________________________________________________________________________
This mailing list is neither sponsored nor endorsed by Schneider Electric
(formerly The Foxboro Company).  Use the info you obtain here at your own
risks.  See the disclaimer at www.thecassandraproject.org/disclaimer.html

foxboro mailing list:               //www.freelists.org/list/foxboro
to subscribe:           mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:        mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave





-- 

Michael Toecker

 
 
_________________________________________________________________________
This mailing list is neither sponsored nor endorsed by Schneider Electric
(formerly The Foxboro Company).  Use the info you obtain here at your own
risks.  See the disclaimer at www.thecassandraproject.org/disclaimer.html
 
foxboro mailing list:               //www.freelists.org/list/foxboro
to subscribe:           mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:        mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 

Other related posts: