LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-08-2009, 05:27 AM   #1
60s TV Batman
Member
 
Registered: Oct 2004
Location: London (UK)
Distribution: Ubuntu 12.04
Posts: 60

Rep: Reputation: 17
[sendmail] virtusertable not being used or not working


Hello all

I've had a problem with virtual email addresses on one of my servers. Basically, the email address enquire@asureimage.com translates to the account enquireasi (which is /sbin/nologin).

I can send email from enquire@asureimage.com, but not receive email to it. I can, however, receive email to enquireasi@asureimage.com. This suggests virtusertable isn't being read or used.

Everything was fine until I added a new email address to virtusertable this morning, ran it through m4, and restarted sendmail.

I haven't upgraded sendmail, or made any other changes to the configuration. I only restarted it because of the change to virtusertable.

Here is a copy of virtusertable: Removed

Here is a copy of sendmail.mc: Removed

Here is the reference to virtusertable in sendmail.mc...
FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable.db')dnl

This is the correct address, as evidenced by entering this at the command prompt: ll /etc/mail/virtusertable.db

I restored the old virtusertable, and the problem didn't go away. After much searching, trial and error, I'm at a loss to know why I'm getting mail bounce back with this message:
=====================================================
SMTP error from remote mail server after RCPT TO:<enquire@asureimage.com>:
host asureimage.com [89.16.172.96]: 550 5.1.1 <enquire@asureimage.com>... User unknown
=====================================================

/var/log/maillog show this...
=====================================================
Jun 8 11:25:30 asureimage sendmail[26911]: STARTTLS=server, relay=uranus.***-***.com [193.***.***.29], version=TLSv1/SSLv3, verify=NO, cipher=DHE-RSA-AES256-SHA, bits=256/256
Jun 8 11:25:30 asureimage sendmail[26911]: ***: <enquire@asureimage.com>... User unknown
Jun 8 11:25:30 asureimage sendmail[26911]: ***: from=<admin@gti7.com>, size=1757, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=uranus.***-***.com [193.***.***.29]
=====================================================

Last edited by 60s TV Batman; 06-08-2009 at 08:47 AM. Reason: .txt files no longer needed
 
Old 06-08-2009, 08:27 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
What is the output of:
Code:
sendmail -bv enquire@asureimage.com
sendmail -bv enquireasi@asureimage.com
To rebuild the virtusertable database you can run:
Code:
makemap hash /etc/mail/virtusertable.db < /etc/mail/virtusertable
Regards
 
Old 06-08-2009, 08:46 AM   #3
60s TV Batman
Member
 
Registered: Oct 2004
Location: London (UK)
Distribution: Ubuntu 12.04
Posts: 60

Original Poster
Rep: Reputation: 17
Hi Bathory

Thanks for your help

Here's the salient part...

Quote:
Originally Posted by bathory View Post
To rebuild the virtusertable database you can run:
Code:
makemap hash /etc/mail/virtusertable.db < /etc/mail/virtusertable
I'd been using m4 to rebuild virtusertable.db, as I'm...
  • Used to using it to rebuild other .db files
  • An idiot
I figured there was no point trying the 'make' solution, but then realised the problem is definitely in virtusertable.db (only thing that's changed), and that I have a history of foolishly disregarding this type of advice from experts

Naturally, your solution worked immediately and my virtual email addresses are being directed to the underlying accounts.

Thank you very much.

Regards
Wayne
 
  


Reply

Tags
error, from, mail, remote, sendmail, server, smtp


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 virtusertable user1234321 Linux - Server 1 06-10-2007 11:17 AM
sendmail virtusertable niranjan_mr Linux - Software 0 11-07-2005 03:41 AM
sendmail virtusertable or aliases? HeadNoodle Linux - Newbie 7 02-18-2005 11:38 AM
Sendmail & Virtusertable akilles Linux - Newbie 0 01-14-2005 03:19 AM
Sendmail configuration (domain name+virtusertable) bulzbb Linux - Software 2 03-16-2004 04:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:51 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
Open Source Consulting | Domain Registration