Unix/Linux Go Back    


UNIX for Dummies Questions & Answers This forum is closed for new posts. Please post beginner questions to learn unix and learn linux in this forum UNIX for Beginners Questions & Answers

How to specify second mail relay in Solaris?

UNIX for Dummies Questions & Answers


 
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 12-05-2012
nypreH nypreH is offline
Registered User
 
Join Date: Jul 2008
Last Activity: 1 July 2016, 6:52 AM EDT
Posts: 67
Thanks: 9
Thanked 2 Times in 2 Posts
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 Linux

Can anyone let me know how I can do that?

Thanks in advance.
Sponsored Links
    #2  
Old Unix and Linux 12-07-2012
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 1 February 2016, 3:35 PM EST
Location: Southern NJ, USA (Nord)
Posts: 4,673
Thanks: 8
Thanked 587 Times in 560 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 Unix and Linux 01-16-2013
nypreH nypreH is offline
Registered User
 
Join Date: Jul 2008
Last Activity: 1 July 2016, 6:52 AM EDT
Posts: 67
Thanks: 9
Thanked 2 Times in 2 Posts
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? Linux
    #4  
Old Unix and Linux 01-18-2013
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 1 February 2016, 3:35 PM EST
Location: Southern NJ, USA (Nord)
Posts: 4,673
Thanks: 8
Thanked 587 Times in 560 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
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux 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
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 09:53 PM.