Announcement

Collapse
No announcement yet.

Adding frst user problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • xiao
    Guest replied
    Originally posted by Martin Braun View Post
    Please enter a linebreak:
    smtpd_restriction_classes = local_only
    local_only = check_recipient_access mysql:/etc/postfix/ox_domains.cf, reject
    friend hears, comparing in my main.cf I do not have this commented line

    maximal_queue_lifetime = 1d
    alias_maps = $alias_database
    bounce_queue_lifetime = 1d

    I must comment?

    Leave a comment:


  • Martin Heiland
    replied
    Please enter a linebreak:
    smtpd_restriction_classes = local_only
    local_only = check_recipient_access mysql:/etc/postfix/ox_domains.cf, reject

    this is my main.cf:

    Code:
    smtpd_banner = $myhostname - ESMTP Service
    mailbox_transport = lmtp:unix:/var/run/cyrus/socket/lmtp
    
    virtual_alias_domains = mysql:/etc/postfix/ox_domains.cf
    virtual_alias_maps = mysql:/etc/postfix/ox_user_aliases.cf, mysql:/etc/postfix/ox_aliases.cf, mysql:/etc/postfix/ox_resource_aliases.cf, mysql:/etc/postfix/ox_group_aliases.cf
    
    smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/ox_externaldomaincheck.cf
    smtpd_restriction_classes = local_only
    local_only = check_recipient_access mysql:/etc/postfix/ox_domains.cf, reject
    
    smtpd_recipient_restrictions = check_sender_access mysql:/etc/postfix/ox_senderrestrictions.cf, permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
    smtpd_tls_cert_file = /etc/ssl/certs/eecert.pem
    smtpd_tls_key_file = /etc/ssl/private/eekey.pem
    procmail_destination_concurrency_limit = 1
    procmail_destination_recipient_limit = 1
    maximal_queue_lifetime = 1d
    alias_maps = $alias_database
    bounce_queue_lifetime = 1d

    Leave a comment:


  • xiao
    Guest replied
    Originally posted by Martin Braun View Post
    Hi,

    Aug 3 13:32:39 localhost postfix/smtpd[29506]: fatal: restriction class `local_only' needs a definition

    seems you postfix setup is a bit broken, would you please post the main.cf file?
    local_only = check_recipient_access mysql:/etc/postfix/ox_domains.cf, reject
    should be present.

    if this present, watches:

    Code:
    mailbox_transport = lmtp:unix:/var/run/cyrus/socket/lmtp
    virtual_alias_domains = mysql:/etc/postfix/ox_domains.cf
    virtual_alias_maps = mysql:/etc/postfix/ox_user_aliases.cf, mysql:/etc/postfix/ox_aliases.cf, mysql:/etc/postfix/ox_resource_aliases.cf, mysql:/etc/postfix/ox_group_aliases.cf
    smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/ox_externaldomaincheck.cf
    [COLOR="Blue"]smtpd_restriction_classes = local_only local_only = check_recipient_access mysql:/etc/postfix/ox_domains.cf, reject[/COLOR]
    smtpd_recipient_restrictions = check_sender_access mysql:/etc/postfix/ox_senderrestrictions.cf, permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination

    Leave a comment:


  • Martin Heiland
    replied
    Hi,

    Aug 3 13:32:39 localhost postfix/smtpd[29506]: fatal: restriction class `local_only' needs a definition

    seems you postfix setup is a bit broken, would you please post the main.cf file?
    local_only = check_recipient_access mysql:/etc/postfix/ox_domains.cf, reject
    should be present.

    Leave a comment:


  • xiao
    Guest replied
    hello friends, umm nobody can help me? it is that he is urgent.

    Leave a comment:


  • xiao
    Guest replied
    hi, boys I have another problem, I cannot send mails; here I put to them what I found in my logs:

    mail.log:

    Code:
    Aug  3 13:32:27 localhost cyrus/master[29482]: about to exec /usr/lib/cyrus/bin/imapd
    Aug  3 13:32:27 localhost cyrus/imap[29482]: executed
    Aug  3 13:32:27 localhost cyrus/imap[29482]: accepted connection
    Aug  3 13:32:27 localhost cyrus/master[29483]: about to exec /usr/lib/cyrus/bin/imapd
    Aug  3 13:32:27 localhost cyrus/imap[29483]: executed
    Aug  3 13:32:27 localhost cyrus/imap[29483]: accepted connection
    Aug  3 13:32:27 localhost cyrus/master[29484]: about to exec /usr/lib/cyrus/bin/imapd
    Aug  3 13:32:27 localhost cyrus/imap[29484]: executed
    Aug  3 13:32:27 localhost cyrus/imap[29484]: accepted connection
    Aug  3 13:32:27 localhost cyrus/imap[29482]: login: localhost [127.0.0.1] leonardof plaintext User logged in
    Aug  3 13:32:27 localhost cyrus/imap[29483]: login: localhost [127.0.0.1] leonardof plaintext User logged in
    Aug  3 13:32:27 localhost cyrus/imap[29483]: seen_db: user leonardof opened /var/lib/cyrus/user/l/leonardof.seen
    Aug  3 13:32:27 localhost cyrus/imap[29483]: open: user leonardof opened INBOX
    Aug  3 13:32:27 localhost cyrus/imap[29484]: login: localhost [127.0.0.1] leonardof plaintext User logged in
    Aug  3 13:32:39 localhost postfix/smtpd[29506]: fatal: restriction class `local_only' needs a definition
    Aug  3 13:32:40 localhost postfix/master[3205]: warning: process /usr/lib/postfix/smtpd pid 29506 exit status 1
    Aug  3 13:32:40 localhost postfix/master[3205]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
    mail.info:
    Code:
    Aug  3 13:32:27 localhost cyrus/imap[29482]: login: localhost [127.0.0.1] leonardof plaintext User logged in
    Aug  3 13:32:27 localhost cyrus/imap[29483]: login: localhost [127.0.0.1] leonardof plaintext User logged in
    Aug  3 13:32:27 localhost cyrus/imap[29484]: login: localhost [127.0.0.1] leonardof plaintext User logged in
    Aug  3 13:32:39 localhost postfix/smtpd[29506]: fatal: restriction class `local_only' needs a definition
    Aug  3 13:32:40 localhost postfix/master[3205]: warning: process /usr/lib/postfix/smtpd pid 29506 exit status 1
    Aug  3 13:32:40 localhost postfix/master[3205]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
    mail.err:
    Code:
    Aug  3 13:31:38 localhost postfix/smtpd[29433]: fatal: restriction class `local_only' needs a definition
    Aug  3 13:32:39 localhost postfix/smtpd[29506]: fatal: restriction class `local_only' needs a definition
    and mail.warn:
    Code:
    Aug  3 13:32:39 localhost postfix/smtpd[29506]: fatal: restriction class `local_only' needs a definition
    Aug  3 13:32:40 localhost postfix/master[3205]: warning: process /usr/lib/postfix/smtpd pid 29506 exit status 1
    Aug  3 13:32:40 localhost postfix/master[3205]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling

    Leave a comment:


  • xiao
    Guest replied
    Originally posted by Martin Braun View Post
    did you also tried /var/lib/cyrus/? I'm sorry but i have to guess because it worked for me perfectly :/
    ok, martin thans, the error occurred because it uses cyrus-imap in his version in testing and apparently it has failures of permissions in the data bases….
    Last edited by Guest; 08-03-2007, 08:25 PM.

    Leave a comment:


  • Martin Heiland
    replied
    did you also tried /var/lib/cyrus/? I'm sorry but i have to guess because it worked for me perfectly :/

    Leave a comment:


  • xiao
    Guest replied
    Originally posted by Martin Braun View Post
    should be /var/spool/cyrus/
    ok, martin watch:
    Code:
    Servidor3:/tmp/open-xchange-gui# chown -R cyrus:mail /var/spool/cyrus
    Servidor3:/tmp/open-xchange-gui# /opt/open-xchange/sbin/createuser -A oxadmin -P servi75 --username manelly --displayname "Mariane" --password 0 --email manelly@servioptica.sv.tc --givenname marianelly --surname herrera --language en_US --timezone America/Bogota --department Systemas --company "Servioptica" -c 1
    user in context 1 could not be created: 
    Server response:
     com.openexchange.admin.plugins.PluginException: com.openexchange.admin.rmi.exceptions.OXUserIMAPException: javax.mail.MessagingException: * BYE Fatal error: can't write proc file;
      nested exception is:
            com.sun.mail.iap.ConnectionException: * BYE Fatal error: can't write proc file
    Servidor3:/tmp/open-xchange-gui#

    Leave a comment:


  • Martin Heiland
    replied
    should be /var/spool/cyrus/

    Leave a comment:


  • xiao
    Guest replied
    hi, amm in Debian in where encounter the location of that archives?
    it is that it tries to execute that and said to me that did not exist the file or the folder

    Leave a comment:


  • Martin Heiland
    replied
    Hi,

    according to the cyrus mailing list, this is a permission problem on the mailspool folders. This error does not have anything to do with the groupware or admindaemon, just imapd configuration.




    Code:
    chown -R cyrus:mail /var/imap
    chown -R cyrus:mail /var/spool/imap
    should do the trick. Please check the cyrus users and the directory structure of your distribution and modify the chown commands if needed.

    Greetings

    Leave a comment:


  • xiao
    Guest replied
    hi, I have a new problem when changing to me to debian amd64, when it tries to add a user gave the following error me:

    com.openexchange.admin.plugins.PluginException: com.openexchange.admin.rmi.exceptions.OXUserIMAPEx ception: javax.mail.MessagingException: * BYE Fatal error: can't write proc file;
    nested exception is:
    com.sun.mail.iap.ConnectionException: * BYE Fatal error: can't write proc file



    and in the installation of the data base it gave he himself error me, watch:


    Servidor3:/home/administrador# /opt/open-xchange/sbin/oxinstaller --oxdb-pass=servi75 --admin-pass=servi75 --maildomain servioptica.sv.tc -finitializing database (step 1/2)done
    Configuring services
    setting readUrl in /opt/open-xchange/etc/admindaemon/configdb.properties
    setting writeUrl in /opt/open-xchange/etc/admindaemon/configdb.properties
    setting readProperty.1 in /opt/open-xchange/etc/admindaemon/configdb.properties
    setting readProperty.2 in /opt/open-xchange/etc/admindaemon/configdb.properties
    setting writeProperty.1 in /opt/open-xchange/etc/admindaemon/configdb.properties
    setting writeProperty.2 in /opt/open-xchange/etc/admindaemon/configdb.properties
    setting readUrl in /opt/open-xchange/etc/groupware/configdb.properties
    setting writeUrl in /opt/open-xchange/etc/groupware/configdb.properties
    setting readProperty.1 in /opt/open-xchange/etc/groupware/configdb.properties
    setting readProperty.2 in /opt/open-xchange/etc/groupware/configdb.properties
    setting writeProperty.1 in /opt/open-xchange/etc/groupware/configdb.properties
    setting writeProperty.2 in /opt/open-xchange/etc/groupware/configdb.properties
    setting CREATE_HOMEDIRECTORY in /opt/open-xchange/etc/admindaemon/User.properties
    setting SetupLink in /opt/open-xchange/etc/groupware/system.properties
    (Re)Starting Admin Daemon
    done
    initializing database (step 2/2)
    user in context 1 could not be created:
    Server response:
    com.openexchange.admin.plugins.PluginException: com.openexchange.admin.rmi.exceptions.OXUserIMAPEx ception: javax.mail.MessagingException: * BYE Fatal error: can't write proc file;
    nested exception is:
    com.sun.mail.iap.ConnectionException: * BYE Fatal error: can't write proc file

    done
    setting up the system
    creating certificates
    certificate created
    configuring ox admin gui
    configuring mail system
    using mail.servioptica.sv.tc as FQHN of the mail server
    done
    Servidor3:/home/administrador#

    Leave a comment:


  • Martin Heiland
    replied
    Hi Pedro,

    cyradm is a seperate package, at least for debian based distros. It does not seem to be installed on your system. If i remember correctly, CentOS provides the package "cyrus-imapd-utils" which contains cyradm:


    Greetings
    Last edited by Martin Heiland; 07-25-2007, 11:18 PM.

    Leave a comment:


  • pedro
    Guest replied
    thats me again =P

    I had some hard work with finals at college!

    Today I returned trying to add the first user.
    As Martin suggest I cleanned all my MySQL information... ...all users, databases and root password.
    After that I run the oxinstaller script and it seems to be o.k but I keep with addind deal. =(

    Some stuff that I discovered today:

    My cyrus configuration is a little bit different cause I'm running CentOS and this based Red Hat system has a different directory tree from Debians like.

    take a look:
    Code:
    [root@mailt local]# find / -name "cyrus*"
    /usr/share/doc/cyrus-imapd-2.2.12
    /usr/share/doc/cyrus-imapd-2.2.12/m4/cyrus-imapd-sendmail-8.12.9-cyrusv2.m4
    /usr/share/doc/cyrus-imapd-2.2.12/m4/cyrus-procmailrc
    /usr/share/doc/cyrus-imapd-2.2.12/m4/cyrus-imapd-procmail+cyrus.mc
    /usr/share/doc/cyrus-imapd-2.2.12/m4/cyrus-user-procmailrc.template
    /usr/share/doc/cyrus-imapd-2.2.12/cyrusv2.mc
    /usr/share/doc/cyrus-imapd-2.2.12/man/cyrus-master.8.html
    /usr/share/doc/cyrus-imapd-2.2.12/man/cyrus.conf.5.html
    /usr/share/doc/cyrus-sasl-2.1.19
    /usr/share/ssl/certs/cyrus-imapd.pem
    /usr/share/man/man8/cyrus-master.8.gz
    /usr/share/man/man5/cyrus.conf.5.gz
    /usr/share/cyrus-imapd
    /usr/lib/cyrus-imapd
    /usr/lib/cyrus-imapd/cyrus-master
    find: /proc/22866/task: Arquivo ou diretório não encontrado
    /etc/cron.daily/cyrus-imapd
    /etc/rc.d/init.d/cyrus-imapd
    /etc/logrotate.d/cyrus-imapd
    /etc/sysconfig/cyrus-imapd
    /etc/cyrus.conf
    /root/mailfiles/Postfix/postfix_files/postfix_files/cyrus-sasl-small.jpg
    /root/mailfiles/Postfix/postfix_files/cyrus-sasl-small.jpg
    /root/mailfiles/Postfix/postfix2_files/cyrus-sasl-small.jpg
    /var/cache/yum/base/headers/cyrus-imapd-2.2.12-8.1.RHEL4.i386.hdr
    /var/cache/yum/base/packages/cyrus-imapd-2.2.12-8.1.RHEL4.i386.rpm
    /var/lock/subsys/cyrus-imapd
    /var/spool/postfix/private/cyrus
    /var/run/cyrus-master.pid
    Does cyradm a single package?? is it installed with :cyrus-imapd-2.2 ??
    I cant find it in my system.


    Thanks so much!!
    You're supporting a lot!!!

    Pedro Gustavo
    Last edited by Guest; 07-25-2007, 10:41 PM.

    Leave a comment:

Working...
X