Results 1 to 4 of 4

Thread: Qmail Alias with period

  1. #1

    Qmail Alias with period

    Hi gurus out there,

    I just wonder how could i make a qmail alias having a period. I used the example below:

    jay.manalo@domain.com with a username "jay" on my RH9.0 running qmail-1.03.

    Any help will be very much appreciated.

    TIA

  2. #2

    Re:Qmail Alias with period

    I'm not sure why you need to alias that name but what I would do it just use virtual hosts. I run a Qmail-1.03 server with about 30 diff domains. Set your /var/qmail/control/virtualdomains file to look like this.

    user@domain.com:unixname

    jay.mandal@domain.com:jay



    I wrote this scripts, very cheasy but it works for me. The server is Solaris 9 so it differs a bit.

    echo "Please enter the new qmail username.";
    read NAME;
    useradd -m $NAME;
    passwd $NAME;
    echo "$NAME has been added as a UNIX user.";
    sleep 1;
    echo "Adding qmail Maildir to $NAME.";
    /usr/local/src/qmail-1.03/maildirmake /export/home/$NAME/Maildir;
    sleep 1;
    cp /qmail/.qmail-default /export/home/$NAME
    echo "Copied .qmail-default to $NAME's home directory.";
    sleep 1;
    echo "Changing ownership of $NAME's files to $NAME.";
    chown $NAME /export/home/$NAME
    chown $NAME /export/home/$NAME/*
    chown $NAME /export/home/$NAME/Maildir/*
    chown $NAME /export/home/$NAME/.qmail-default
    sleep 1;
    /qmail/qmailuseradd
    echo "$NAME has been added to the qmail database.";
    qmailctl reload

  3. #3
    Senior Member
    Join Date
    Nov 2001
    Posts
    419

    Re:Qmail Alias with period

    Just create a file like this.

    .qmail-jay:manalo with "jay" inside.

    HTH (Hope This Helps)

  4. #4

    Re:Qmail Alias with period

    [quote author=datamike link=board=4;threadid=8438;start=0#msg76838 date=1074178678]
    I'm not sure why you need to alias that name but what I would do it just use virtual hosts. I run a Qmail-1.03 server with about 30 diff domains. Set your /var/qmail/control/virtualdomains file to look like this.

    user@domain.com:unixname

    jay.mandal@domain.com:jay

    [/quote]

    Should this entry on virtualdomain require fastforward to be installed?

    Thanks

Similar Threads

  1. Qmail installer and its step-by-step configuration
    By amold in forum Redhat / Fedora
    Replies: 4
    Last Post: 04-19-2008, 08:11 AM
  2. No sound card is being detected.
    By tom boucher in forum Linux - Hardware, Networking & Security
    Replies: 5
    Last Post: 10-27-2005, 12:47 AM
  3. alias for root
    By Black666 in forum Linux - General Topics
    Replies: 4
    Last Post: 06-25-2002, 02:46 PM
  4. qmail problem
    By jayq00 in forum Linux - General Topics
    Replies: 5
    Last Post: 02-04-2002, 02:53 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •