Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 10-14-2004, 12:32 AM   #1
LQ Newbie
Registered: Oct 2004
Location: india
Posts: 3

Rep: Reputation: 0
Angry sendmail local no relay

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 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....

In other way, anybody can tell me to alias non local users to local user account, than I will change my domain name ( delete virtual domain) and alias my virtual domain accounts to local accounts.

Please suggest me any way to tackle this..

Old 11-27-2004, 09:56 AM   #2
Registered: Nov 2003
Distribution: Mandrake 10.1/Solaris 10 (sparc)
Posts: 96

Rep: Reputation: 16

when anybody from my lan sends a mail to these outside users, my mail server (sendmail) gives error "User Unknown"
You need to add an entry into your /etc/mail/virtusertable file.

On my local box, mail I send comes from my ISP <>, but non-local (users don't have an account on the server) gets sent to my ISP's mail server.

This is what I had to enter into my /etc/mail/virtusertable


That should fix your "user unknown" problems.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
local mail relay problem in Sendmail RajaRC Linux - Networking 3 09-15-2004 07:23 AM
relay mail to sendmail relay server??? lemay_jeff Linux - Newbie 0 07-06-2004 04:54 PM
sendmail relay atomicx Linux - General 2 01-04-2004 01:46 AM
sendmail compile and config for local relay heathpitts Linux - Software 0 06-23-2003 02:01 PM
Sendmail relay arenasa Linux - Networking 3 11-14-2000 07:38 PM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 11:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration