1827876 Members
1355 Online
109969 Solutions
New Discussion

sendmail relay local

 
kcpant
Trusted Contributor

sendmail relay local

Hi all,

I'm using sendmail with MailScanner+clamav as mail server. All things working fine, but one thing, my local mails also getting routed through Smart Relay host. I know that if I 'm using a Smart relay, all mails not destined for any of class w names, will be routed through it. but , for a practical use, I need a solution for it.

In detail, we have purchased some mail accounts from our ISP, on a virtual domain. we use SMTP server of this ISP as Smart relay. mails from outside world goto the ISP , from where we fetch them on sendmail server by using fetchmail.at my end, I've also made a virtual domain of the same name for which we have purchased mail accounts.Now, if I add this virtual domain's name in /etc/mail/local-host-names file, mails sent to users on virtual domain are treated locally. this is fine, as long as my all users of that virtual domain are inside my own server and inside my LAN. But ,the practical problem is, some users having an account from my ISP are outside my LAN. they use their mail account of this virtual domain to access mails from different locations. now, when anybody from my lan sends a mail to these outside users, my mail server (sendmail) gives error "User Unknown".It is obvious because we don't have any mail account for that user in this server. instead, the accounts are handeled by ISP, as stated above.

So, can anybody tell me a way to solve this problem, means, on the same virtual domain, if mails send to local users, should be treated as local, and if the user is not found in user database, the mail should be relayed to smart host as other outbound mails....

Please suggest me any way to tackle this..

thanks
PreSales Specialist
2 REPLIES 2
RAC_1
Honored Contributor

Re: sendmail relay local

KCPANT,

I could not get the exact picture of your problem. But would aliases file help you??

For the users having problem, define then in aliases file. Say user1@xyz.com will be defined as
user1@xyz.com : user1@localdomain.com

Hope this helps.

Anil
There is no substitute to HARDWORK
kcpant
Trusted Contributor

Re: sendmail relay local

closing thread, found a patch for sendmail
PreSales Specialist