help setting up email server

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

  1. boast

    boast New Member

    ok, so I followed the 'Virtual Users And Domains With Postfix, Courier And MySQL (Debian Etch)' Guide.

    I kept getting
    Code:
    Jun 11 17:51:50 orangegum imapd: Connection, ip=[::ffff:127.0.0.1]
    Jun 11 17:51:50 orangegum imapd: chdir orangegum.gotdns.com/admin/: No such file or directory
    Jun 11 17:53:30 orangegum imapd: Connection, ip=[::ffff:127.0.0.1]
    Jun 11 17:53:30 orangegum imapd: chdir orangegum.bbnet/admin/: No such file or directory
    I finally fixed it by doing this
    And now in squirrelmail I get the following after logging in
    Code:
    ERROR: Could not complete request.
    Query: CREATE "INBOX.Sent"
    Reason Given: Cannot create this folder.
    I guess I have to chmod, or add some sort of permissions somewhere. And do I have to create the folders/fix this manually for each created user?

    thanks for any help.

    ================
    ---->NEVER list a virtual alias domain name as a mydestination domain!<----
     
    Last edited: Jun 17, 2007
  2. falko

    falko Super Moderator ISPConfig Developer

    Normally Maildir is created automatically when the first email for the account arrives, so you don't have to do this manually.
     
  3. boast

    boast New Member

    hmm, I should get the email receiving to work then.


    I sent an email from admin@domain (virtual user) to root@domain and it worked. But when i try sending an email from root to admin, I get
    Code:
    Failed delivery status
    Reason for failure 	 unknown user: "admin"
    yet I see this in mail.log
    Code:
    courierpop3login: Connection, ip=[::ffff:10.0.0.2]
    courierpop3login: LOGIN, [email protected], ip=[::ffff:10.0.0.2]
    courierpop3login: LOGOUT, [email protected], ip=[::ffff:10.0.0.2], top=0, retr=0, rcvd=12, sent=39, time=0

    Also, is SMTP used for incoming email too? I get this when trying to send an email to my server from gmail
    Code:
    Technical details of temporary failure:
    TEMP_FAILURE: Could not initiate SMTP conversation with any hosts:
    [ohhai.gotdns.com. (10): Connection timed out]
    So if my ISP blocks incoming email, then I have to set it up with SSL or something right?


    thanks.
     
  4. falko

    falko Super Moderator ISPConfig Developer

    You can't have both virtual and system users on the same domain. If you use domain.com for system users, then your virtual users must have another domain.
     
  5. boast

    boast New Member

    well, I tried sending an email from one virtual host to another, but they don't receive it.
    Code:
    Jun 15 13:05:44 orangegum postfix/bounce[28454]: 6B41217471A: sender non-delivery notification: C6E2517471C
    Jun 15 13:05:44 orangegum postfix/qmgr[5016]: 6B41217471A: removed
    Jun 15 13:05:44 orangegum postfix/local[28445]: C6E2517471C: to=<[email protected]>, relay=local, delay=0.42, delays=0.34/0.01/0/0.07, dsn=5.1.1, status=bounced (unknown user: "admin")
    Jun 15 13:05:44 orangegum postfix/qmgr[5016]: C6E2517471C: removed
    
    it say's (unknown user: "admin") but yet I'm logged in as admin in squirrelmail.
    Code:
    Jun 15 13:07:32 orangegum imapd: LOGIN, [email protected], ip=[::ffff:127.0.0.1], protocol=IMAP
    Jun 15 13:07:32 orangegum imapd: LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=119, sent=900, time=0
     
  6. falko

    falko Super Moderator ISPConfig Developer

    Can you post the outputs of
    Code:
    grep admin /etc/password
    and
    Code:
    postconf -n
    ?

    Is orangegum.gotdns.com listed in the domains table?
     
  7. boast

    boast New Member

    Code:
    orangegum:/etc# grep admin /etc/password
    grep: /etc/password: No such file or directory
    
    but i have passwd...

    Code:
    orangegum:/etc# grep admin /etc/passwd
    gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
    
    -------------------

    Code:
    orangegum:/etc# grep admin /etc/passwd-
    gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
    orangegum:/etc# grep admin /etc/password
    grep: /etc/password: No such file or directory
    orangegum:/etc# postconf -n
    alias_database = hash:/etc/aliases
    alias_maps = hash:/etc/aliases
    append_dot_mydomain = no
    biff = no
    broken_sasl_auth_clients = yes
    config_directory = /etc/postfix
    inet_interfaces = all
    mailbox_command = procmail -a "$EXTENSION"
    mailbox_size_limit = 0
    mydestination = orangegum.gotdns.com, localhost.BBNET, , localhost
    myhostname = orangegum.gotdns.com
    mynetworks = 127.0.0.0/8
    myorigin = /etc/mailname
    proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtu                                                                                  al_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relo                                                                                  cated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
    recipient_delimiter = +
    relayhost =
    smtp_tls_note_starttls_offer = yes
    smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
    smtp_use_tls = yes
    smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_local_domain =
    smtpd_sasl_security_options = noanonymous
    smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
    smtpd_tls_auth_only = no
    smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
    smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
    smtpd_tls_loglevel = 1
    smtpd_tls_received_header = yes
    smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
    smtpd_tls_session_cache_timeout = 3600s
    smtpd_use_tls = yes
    tls_random_source = dev:/dev/urandom
    transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
    virtual_alias_domains =
    virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
    virtual_gid_maps = static:5000
    virtual_mailbox_base = /home/vmail
    virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
    virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
    virtual_uid_maps = static:5000
    
    yes it is.
     
    Last edited: Jun 16, 2007
  8. falko

    falko Super Moderator ISPConfig Developer

    Ok, the problem is that orangegum.gotdns.com is listed in mydestination and in the domains table. Please read my second post again.
     

Share This Page