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 [22.214.171.124]: 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]