Operating System - Linux
1827891 Members
1723 Online
109969 Solutions
New Discussion

Re: checking virtusertable before the domain name in sendmail

 
Sachin_48
Occasional Advisor

checking virtusertable before the domain name in sendmail

Hi all

I want a new think I want to check my /etc/mail/virtusertable entries to be checked first for relaying any mail before the /etc/mail/local-hosts-names file.

Can someone help me.

Thanks
Sachin
3 REPLIES 3
Vitaly Karasik_1
Honored Contributor

Re: checking virtusertable before the domain name in sendmail

may I ask you what is you target configuration? As far as I understand, order is not important here.
Sachin_48
Occasional Advisor

Re: checking virtusertable before the domain name in sendmail

infect what i want is let say I have the domain abc.com and in my local-hosts-names file also I have only this entry.
Now if I will send a mail to A@xyz.com then it will go the smart host.
while I want to relay this to one local user using virtusertable file.

havin entry in virtusertable.
A@xyz.com A //local user

And that can not be done if it will check local-hosts file first.


So if any other method is there pls tell me

sachin
Steven E. Protter
Exalted Contributor

Re: checking virtusertable before the domain name in sendmail

Shalom Sachin,

This is still difficult for me to understand.

local-host-names file defines what domains will be processed locally on your system.

In combination with a DS directive in sendmail.cf that should in theory permit you to forward all domains except those listed in local-host-names file to the relay server defined as smsrt host(DS).

The virtusertables file will define the valid users in the domains listed in local-host-names

That is how it should work.

Sendmail is a tricky beast and you may find things are easier to control with a sendmail.mc macro approach.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com