Emails issue | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Emails issue

Solaris


Tags
dns, mail

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-19-2013
Junaid Subhani Junaid Subhani is offline
Registered User
 
Join Date: Aug 2012
Last Activity: 9 August 2014, 8:16 AM EDT
Posts: 100
Thanks: 13
Thanked 0 Times in 0 Posts
Wrench Emails issue

Dear all,
I am facing an issue in my data Center environment related to mails being generated by users on my machines.

Let me walk you through the issue one by one.

Each system (100+ servers in my DC) has a user sysmon on it that sends mails to a specific Email ID. The user runs scripts related to system monitoring i.e. scripts monitoring disk space , system health etc.

Example name of 2 systems are mercury0 & mercury1

The scripts work fine and send Emails to the ID given.

The issue arises when the /var/spool/mqueue directory on my MTA Relay host servers starts to increase with Emails being stuck in them.

Those emails are addressed to the system's own users.
Mercury0 is sending an Email to itself using sysmon ID.

Example of two mail outputs found on my MTA Relay host servers are below:

I did did the following on the /var/spool/mqueue directory on one of my MTA Relay host servers:


Code:
sudo cat * | grep sysmon | grep mercury0


Code:
H??To: sysmon@mercury0.domain.com

H??To: sysmon@mercury1.domain.com

How can I make sure that such mails do not pile up in the /var/spool/mqueue directory of my MTA Relay host servers?
Is there a way to make sure such mails being addressed to a systems own ID be forwarded to another Email ID but hte best option would be to simply discard them.


P.S. I have placed the IP address of MTA Host servers in the submit.cf file on all client machines.

Regards

Last edited by Junaid Subhani; 06-19-2013 at 07:43 AM..
Sponsored Links
    #2  
Old 06-19-2013
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 29 August 2014, 5:00 PM EDT
Location: Southern NJ, USA (Nord)
Posts: 4,409
Thanks: 8
Thanked 538 Times in 516 Posts
Are these hosts in /etc/hosts ?
Sponsored Links
    #3  
Old 06-19-2013
MadeInGermany MadeInGermany is offline Forum Advisor  
Registered User
 
Join Date: May 2012
Last Activity: 1 September 2014, 5:32 PM EDT
Location: Simplicity
Posts: 1,852
Thanks: 119
Thanked 536 Times in 485 Posts
You have a problem on the MTA relay hosts.
Put the previous question different:
say host system1 sends mails to your MTA relay,
then on the MTA relay, does getent hosts system1 report its IP address, and without delay.
What does mailq say?
    #4  
Old 06-20-2013
hasan.kamali hasan.kamali is offline
Registered User
 
Join Date: Mar 2008
Last Activity: 25 June 2013, 10:50 AM EDT
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,

I'm Junaid Subhani's team member. Let me further clarify our email architecture for our system email alerts.

All unix/linux machines sendmail client is set to use two MTA relay sendmail servers internally in our network.

Then those two MTA relay sendmail servers forwards all the email to our company's microsoft exchange server (Microsoft servers are managed and administered by a seperate windows team).

Then mircosoft exchange server delivers the system alerts to valid microsoft exchange email IDs, e.g. xyz@waridtel.com.

So basically submit.cf of all the client machines has the IP address of internal network MTA relay sendmail server and MTA sendmail relay server has the IP of Microsoft exchange server for D{MTAHost} in submit.cf.

All the system email alerts configured by us and different application/database team (in their scripts) is properly being delivered.

Now the problem we are facing is this. Along with all the system alerts emails, all of the sendmail client machines are also sending out native OS users system generated emails (to the native user ) as well. And ...... our internal network MTA relay sendmail server obviously also relay them to our domain's microsoft exchange server, which obviously cannot recognize the destination address (e.g. user@server-hostname.waridtel.com) floods our outbound email gateway (sendmail server) with all those unwanted emails and overwhelms the mail queue.

So far, we concluded to use '.forward' option to at least deliver all the emails to proper email address (xyz@waridtel.com) of the respective owner team of the unix/linux system user. That way our corporate outbound sendmail email gateway will not be brought down due to 100,000+ unwanted system users email everyday.

Another option we have read somewhere is to configure /etc/mail/access file on the internal MTA relay sendmail server, which would discard or reject any email addressed to user@server-hostname.warditel.com. But we are not sure about the syntax to be used. Whether we can use wild card options to reject/discard all emails addressed to user@server-hostname.waridtel.com or we have to add lines for each and every user of all the servers.
Sponsored Links
    #5  
Old 06-20-2013
MadeInGermany MadeInGermany is offline Forum Advisor  
Registered User
 
Join Date: May 2012
Last Activity: 1 September 2014, 5:32 PM EDT
Location: Simplicity
Posts: 1,852
Thanks: 119
Thanked 536 Times in 485 Posts
Can you use user@warditel.com sender addresses only?
It might be much work to configure all clients accordingly.
But you could do a sender address rewriting or masquerading on your MTA hosts.
Sponsored Links
    #6  
Old 06-20-2013
hasan.kamali hasan.kamali is offline
Registered User
 
Join Date: Mar 2008
Last Activity: 25 June 2013, 10:50 AM EDT
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Can you elaborate further on sender address rewriting/masquerading?

Moreover, even if system does send out local system users system generated emails we don't care if they are rejected or discarded.
Sponsored Links
    #7  
Old 06-20-2013
MadeInGermany MadeInGermany is offline Forum Advisor  
Registered User
 
Join Date: May 2012
Last Activity: 1 September 2014, 5:32 PM EDT
Location: Simplicity
Posts: 1,852
Thanks: 119
Thanked 536 Times in 485 Posts
The following is for the postfix MTA, /etc/postfix/main.cf

Code:
mydomain = warditel.com
myorigin = $mydomain
masquerade_domains = warditel.com
remote_header_rewrite_domain = warditel.com

Other MTA like sendmail have their own config stuff.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
send emails karlochacon UNIX for Dummies Questions & Answers 3 06-10-2010 05:08 PM
Emails on HP-UX Phuti UNIX for Dummies Questions & Answers 0 03-26-2008 05:22 AM
duplicate emails mcraul UNIX for Dummies Questions & Answers 1 03-07-2008 01:11 PM
Creating emails ferret495 UNIX for Dummies Questions & Answers 4 02-05-2008 12:13 AM
Unix emails in Windows dti650 UNIX for Advanced & Expert Users 3 02-11-2005 08:07 AM



All times are GMT -4. The time now is 12:16 AM.