Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail Ubuntu 11.04

Discussion in 'HOWTO-Related Questions' started by PJNoMore, Oct 9, 2011.

  1. PJNoMore

    PJNoMore New Member

    Hello everyone,

    I followed this guide: http://www.howtoforge.com/virtual-u...x-courier-mysql-and-squirrelmail-ubuntu-11.04 but I seem to be getting this error after trying to log in.
    Code:
    Oct  8 14:57:49 ubuntu1 imapd: chdir ubuntu1.v2m.me/administrator/: No such file or directory
    I have sent a message to "[email protected]" with

    Code:
    mailx [email protected]
    here's my my main.cf:

    Code:
    # See /usr/share/postfix/main.cf.dist for a commented, more complete version
    
    
    # Debian specific:  Specifying a file name will cause the first
    # line of that file to be used as the name.  The Debian default
    # is /etc/mailname.
    #myorigin = /etc/mailname
    
    smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
    biff = no
    
    # appending .domain is the MUA's job.
    append_dot_mydomain = no
    
    # Uncomment the next line to generate "delayed mail" warnings
    #delay_warning_time = 4h
    
    readme_directory = /usr/share/doc/postfix
    
    # TLS parameters
    smtpd_tls_cert_file = /etc/postfix/smtpd.cert
    smtpd_tls_key_file = /etc/postfix/smtpd.key
    smtpd_use_tls = yes
    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
    
    # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
    # information on enabling SSL in the smtp client.
    
    myhostname = ubuntu1.v2m.me
    alias_maps =c/hosts file.
    
    Thanks in advance! hash:/etc/aliases
    alias_database = hash:/etc/aliases
    myorigin = /etc/mailname
    mydestination = ubuntu1.v2m.me, localhost, localhost.localdomain
    relayhost =
    mynetworks = 127.0.0.0/8
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all
    html_directory = /usr/share/doc/postfix/html
    virtual_alias_domains =
    virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
    virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
    virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
    virtual_mailbox_base = /home/vmail
    virtual_uid_maps = static:5000
    virtual_gid_maps = static:5000
    smtpd_sasl_auth_enable = yes
    broken_sasl_auth_clients = yes
    smtpd_sasl_authenticated_header = yes
    smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
    transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
    virtual_create_maildirsize = yes
    virtual_maildir_extended = yes
    virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
    virtual_mailbox_limit_override = yes
    virtual_maildir_limit_message = "The user you are trying to reach is over quota."
    virtual_overquota_bounce = yes
    proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
    I have also added

    Code:
    192.168.0.5     ubuntu1.v2m.me  ubuntu1
    to my /etc/hosts file.

    Thanks in advance!


    EDIT:
    here's some output from tail -f /var/log/mail.log
    Code:
    Oct  8 16:29:19 ubuntu1 authdaemond: modules="authmysql", daemons=5
    Oct  8 16:29:19 ubuntu1 authdaemond: Installing libauthmysql
    Oct  8 16:29:19 ubuntu1 authdaemond: Installation complete: authmysql
    Oct  8 16:29:24 ubuntu1 postfix/master[970]: daemon started -- version 2.8.2, configuration /etc/postfix
    Oct  8 16:32:35 ubuntu1 postfix/pickup[978]: 3D45F180B96: uid=1000 from=<administrator>
    Oct  8 16:32:35 ubuntu1 postfix/cleanup[1239]: 3D45F180B96: message-id=<[email protected]>
    Oct  8 16:32:35 ubuntu1 postfix/qmgr[979]: 3D45F180B96: from=<[email protected]>, size=410, nrcpt=1 (queue active)
    Oct  8 16:32:35 ubuntu1 postfix/trivial-rewrite[1241]: warning: do not list domain ubuntu1.v2m.me in BOTH mydestination and virtual_mailbox_domains
    Oct  8 16:32:35 ubuntu1 postfix/local[1245]: 3D45F180B96: to=<[email protected]>, relay=local, delay=0.46, delays=0.31/0.1/0/0.06, dsn=2.0.0, status=sent (delivered to mailbox)
    Oct  8 16:32:35 ubuntu1 postfix/qmgr[979]: 3D45F180B96: removed
    
    EDIT2:

    Mail is going to /var/mail/administrator any explanation?
     
    Last edited: Oct 9, 2011
  2. falko

    falko Super Moderator ISPConfig Developer

  3. PJNoMore

    PJNoMore New Member

    Thanks for the reply. I added a new virtual user "[email protected]" and sent it a welcome email with mailx. I tried to log in but still get the same error:

    Code:
    root@ubuntu1:~# tail -f /var/log/mail.log
    Oct  9 08:22:05 ubuntu1 postfix/local[1397]: 0B47B180B96: to=<[email protected]>, relay=local, delay=0.3, delays=0.19/0.03/0/0.08, dsn=5.1.1, status=bounced (unknown user: "test")
    Oct  9 08:22:05 ubuntu1 postfix/cleanup[1394]: 41449180BB0: message-id=<[email protected]>
    Oct  9 08:22:05 ubuntu1 postfix/qmgr[1390]: 41449180BB0: from=<>, size=2056, nrcpt=1 (queue active)
    Oct  9 08:22:05 ubuntu1 postfix/bounce[1398]: 0B47B180B96: sender non-delivery notification: 41449180BB0
    Oct  9 08:22:05 ubuntu1 postfix/qmgr[1390]: 0B47B180B96: removed
    Oct  9 08:22:05 ubuntu1 postfix/local[1397]: 41449180BB0: to=<[email protected]>, orig_to=<[email protected]>, relay=local, delay=0.13, delays=0.06/0.01/0/0.06, dsn=2.0.0, status=sent (delivered to mailbox)
    Oct  9 08:22:05 ubuntu1 postfix/qmgr[1390]: 41449180BB0: removed
    Oct  9 08:23:18 ubuntu1 imapd: Connection, ip=[::ffff:127.0.0.1]
    Oct  9 08:23:18 ubuntu1 imapd: chdir ubuntu1.v2m.me/test/: No such file or directory
    Oct  9 08:23:18 ubuntu1 imapd: [email protected]: No such file or directory
    
    EDIT:

    I also removed "ubuntu1.v2m.me" from the virtual_mailbox_domains
     
    Last edited: Oct 9, 2011
  4. falko

    falko Super Moderator ISPConfig Developer

    You should have removed ubuntu1.v2m.me from mydestination instead of virtual_mailbox_domains.
     

Share This Page