Sendmail Server + Send mail through Multiple SMTP Server + Multiple Domain...

Sendmail Server + Send mail through Multiple SMTP Server + Multiple Domain : Part 7

by -
0 3220

in sendmail.mc dnl on smarthost  & under this line…

FEATURE(delay_checks)dnl   <add below line….
FEATURE(`smarttable’)dnl
Note: smarttable.m4  should be in   /usr/share/sendmail-cf/feature/


#vi /etc/mail/smarttable

@domain1.com       mail.domain1.com
@domain2.com       mail.domain2.com
@domain3.com       mail.domain3.com


#vi /etc/mail/client-info

AuthInfo:mail.domain1.com “U:root” “I:vikas@domain1.com”    “P:******”
AuthInfo:mail.domain2.com “U:root” “I:user1@domain2.com”    “P:******”
AuthInfo:mail.domain3.com “U:root” “I:user3@domain3.com”   “P:******”


#vi /etc/mail/virtusertable

if same user name in all domains located in this file write email id and in front write local user like this name whos located here

vikas@domain1.com    vikas
user1@domain2.com   usser1
user3@domain3.com    user3


#vi /etc/mail/access
192.168.1       relay


#vi /etc/mail/local-host-names

domain1.com
domain2.com
domain3.com


 

#cd /etc/mail
# make
#makemap hash client-info <client-info# m4 sendmail.mc > sendmail.cf

# service sendmail restart

 

 

Note:  Configure DNS for all domains, or make their entry in /etc/hosts. All Domains should be resolvable  by it’s own IP address

 

CEO, KV IT-Solutions Pvt. Ltd. | vikas@kvit.in | 9810028374|
Linux Professional and an Industrial Trainer | 20 + years Experience in IT Industry

” We are born free, No Gate and Windows can snatch our freedom “

Download PDF

SIMILAR ARTICLES

0 1123

0 789

NO COMMENTS

Leave a Reply

Required Captcha *