how to create new email account?

Discussion in 'Server Operation' started by intars, Oct 2, 2005.

  1. intars

    intars New Member

    Hello!
    I have suse9.3, postfix. I create new user with home directory /var/spool/mail but I got following error:

    Log In Error: Access denied: Your account is temporarily unavailable (+t bit set on home directory).
    I have not ISPConfig.

    What is an error?
     
  2. falko

    falko Super Moderator Howtoforge Staff

    When do you get the error? When logging in with POP3?
    Can you post
    Code:
    ls -l /var/spool/mail<username>
    and
    Code:
    ls -l /homedir/of/<username>
    ?
     
  3. intars

    intars New Member

    Yes. with POP3 and telnet too!
    :confused:I want to just set up new user email account. How to do this in Suse 9.3?
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Ok, but can you post the output of
    Code:
    ls -l /var/spool/mail/<username>
    and
    Code:
    ls -l /homedir/of/<username>
    here?
     
  5. intars

    intars New Member

    suse:/ # ls -l /var/spool/mail/intars
    /bin/ls: /var/spool/mail/intars: No such file or directory
    and
    suse:/ # ls -l /var/spool/mail/intars
    /bin/ls: /var/spool/mail/intars: No such file or directory

    How can I create these files???
     
    Last edited: Oct 3, 2005
  6. falko

    falko Super Moderator Howtoforge Staff

    Do you use Maildir or mbox? Which POP3 daemon do you use? Did you follow any of the howtos to set up your server? If so, which one?
     
  7. intars

    intars New Member

    I am Linux beginner user. I installed Suse9.3 after The Perfect Setup - SUSE 9.3 Version 1.0 guide. Author: Falko Timme <[email protected]>.
    The thing is that I do not use ISPConfig, Proftpd, Webalizer, netdate and have not Installed Perl Modules.
    Via root shell using #telnet localhost 25,#mail from: <[email protected]> and
    #rcpt to: <[email protected]> really sends the message and the adresee receives it. I do not know, what is Maildir and mbox. That is why I cannot tell what exactly do I use.
    As far as I understand the problem is with users mail directory or some alias files locatins - or I just do not know how to create a new user.
     
  8. falko

    falko Super Moderator Howtoforge Staff

    If you have followed the Perfect Setup guide for SuSE 9.3 then you have also installed Courier, as described here: http://www.howtoforge.com/perfect_setup_suse_9.3_p5, right?
    Did you also do these steps?
    Code:
    postconf -e 'home_mailbox = Maildir/'
    postconf -e 'mailbox_command ='
    /etc/init.d/postfix restart
     
  9. intars

    intars New Member

    Yes, I followed these guide, and this code too! :eek:
     
  10. intars

    intars New Member

    suse:~ # telnet localhost 110
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    +OK Hello there.
    user intars
    +OK Password required.
    pass xxxx
    -ERR Maildir: No such file or directory
    Connection closed by foreign host.

    User <intars> I create in installation process.

    I found in /var/log/mail.warn these err:
    Oct 4 09:06:30 suse postfix/smtpd[23753]: warning: connect to private/tlsmgr: No such file or directory
    Oct 4 09:06:31 suse postfix/smtpd[23753]: warning: problem talking to server private/tlsmgr: No such file or directory
    Oct 4 09:06:31 suse postfix/smtpd[23753]: warning: no entropy for TLS key generation: disabling TLS support
    Oct 4 09:08:50 suse postfix/smtp[23757]: warning: connect to private/tlsmgr: No such file or directory
     
  11. falko

    falko Super Moderator Howtoforge Staff

    Ok, you're using Maildir. The Maildir is created upon the first email that arrives at that account, therefore send a test email to that account, then the error message will disappear.
     
  12. intars

    intars New Member

    Okay, after #postconf -n I found wrong mydomain, - <myhostname>.<mydomain.ltd>.
    How can I change this to mydomain = <mydomain.ltd>?
     
  13. falko

    falko Super Moderator Howtoforge Staff

    By running
    Code:
    postconf -e 'mydomain = <mydomain.ltd>'
    or editing /etc/postfix/main.cf manually. Restart Postfix afterwards.
     
  14. intars

    intars New Member

    Without success :(

    suse:~ # telnet localhost 25
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    220 <hostname>.<mydomain.ltd> ESMTP Postfix
    mail from: [email protected]
    250 Ok
    rcpt to: yyy@<mydomain.ltd>
    250 Ok
    data
    354 End data with <CR><LF>.<CR><LF>
    Test
    .
    250 Ok: queued as 551E21A7F8
    quit
    221 Bye
    Connection closed by foreign host.
    suse:~ # telnet localhost 110
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    +OK Hello there.
    user yyy
    +OK Password required.
    pass lalala
    -ERR Maildir: No such file or directory
    Connection closed by foreign host.
    :( :( :(
    suse:~ # postconf -n
    alias_maps = hash:/etc/aliases
    biff = no
    broken_sasl_auth_clients = yes
    canonical_maps = hash:/etc/postfix/canonical
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    daemon_directory = /usr/lib/postfix
    debug_peer_level = 2
    defer_transports =
    disable_dns_lookups = no
    home_mailbox = Maildir/
    html_directory = /usr/share/doc/packages/postfix/html
    inet_interfaces = all
    inet_protocols = all
    mail_owner = postfix
    mail_spool_directory = /var/mail
    mailbox_command =
    mailbox_size_limit = 0
    mailbox_transport =
    mailq_path = /usr/bin/mailq
    manpage_directory = /usr/share/man
    masquerade_classes = envelope_sender, header_sender, header_recipient
    masquerade_domains =
    masquerade_exceptions = root
    message_size_limit = 10240000
    mydestination = $myhostname, localhost.$mydomain
    mydomain = <mydomain.ltd>
    myhostname = suse.$mydomain
    newaliases_path = /usr/bin/newaliases
    queue_directory = /var/spool/postfix
    readme_directory = /usr/share/doc/packages/postfix/README_FILES
    relayhost =
    relocated_maps = hash:/etc/postfix/relocated
    sample_directory = /usr/share/doc/packages/postfix/samples
    sender_canonical_maps = hash:/etc/postfix/sender_canonical
    sendmail_path = /usr/sbin/sendmail
    setgid_group = maildrop
    smtp_sasl_auth_enable = no
    smtp_tls_note_starttls_offer = yes
    smtp_use_tls = yes
    smtpd_client_restrictions =
    smtpd_helo_required = no
    smtpd_helo_restrictions =
    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,check_relay_domains
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_local_domain =
    smtpd_sasl_security_options = noanonymous
    smtpd_sender_restrictions = hash:/etc/postfix/access
    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_timeout = 3600s
    smtpd_use_tls = yes
    strict_rfc821_envelopes = no
    tls_random_source = dev:/dev/urandom
    transport_maps = hash:/etc/postfix/transport
    unknown_local_recipient_reject_code = 550

    Here all is ok?
     
  15. falko

    falko Super Moderator Howtoforge Staff

    If you're sending emails to [email protected] you have to make sure that mydomain.tld is in mydestination. Currently it isn't!
    Then you must have a system user yyy.

    If yyy is just an alias, not a system user, you have to run:
    Code:
    postconf -e 'virtual_maps = hash:/etc/postfix/virtusertable'
    Then create /etc/postfix/virtusertable with the following contents:
    Code:
    [email protected]    system_user_that_should_get_the_email
    Whenever you change /etc/postfix/virtusertable, you have to run
    Code:
    postmap /etc/postfix/virtusertable
    Don't forget to restart Postfix after your changes.
     
  16. intars

    intars New Member

    :) :) :)
    Now is O.K.!!! It working! :) Thank you!
    But now I have another question about apache: why when I write in explorer http://www.<mydomain.ltd> I receive: Access forbidden! Error 403?
     
  17. falko

    falko Super Moderator Howtoforge Staff

    Did you create an index file (e.g. index.html) in the directory that Apache tries to access? If not, do that.
     
  18. intars

    intars New Member

    :) Thank You! :)
     
  19. intars

    intars New Member

    HI FALKO! I set up UebiMiau(POP3 mail reader) on my mail server(set up byThe Perfect Setup - SUSE 9.3), but when I try to open this mail page, I receive just index.php code! Why??? :confused:
     
  20. till

    till Super Moderator Staff Member ISPConfig Developer

    Have you installed mod_php in your webserver and enabled it?
     

Share This Page