• 8.17.1 freebsd does not see virtusertable

    From Tatiana M@21:1/5 to All on Wed Apr 27 03:37:13 2022
    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 ###############
    qqq@111.com user1
    www@111.com www
    @111.com error:nouser No such user here
    #
    #
    ########## 222.com ###############
    noner@222.com user2
    viewer@222.com user2
    @222.com error:nouser No such user here
    #

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

    Has anyone encountered with such problem?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Claus =?iso-8859-1?Q?A=DFmann?= @21:1/5 to Tatiana M on Wed Apr 27 07:18:12 2022
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Tatiana M@21:1/5 to All on Wed Apr 27 04:54:02 2022
    среда, 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
    FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Claus =?iso-8859-1?Q?A=DFmann?= @21:1/5 to Tatiana M on Wed Apr 27 13:55:52 2022
    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!


    --
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)