Dear friends, i am requesting assistance for
configuring the virtusertable feature in sendmail
I am using sendmail-8.11.0-8.i386.rpm, form redhat
linux 7.0 and sendmail-cf-8.11.0-9.i386.rpm which is downloaded from the
net.
My requirement is like this.
For example,
www.integramicro.com is the main
server of my company.
we have a linux server at each office. All the
emplyees have mail accounts at the main server www.integramicro.com .
If an employee abc send mail to other employee
xyz, who have accounts at www.integramicro.com, then if abc and xyz
are connected same local server then mail should be delivered locally,
otherwise it should send to www.integramicro.com.
For the solution i am approching in the following
1. using sendmail-8.11.0-8.i386.rpm which is
supplied with redhat linux 7.0
2. created text file /etc/mail/virtusertable
with the mappings like the following
[EMAIL PROTECTED] abc [EMAIL PROTECTED] xyz where abc and xyz are the local names of
usersmain server
xxx.com. after this i created virtusertable.db
using makemap hash /etc/mail/virtusertable <
/etc/mail/virtusertable
3. entered the domain name integramicro.com in
/etc/mail/local-host-names file
4. executed the m4 command
m4 /etc/mail/sendmail.mc
> /etc/sendmail.cf
Now if i sendmail to mailto:[EMAIL PROTECTED]
1. If the server( local server ) is connected to
internet then its delivering the mail locally to the user abc.
if the server is not connected to the net the
message is entering in to mailque. when ever the local server connected to the
net then only its delivering that queued up message locally.
But what i need is even if the local
server not connected internet it should deliver local mails( which are
mapped from virtuser table).
if trace that using sendmail -bt with 3,0 [EMAIL PROTECTED] the output is
like this.
bash# sendmail
-bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter <ruleset> <address> > 3,0 [EMAIL PROTECTED]
canonify input: xyz
@ integramicro . com
Canonify2 input: xyz < @ integramicro . com > rediff.com: Name server timeout Canonify2 returns: xyz < @ integramicro . com . > canonify returns: xyz < @ integramicro . com . > == Ruleset 3,0 (3) status 75 parse input: xyz < @ integramicro . com . > Parse0 input: xyz < @ integramicro . com . > Parse0 returns: xyz < @ integramicro . com . > ParseLocal input: xyz < @ integramicro . com . > ParseLocal returns: xyz < @ integramicro . com . > Parse1 input: xyz < @ integramicro . com . > Recurse input: xyz canonify input: xyz
Canonify2 input:
xyz
Canonify2 returns: xyz canonify returns: xyz parse input: xyz Parse0 input: xyz Parse0 returns: xyz ParseLocal input: xyz ParseLocal returns: xyz Parse1 input: xyz Parse1 returns: $# local $: xyz parse returns: $# local $: xyz Recurse returns: $# local $: xyz Parse1 returns: $# local $: xyz parse returns: $# local $: xyz > 2. I am entering integramicro.com
in etc/mail/local-host-names. With this one if try to send mail to some remote
user of integramicro.com( the person in othere office who is connceted to some
othere local server ) its giving the error User unknown.
i did no modefications to any other file i just
installed and did above said modefications only.
plz tell me how can i solve this
problem.
thanks
Rama koti Reddy. K
|