LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-03-2009, 07:35 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Rep: Reputation: 51
/etc/mail/virtusertable Issue??


I have sendmail setup on Fedora 9 Machine. I am able to send mail from one user to another without any issue.What I am facing issue is with virtusertable.

I edited the file /etc/mail/virtusertable as:

Code:
finance@intinfra.com   itconsultant
@intinfra.com           itconsultant
I ran #make -C /etc/mail
#service sendmail restart

Then I added this line under /etc/aliases:

itconsultant: <tab> azit

Azit is a user existing in the system.

Tried running newaliases and restarted the server.
And Tried sending mail through a user "sender" to recepient as:
#echo "Hello"| mail -v -s "I need a help" finance@intinfra.com

Checked with user "azit" mailbox but no thing is there.

Last edited by your_shadow03; 10-03-2009 at 11:03 AM.
 
Old 10-03-2009, 10:58 AM   #2
Tux-Slack
Member
 
Registered: Nov 2006
Location: Slovenia
Distribution: Slackware 13.37
Posts: 511

Rep: Reputation: 37
Did you run newaliases after editing /etc/aliases?
And did you add/uncomment line:
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')dnl
in sendmail.mc?

Last edited by Tux-Slack; 10-03-2009 at 11:01 AM.
 
Old 10-03-2009, 11:00 AM   #3
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Yes..I ran that.
 
Old 10-03-2009, 11:02 AM   #4
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Does

#makemap hash /etc/mail/virtusertable.db < /etc/mail/virtusertable
and
#cd /etc/mail
#make

has same effect?
 
Old 10-03-2009, 11:04 AM   #5
Tux-Slack
Member
 
Registered: Nov 2006
Location: Slovenia
Distribution: Slackware 13.37
Posts: 511

Rep: Reputation: 37
No, not really actually, if you don't put it in the sendmail.mc, it doesn't matter how much you makemap hash the file, the daemon will not read it untill the line is in the sendmail.mc and rebuilt.
 
Old 10-03-2009, 11:14 AM   #6
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
I have been trying from couple of hours with virtusertable.

I did checked with /etc/mail/sendmail.mc
and found the entry is there for:

Code:
FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable.db')dnl
And has followed normal steps of making entry in /etc/mail/virtusertable as:

finance@intinfra.com itconsultant

#cd /etc/mail
#make

Then , Edited /etc/mail/access

itconsultant azit

Ran :

newaliases
service sendmail restart

am I missing anything?
Just was in Doubt if virtuser act for local domain or for different Domain. If thats not the fact then why its not working.
/var/log/maillog dont too say anything other than Message Received..!!

I will appreciate if you help me setting up for the same.
Or you can send me steps by trying out in your own Linux Machine.

Last edited by your_shadow03; 10-03-2009 at 11:20 AM.
 
Old 10-03-2009, 11:20 AM   #7
Tux-Slack
Member
 
Registered: Nov 2006
Location: Slovenia
Distribution: Slackware 13.37
Posts: 511

Rep: Reputation: 37
Then , Edited /etc/mail/access
Erm...why did you edit this line?
In your first post you mentioned the right procedure, edit /etc/aliases, add:
alias: _tab_ user
save and run newaliases. And then it should work.
But one thing, why do you transfer your "finance" mail address over to itconsultant which is an alias for some user? Why not transfer it over directly to the user? I'm not sure that virtusertable works for aliases. Or maybe add there:
finance@intinfra.org itconsultant@intinfra.org

And another thing, virtuser table is used for different domains, say that you have domain1.com and domain2.com and you want mail info@domain1.com be send to user A and mail sent to info@domaion2.com to user B, then you use virtusertable.
But if you use one domain only, then simply add another line in aliases like:
finance: _tab_ itconsultant
or
finance: _tab_ user
o
 
Old 10-03-2009, 11:24 AM   #8
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
I did tried it first time but it dint seem to work.
let me ignore the /etc/mail/access and make it directly.
Just Gimme a Minute.
 
Old 10-03-2009, 11:30 AM   #9
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
All I tried is this time:

File: /etc/mail/virtusertable
Code:
finance@intinfra.com         <tab>  azit
File: /etc/mail/access
Code:
#itconsultant <tab>  azit
#newaliases --<<< for /etc/aliases

#cd /etc/mail
#make --<< For Virtusertable.db

#service sendmail restart

Tried out sending mail from user machine "sender" as:
$echo "hello" | mail -v -s "I need help" finance@intinfra.com

No...!!!
[ajeet ~]$ mail
no mail...
 
Old 10-03-2009, 12:40 PM   #10
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Yeah !! Thats Done.
I followed up with this link : http://www.linuxquestions.org/questi...pients-419158/

Here is the working Virtusertable Configuration:


File:/etc/mail/virtusertable

Code:
finance@intinfra.com   finance
#cd /etc/mail
#makemap hash virtusertable.db < virtusertable
#service sendmail restart

File: /etc/mail/access

Code:
finance:       azit,abhi,receiver
#newaliases
#service sendmail restart

Try out sending mail to finance@groupinfra.com
And Found mail to all the three Users:

DOne !!! thanks Tux.
 
Old 10-03-2009, 12:46 PM   #11
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
I have too added every EPISODE @ http://linuxhunt.blogspot.com

Hopeit would be helpful for Sendmail Freakers!!!

Last edited by your_shadow03; 10-03-2009 at 12:52 PM.
 
Old 10-04-2009, 07:07 AM   #12
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Hey..Tux..

I think I may be doing something wrong.
All I made earlier entry and it worked !! But to my surprise thats taking from /etc/aliases and nothing from /etc/mail/virtusertable I guess.

When I am sending mail as:
#echo "hello" | mail -v -s "hi" finance
its working becoz /etc/aliases is coming into picture.
But virtusertable still remains missing at this contxt.

anyone who can help me knowing how virtusertable could be configured properly.
Totally Frustrated !!
Help !!
 
Old 10-04-2009, 02:35 PM   #13
Tux-Slack
Member
 
Registered: Nov 2006
Location: Slovenia
Distribution: Slackware 13.37
Posts: 511

Rep: Reputation: 37
I already gave you that answer why not.
You need more domains configured before it will "listen" to virtusertable.
http://patriot.net/~scoile/isp-redha.../virtusertable
 
  


Reply


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
Sendmail issue (did not issue MAIL/EXPNVRFY/ETRN ...) Blackout_08 Linux - Server 0 08-08-2007 02:10 PM
SpamAssassin not processesing e-mail w/ remote addresses in virtusertable RedHatDude Linux - Server 1 11-01-2006 09:54 PM
Sendmail /etc/mail/virtusertable not created katana Linux - General 4 03-01-2004 01:19 PM
Warnquota and virtusertable Manuel-H Linux - General 0 04-25-2003 08:43 AM
Sendmail /etc/mail/virtusertable headache! katana Solaris / OpenSolaris 4 12-29-2002 01:21 AM


All times are GMT -5. The time now is 08:03 PM.

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