How to specify second mail relay in Solaris? | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

How to specify second mail relay in Solaris?

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 12-05-2012
nypreH nypreH is offline
Registered User
 
Join Date: Jul 2008
Last Activity: 24 January 2014, 1:36 AM EST
Posts: 49
Thanks: 5
Thanked 1 Time in 1 Post
How to specify second mail relay in Solaris?

Dears,

I've configured Solaris (10) server to send mails to corporate mailboxes.
Now I need to specify second relay, so if mailx will see that mail xxx@aaa.com it will send to 111.111.111.111 (aaa.com) and if it will see that mail belongs to bbb.com - xxx@bbb.com it will send to another IP (222.222.222.222).

Described in examples for easier understanding what I need

Can anyone let me know how I can do that?

Thanks in advance.
Sponsored Links
    #2  
Old 12-07-2012
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 8 July 2014, 12:19 PM EDT
Location: Southern NJ, USA (Nord)
Posts: 4,378
Thanks: 8
Thanked 535 Times in 514 Posts
Are you partitioning whole email host of address or just specific addresses? It is probably all done with sendmail rewrite rules, but that is a deep swamp with a thick Riley book! One article says this is a good time to get off sendmail! email - Configuring sendmail as a multi-domain relay server - Server Fault
Sponsored Links
    #3  
Old 01-16-2013
nypreH nypreH is offline
Registered User
 
Join Date: Jul 2008
Last Activity: 24 January 2014, 1:36 AM EST
Posts: 49
Thanks: 5
Thanked 1 Time in 1 Post
Quote:
Originally Posted by DGPickett View Post
Are you partitioning whole email host of address or just specific addresses? It is probably all done with sendmail rewrite rules, but that is a deep swamp with a thick Riley book! One article says this is a good time to get off sendmail! email - Configuring sendmail as a multi-domain relay server - Server Fault
Hi, I tried what suggested in this link, but problem still exists.

This is what I have:


Code:
-bash-3.00# cat /etc/mail/relay-domains
mydomain.az
sms.mydomain.az
-bash-3.00#

and


Code:
-bash-3.00# cat /etc/mail/mailertable
mydomain.az      relay:mailboxes.azerfon.az
sms.mydomain.az        relay:mailboxes.sms.narmobile.az
-bash-3.00#

I am not sure that mailx uses this info, since when I changing MTAHost in /etc/mail/submit.cf from mydomain.az to sms.mydomain.az it sends mail using different IP.

Any ideas?
    #4  
Old 01-18-2013
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 8 July 2014, 12:19 PM EDT
Location: Southern NJ, USA (Nord)
Posts: 4,378
Thanks: 8
Thanked 535 Times in 514 Posts
Technically, mailx -s a MUA that usually uses sendmail as a MTA. Clients could just connect to port 25 and do their own smtp/esmtp -- it's easy. sendmail Tutorial: MUAs, MTAs, and MDAs
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
Free Open Mail Relay Action What is on Your Mind? 1 12-05-2010 01:30 PM
Configure sendmail on Solaris 10 to relay al mail maxranzy Solaris 2 11-30-2010 08:50 AM
How to relay mail to mail server from Unix ? sourabhsharma UNIX for Advanced & Expert Users 3 07-23-2010 03:27 AM
configure solaris 10 mail to relay email alerts from SAN switch wibidee Solaris 0 01-15-2009 11:09 AM



All times are GMT -4. The time now is 02:15 AM.