Hi all.

Just wondering if anyone can explain to me (yes I've googled) how to create a virtusertable on Windows to be used on linux? I know it's just a list of aliases, but I've also seen a few different ways as to how it should be formatted, and how it should be saved. Any information would be helpful!!

    [510] Sat 25.Mar.2006 11:58:20
    [kadmin@files][/etc/mail]
    $ cat virtusertable.sample
    
    # $FreeBSD: src/etc/mail/virtusertable.sample,v 1.3 2000/11/02 23:32:31 dirk Exp $
    #
    # Map one or all usernames at a source hostname to a specific (or the same)
    # username at another target hostname.  Remember to add the source hostname
    # to /etc/mail/local-host-names so that sendmail will accept mail for the
    # source hostname.
    #
    [email]username@a.sample.host[/email]name      localuser
    [email]username@a.sample.host[/email]name      [email]specificuser@a.possibly.different.host[/email]name
    @another.sample.hostname        [email]specificuser@a.possibly.different.host[/email]name
    @yet.another.sample.hostname    %1@a.possibly.different.hostname

    Dunno if it matters whether it's tabs or spaces, for sure; I'm pretty sure spaces is fine.

    You will probably want to convert the text to Unix format and get rid of the pesky Windows CRLF's though....

      FWIW, they're tabs in the example above. As for saving it, what do you mean, exactly?

        What would the extension be? .db none? what?

          No, it's a text file. In BSD, and I assume other wise (are we talking Sendmail, here?) you then create the *.db file:

          /usr/sbin/makemap hash virtusertable.db < virtusertable
          chmod 0640 virtusertable.db

          Now, if your system's arranged like mine, you can simply run "make" in /etc/mail and have it do this. However, "make" is a meta-command that will also build configuration files if the source files have been changed, run "newaliases", rebuild the access.db file, etc.

            So, to answer the first question, "none". 😉

              Write a Reply...