[sendmail] virtusertable not being used or not working
I've had a problem with virtual email addresses on one of my servers. Basically, the email address firstname.lastname@example.org translates to the account enquireasi (which is /sbin/nologin).
I can send email from email@example.com, but not receive email to it. I can, however, receive email to firstname.lastname@example.org. 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:<email@example.com>:
host asureimage.com [184.108.40.206]: 550 5.1.1 <firstname.lastname@example.org>... User unknown
/var/log/maillog show this...
Jun 8 11:25:30 asureimage sendmail: 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: ***: <email@example.com>... User unknown
Jun 8 11:25:30 asureimage sendmail: ***: from=<firstname.lastname@example.org>, size=1757, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=uranus.***-***.com [193.***.***.29]
What is the output of:
Thanks for your help :)
Here's the salient part...
Naturally, your solution worked immediately and my virtual email addresses are being directed to the underlying accounts.
Thank you very much.
|All times are GMT -5. The time now is 11:08 PM.|