Steps for creating virtual email boxes

Discussion in 'Server Operation' started by satimis, Jun 12, 2007.

  1. satimis

    satimis New Member

    Hi folks,

    OpenBSD 4.0 X86_64
    Mysql
    Postfix-2.4.3


    Please shed me some light on creating virtual email boxes.

    For example
    To set up a virtual email box for "Albert Jones", I run;

    $ su
    password
    # su - _vmail
    $ mkdir -p satimis.com/albert
    $ maildirmake satimis.com/albert/Maildir
    $ maildirmake -q 10000000S satimis.com/albert/Maildir

    all went through w/o complaint.

    $ mysql -u root -p
    Code:
    Enter password: 
    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 3 to server version: 5.0.24a-log
    
    Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
    
    mysql>
    

    Now I can't recall whether having run following command before;
    Code:
    mysql> insert into postfix_virtual_domains values
    ('1','satimis.com','maildrop:');
    
    Is there any way to check??? If NO can I re-run the command? Any possible mistake created in doing so? Tks.


    To create an account for "albert" whether to run;
    Code:
    mysql> insert into postfix_users
    (email,clear,name,homedir,maildir,quota) values
    ('albert@satimis.com','UzeR0nePazz','Albert Jones','/var/mail/vmail','satimis.com/albert/Maildir/','10000000');
    
    then
    Code:
    mysql> \q
    
    That is all (same procedure for creating other accounts) ???


    Is the above command correct? Afterwards how to check it is working locally on the email server instead of sending albert an email from another LAN? TIA


    B.R.
    satimis
     
  2. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

Share This Page