Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forwarding SMTP to two Mailforwarders

Status
Not open for further replies.

svkadmin

Technical User
Feb 20, 2005
8
SE
Hi AIX or Sendmail Professionals !!!

I have an AIX server with sendmail AIX5.1/8.11.6p2/8.11 that needs to forward all emails to two mailforwarders with the same priority (Not fail-on-fault).
So it should send to both mailservers with some kind of "round-robin".

Is there a way to solve this behaviour inside sendmail without using a local DNS ??

The only thing my DNS needs to do is to solve the forwarding to the servers (if i need one). Thats all, nothing more !!

If i need to use DNS how should i configure the DNS files ??

/etc/named.conf
/usr/local/domain/named.abc.data
/usr/local/domain/named.abc.local
/usr/local/domain/named.abc.rev
/usr/local/domain/named.ca
/etc/resolv.conf

what entries should i use in sendmail ???

I appreciate any tip from you

//Best regards Martin


 
1) Create a "CNAME" record within your DNS and reference both of your mail servers.

ie
mail_relay.mydomain.com. IN CNAME mail1.mydomain.com.
mail_relay.mydomain.com. IN CNAME mail2.mydomain.com.

"mail_relay.mydomain.com" when configured will resolve to either "mail1 or mail2" in a round-robin fashion.

2) Edit your "sendmail.cf" file and look for a "DS" reference. By default this is not configured. This will allow you to relay your mail to an alternate mail system.

DS mail_relay.mydomain.com

3) restart sendmail

Any messages sent will either go to mail1 or mail2.

NOTE: Make sure that you allow this server to relay through both of your mail servers.


Michael


WarpZero Technologies
 
Thank you very much Warp !!

It works very good now and the round robin is working.


// Best regards MArtin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top