Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers


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 !!

Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 12-05-2012
Registered User
 
Join Date: Jul 2008
Posts: 44
Thanks: 5
Thanked 0 Times in 0 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

Can anyone let me know how I can do that?

Thanks in advance.
Sponsored Links
    #2  
Old 12-07-2012
Registered User
 
Join Date: Oct 2010
Location: Southern NJ, USA (Nord)
Posts: 3,786
Thanks: 8
Thanked 468 Times in 448 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
Registered User
 
Join Date: Jul 2008
Posts: 44
Thanks: 5
Thanked 0 Times in 0 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?
    #4  
Old 01-18-2013
Registered User
 
Join Date: Oct 2010
Location: Southern NJ, USA (Nord)
Posts: 3,786
Thanks: 8
Thanked 468 Times in 448 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
Reply

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's 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 09:10 PM.