Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

8.17.1 freebsd does not see virtusertable

23 views
Skip to first unread message

Tatiana M

unread,
Apr 27, 2022, 6:37:14 AM4/27/22
to
I've had the config since version 10, I'm constantly tweaking and supplementing it, it worked on all previous versions with virtusertable, but it doesn't see it on the new 8.17.1. The string is present in the .mc file,

FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')

but attempts to send mail to the virtual user do not pass. Of the changes from the previous configuration, only the let's encrypt certificate was added to one of the base domains and ssl was enabled.

# local-host-names - include all aliases for your machine here.
localhost
111.com
222.com

virtusertable

#
########## 111.com ###############
q...@111.com user1
w...@111.com www
@111.com error:nouser No such user here
#
#
########## 222.com ###############
no...@222.com user2
vie...@222.com user2
@222.com error:nouser No such user here
#

all "make" are made, sendmail restarted. ))

Has anyone encountered with such problem?

Claus Aßmann

unread,
Apr 27, 2022, 7:18:14 AM4/27/22
to
Tatiana M wrote:

> FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')

Do NOT use -o !
You want to use the map, so don't make it optional.
After changing that, make sure you don't get an error about
the map when sendmail is trying to open it.
Also check your VIRTUSER_DOMAIN has the expected content.


BTW:
cf/README:
all subdomains (see relay_hosts_only). The default map
definition is:

hash /etc/mail/virtusertable

Too bad distributions change the defaults...

--
Note: please read the netiquette before posting. I will almost never
reply to top-postings which include a full copy of the previous
article(s) at the end because it's annoying, shows that the poster
is too lazy to trim his article, and it's wasting the time of all readers.

Tatiana M

unread,
Apr 27, 2022, 7:54:04 AM4/27/22
to
среда, 27 апреля 2022 г. в 14:18:14 UTC+3, Claus Aßmann:

Ok, thanks Claus, but some things more:

1 - changes in /etc/mail/Makefile. old:
SENDMAIL?= /usr/sbin/sendmail
MAKEMAP?= /usr/sbin/makemap
new:
SENDMAIL?= /usr/local/sbin/sendmail
MAKEMAP?= /usr/local/sbin/makemap

2 - remove /usr/sbin/makefile and symlink /etc/sbin/sendmail (to mailwrapper) and made symlink /usr/sbin/sendmail -> /usr/local/sbin/sendmail

And yet, these lines are present in the distribution, they already lie in the mail directory by default. The letter O is taken from there:

# more freebsd.mc | grep virtusert

Claus Aßmann

unread,
Apr 27, 2022, 1:55:54 PM4/27/22
to
Tatiana M wrote:

> # more freebsd.mc | grep virtusert

grep virtusert freebsd.mc
:-)

> FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')

Simply edit that file (save a copy first):
FEATURE(virtusertable)
and re-generate the cf file, then check:

grep virtusert /etc/mail/se*cf

make sure it does NOT use -o.

BTW: someone wrote about some bug in the FreeBSD port of sendmail,
hopefully it doesn't affect generating the cf file. Hence the check!
0 new messages